utf8.h File Reference

updated Thu Jan 26 2017
 
Namespaces | Typedefs | Functions
utf8.h File Reference

RE/flex UCS to UTF-8 converters. More...

#include <string>
#include <cstring>
Include dependency graph for utf8.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 reflex
 

Typedefs

typedef wchar_t reflex::unicode_t
 

Functions

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

Detailed Description

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