cls / libutf Goto Github PK
View Code? Open in Web Editor NEWPlan 9 compatible UTF-8 C library
License: Other
Plan 9 compatible UTF-8 C library
License: Other
Libutf should provide the following functions, which are required for compatibility with Plan 9's libutf:
char *utfecpy(char *s1, char *es1, char *s2);
Rune *runestrecpy(Rune *s1, Rune *es1, Rune *s2);
tl;dr - The behavior of isalpharune treats CJK Ideographs as non alpha.
CJK ideographs are specified in the UnicodeData.txt (9.0.0) as:
12018 4E00;<CJK Ideograph, First>;Lo;0;L;;;;;N;;;;;
12019 9FD5;<CJK Ideograph, Last>;Lo;0;L;;;;;N;;;;;
However, the result of the generation (via awk) marks these as singles. This means that any query of a rune in that range (other than these two) will return false to isalpharune().
My best guess is that the awk script wants ranges to have hex codes in the same range and these have nothing in common there. (4E00 vs 9FD5)
There should be a test suite to check for UTF-8 corner cases, to replace the current utftest
executable, which can only check a couple of the functions in Libutf.
The following function definitions are missing from utf.h
:
char *utfecpy(char *s1, char *es1, char *s2);
Rune *runestrecpy(Rune *s1, Rune *es1, Rune *s2);
This is as per #3, neither commits referenced in that issue add the relevant definitions to utf.h
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.