https://github.com/stablecoder/unicode-hpp
This program builds a quick Unicode header for use in C++11 or higher programs. It lists all unicode blocks, and their starting and ending code points.
https://github.com/stablecoder/unicode-hpp
generate generate-code generated-code header unicode unicode-header
Last synced: 3 months ago
JSON representation
This program builds a quick Unicode header for use in C++11 or higher programs. It lists all unicode blocks, and their starting and ending code points.
- Host: GitHub
- URL: https://github.com/stablecoder/unicode-hpp
- Owner: StableCoder
- License: mit
- Created: 2018-10-21T18:48:03.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T01:21:57.000Z (over 1 year ago)
- Last Synced: 2024-11-14T00:20:01.194Z (about 1 year ago)
- Topics: generate, generate-code, generated-code, header, unicode, unicode-header
- Language: C++
- Homepage:
- Size: 87.9 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnicodeHPP
[](https://git.stabletec.com/utilities/unicode-hpp/commits/main)
[](https://git.stabletec.com/utilities/unicode-hpp/blob/main/LICENSE)
This program builds a quick Unicode header for use in C++11 or higher programs. It lists all unicode blocks, and their starting and ending code points.
Several pre-generated unicode block versions can be found in the generated_headers/ folder.
## Program Arguments:
#### -h, --help
Help Blurb
#### -blocksize
Also builds a function for listing each block's size.
#### -f <filename>
The input file to build the unicode block from.
Must be an XML from Unicode org, such as from
http://www.unicode.org/Public/9.0.0/ucdxml/ for 9.0.0
#### -o <out_dir>
This is the directory where the file unicode_blocks.hpp
will be written to.
## Generated items (all in 'unicode' namespace)
#### enum class Block
This enumerates all unicode blocks currently allocated
#### constexpr uint32_t getFirstCodePoint()
This denotes the starting code point for each unicode block.
#### constexpr uint32_t getLastCodePoint()
This denotes the last code point for each unicode block.
#### constexpr uint32_t getBlockSize() [optional]
This gives the size of the allocated code block.
### Used RapidXML from http://rapidxml.sourceforge.net/