Giter Club home page Giter Club logo

libutf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libutf's Issues

`utfecpy` and `runestrecpy` missing from `utf.h`

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.

Error in ranges for isalpharune generation from UnicodeData.txt - CJK Ideographs

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)

Missing test suite

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.

Missing utfecpy() & runestrecpy()

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.