aboutsummaryrefslogtreecommitdiffstats
path: root/libcharconv_go_black.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-01-24 23:24:26 +0100
committerMattias Andrée <m@maandree.se>2026-01-24 23:24:26 +0100
commit7c4b779797c4297e028ddc2ee5243a8156ebba9b (patch)
tree483633a63f8cfb8cfef9711961f1fe8cd387e9de /libcharconv_go_black.c
parentAdd clock faces (diff)
downloadcharconv-7c4b779797c4297e028ddc2ee5243a8156ebba9b.tar.gz
charconv-7c4b779797c4297e028ddc2ee5243a8156ebba9b.tar.bz2
charconv-7c4b779797c4297e028ddc2ee5243a8156ebba9b.tar.xz
Improve go
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcharconv_go_black.c')
-rw-r--r--libcharconv_go_black.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcharconv_go_black.c b/libcharconv_go_black.c
index 6ca0886..5845f5d 100644
--- a/libcharconv_go_black.c
+++ b/libcharconv_go_black.c
@@ -9,6 +9,10 @@ libcharconv_go_black(const char *s, size_t slen, size_t *n, uint_least32_t *cp,
*n = 0;
for (; slen--; s++) {
switch (*s) {
+ case 'w':
+ case 'W': c = UINT32_C(0x25CB); goto conv;
+ case 'b':
+ case 'B':
case '0': c = UINT32_C(0x25CF); goto conv;
case '1': c = UINT32_C(0x2688); goto conv;
case '2': c = UINT32_C(0x2689); goto conv;