Speed up wcwidth_std in the common case
This commit is contained in:
Generated
+1
@@ -7,6 +7,7 @@ START_ALLOW_CASE_RANGE
|
||||
|
||||
static int
|
||||
wcwidth_std(int32_t code) {
|
||||
if (LIKELY(0x20 <= code && code <= 0x7e)) return 1;
|
||||
switch(code) {
|
||||
// Flags (26 codepoints) {{{
|
||||
case 0x1f1e6 ... 0x1f1ff:
|
||||
|
||||
Reference in New Issue
Block a user