RE/flex UCS to UTF-8 converters.
More...
#include <string>
#include <cstring>
|
std::string | reflex::utf8 (unicode_t a, unicode_t b, bool strict=true, const char *esc=NULL) |
| Convert a UCS range [a,b] to a UTF-8 regex pattern. More...
|
|
size_t | reflex::utf8 (unicode_t c, char *s) |
| Convert UCS to UTF-8. More...
|
|
unicode_t | reflex::utf8 (const char *s) |
| Convert UTF-8 to UCS, returns 0xFFFD for invalid UTF-8 except for MUTF-8 U+0000 and 0xD800-0xDFFF surrogate halves (use WITH_UTF8_UNRESTRICTED to remove this limit to support lossless UTF-8 encoding up to 6 bytes). More...
|
|
RE/flex UCS to UTF-8 converters.
- Author
- Robert van Engelen - engel.nosp@m.en@g.nosp@m.enivi.nosp@m.a.co.nosp@m.m
- Copyright
- (c) 2015-2017, Robert van Engelen, Genivia Inc. All rights reserved.
-
(c) BSD-3 License - see LICENSE.txt