Skip to content
Snippets Groups Projects
Commit 6274d33b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Normalize fullwidth chars to 2-chars (ASCII char, followed by space)

parent ff69ea35
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@ char* utf8_normalize_str(char* str)
src += 2;
*src -= '\x81';
*dest++ = '!' + *src;
*dest++ = ' ';
continue;
}
}
......@@ -128,6 +129,7 @@ char* utf8_normalize_str(char* str)
src += 2;
*src -= '\x80';
*dest++ = '`' + *src;
*dest++ = ' ';
continue;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment