GithubHelp home page GithubHelp logo

tempbottle / miniutf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dropbox/miniutf

0.0 2.0 0.0 1.72 MB

A C++ library for basic Unicode manipulation.

License: MIT License

Makefile 0.06% Shell 0.01% C++ 3.83% C 94.30% Python 1.80%

miniutf's Introduction

miniutf

miniutf is a C++ implementation of several basic Unicode manipulation functions.

Features

UTF-8, UTF-16, UTF-32 (UCS-4)

miniutf can convert between UTF-8 (std::string), UTF-16 (std::u16string), and UTF-32 / UCS-4 (std::u32string). The C++11 standard library provides UTF-8 and -16 encoders and decoders (codecvt_utf8 / codecvt_utf16), but as of late 2013, libstdc++ doesn't implement them. Miniutf's conversion functions also provide validity checking and can insert replacement characters if invalid input is found.

NFC, NFD

miniutf implements conversion to NFC and NFD as defined in Unicode TR15. It does not implement NFKC or NFKD.

Collation

miniutf implements collation as defined by the Default Unicode Collation Element Table, level 1 (Unicode TR10). This requires a large data table, which adds to binary size, so it's in a separate source and header file. The collation function can be used for case- and accent-insensitive searching and sorting.

Lowercase

Unicode defines a one-to-one lowercase translation for each codepoint. (This is needed for Dropbox's internal use, but should be avoided otherwise. One-to-one lowercasing does not always match the lowercase rules of a given language, e.g. German eszett, Turkish dotless i.)

System Requirements

miniutf requires a recent C++11 compiler and standard library, such as Clang 3.3+ or GCC 4.8+.

License

MIT (see LICENSE.txt)

miniutf's People

Contributors

jboning avatar kkaefer avatar

Watchers

 avatar  avatar

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.