diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-31 10:41:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-31 10:41:35 +0000 |
| commit | d9028b23944172cea94e70d5cf3d089e537716a5 (patch) | |
| tree | 935724ce9d13e2d7878ee9be68179dbaeb37c70d /tokenize.c | |
| parent | vt: utf8: don't need one entry action for each UTF8 variant (diff) | |
vt: utf8: use mbtowc() instead of mbrtowc()
This is slightly faster, since we don't need to initialize an
mbstate_t struct (using mbrtowc() with a NULL-pointer for 'ps' also
works).
Also, avoid a branch by setting wc=0 and then ignoring the
result/error code from mbtowc().
Diffstat (limited to 'tokenize.c')
0 files changed, 0 insertions, 0 deletions
