diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-06-26 15:19:03 +0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-06-28 21:50:55 -0700 |
commit | f4b5b704447821dda56069a601595322344248ab (patch) | |
tree | 47eb0f762c5ee824774d81a3ff3fa937b22ee27e /src/node_version.h | |
parent | 01aeb388000b250ce82036b2a6b8e4a676bc5b5d (diff) | |
download | android-node-v8-f4b5b704447821dda56069a601595322344248ab.tar.gz android-node-v8-f4b5b704447821dda56069a601595322344248ab.tar.bz2 android-node-v8-f4b5b704447821dda56069a601595322344248ab.zip |
src: revise character width calculation
- Categorize all nonspacing marks (Mn) and enclosing marks (Me) as
0-width
- Categorize all spacing marks (Mc) as non-0-width.
- Treat soft hyphens (a format character Cf) as non-0-width.
- Do not treat all unassigned code points as 0-width; instead, let ICU
select the default for that character per UAX #11.
- Avoid getting the General_Category of a character multiple times as it
is an intensive operation.
Refs: http://unicode.org/reports/tr11/
PR-URL: https://github.com/nodejs/node/pull/13918
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_version.h')
0 files changed, 0 insertions, 0 deletions