lighttransport / unicode-xid-cpp

Unicode XID utility in C++11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unicode identifier validator in C++11

Simple UTF8 Unicode identifier validator in C++11.

Based on UAX31.

Usage

#include "unicode-xid.hh"

bool unicode_xid::is_xid_start(uint32_t cp);
bool unicode_xid::is_xid_continue(uint32_t cp);

To convert UTF-8 string to codepoint values, see test_unicode_xid.cc.

Unicode version

5.1.0

Generate table.

See gen folder.

License

MIT license.

Table generation script is based on unicode-rs, which is licensed under Apache 2.0

References

About

Unicode XID utility in C++11

License:MIT License


Languages

Language:POV-Ray SDL 77.2%Language:C++ 15.9%Language:Python 6.8%Language:Shell 0.2%