Skip to content

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.

License

Notifications You must be signed in to change notification settings

StableCoder/unicode-hpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bc92db3 · Sep 20, 2024

History

39 Commits
Dec 15, 2020
Nov 30, 2017
Sep 20, 2024
Sep 20, 2024
Nov 30, 2017
Nov 3, 2019
Sep 20, 2024
Dec 15, 2020
Oct 21, 2018
Oct 21, 2018
Dec 15, 2020

Repository files navigation

UnicodeHPP

pipeline status 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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published