![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Arene base provides facilities for working with Unicode strings.
The public header is:
The Bazel target is
The unicode sub-package provides facilities to support the use of UTF-8 strings. Currently this is just arene::base::is_valid_utf8, which checks if a string is a valid sequence of characters encoded in UTF-8.
arene::base::is_valid_utf8This function checks if a string is a valid sequence of characters encoded in UTF-8. It accepts an arene::base::string_view, so just about any string value can be passed as an argument. It returns true if and only if the supplied string is valid UTF-8. It detects invalid UTF-8 character sequences, truncated UTF-8 sequences, and sequences that map to invalid Unicode characters.