|
action | utf8::error_mode (action mode) |
| Set error handling mode for this thread.
|
|
std::string | utf8::narrow (const wchar_t *s, size_t nch) |
| Conversion from wide character to UTF-8.
|
|
std::string | utf8::narrow (const std::wstring &ws) |
| Conversion from wide character to UTF-8.
|
|
std::string | utf8::narrow (const char32_t *s, size_t nch) |
| Conversion from UTF32 to UTF8.
|
|
std::string | utf8::narrow (const std::u32string &s) |
| Conversion from UTF32 to UTF8.
|
|
std::string | utf8::narrow (char32_t r) |
| Conversion from UTF32 to UTF8.
|
|
std::wstring | utf8::widen (const char *s, size_t nch) |
| Conversion from UTF-8 to wide character.
|
|
std::wstring | utf8::widen (const std::string &s) |
| Conversion from UTF-8 to wide character.
|
|
std::u32string | utf8::runes (const char *s, size_t nch) |
| Conversion from UTF-8 to UTF-32.
|
|
std::u32string | utf8::runes (const std::string &s) |
| Converts a string of characters from UTF-8 to UTF-32.
|
|
char32_t | utf8::rune (const char *p) |
| Conversion from UTF-8 to UTF-32.
|
|
char32_t | utf8::rune (const std::string::const_iterator &p) |
| Conversion from UTF-8 to UTF-32.
|
|
bool | utf8::is_valid (const char *p) |
| Check if pointer points to a valid UTF-8 encoding.
|
|
bool | utf8::is_valid (std::string::const_iterator p, const std::string::const_iterator last) |
| Check if iterator points to a valid UTF-8 encoding.
|
|
bool | utf8::valid_str (const char *s, size_t nch) |
| Verifies if string is a valid UTF-8 string.
|
|
bool | utf8::valid_str (const std::string &s) |
| Verifies if string is a valid UTF-8 encoded string.
|
|
char32_t | utf8::next (std::string::const_iterator &ptr, const std::string::const_iterator last) |
| Decodes a UTF-8 encoded character and advances iterator to next code point.
|
|
char32_t | utf8::next (std::string::iterator &ptr, const std::string::const_iterator last) |
| prev (std::string::const_iterator& ptr, const std::string::const_iterator first);
|
|
char32_t | utf8::next (const char *&ptr) |
| Decodes a UTF-8 encoded character and advances pointer to next character.
|
|
char32_t | utf8::next (char *&ptr) |
| Decodes a UTF-8 encoded character and advances pointer to next character.
|
|
char32_t | utf8::prev (const char *&ptr) |
| Decrements a character pointer to previous UTF-8 character.
|
|
char32_t | utf8::prev (char *&ptr) |
| Decrements a character pointer to previous UTF-8 character.
|
|
char32_t | utf8::prev (std::string::const_iterator &ptr, const std::string::const_iterator first) |
| Decrements an iterator to previous UTF-8 character.
|
|
char32_t | utf8::prev (std::string::iterator &ptr, const std::string::const_iterator first) |
| prev (std::string::const_iterator& ptr, const std::string::const_iterator first);
|
|
size_t | utf8::length (const std::string &s) |
| Counts number of characters in an UTF8 encoded string.
|
|
size_t | utf8::length (const char *s) |
| Counts number of characters in an UTF8 encoded string.
|
|
void | utf8::make_lower (std::string &str) |
| In place version converts a UTF-8 encoded string to lowercase.
|
|
void | utf8::make_upper (std::string &str) |
| In place version converts a UTF-8 encoded string to lowercase.
|
|
std::string | utf8::tolower (const std::string &str) |
| Convert UTF-8 string to lower case.
|
|
std::string | utf8::toupper (const std::string &str) |
| Convert a UTF-8 string to upper case.
|
|
int | utf8::icompare (const std::string &s1, const std::string &s2) |
| Compare two strings in a case-insensitive way.
|
|
bool | utf8::isspace (char32_t r) |
| Check if character is white space.
|
|
bool | utf8::isspace (const char *p) |
| Return true if character is blank(-ish).
|
|
bool | utf8::isspace (std::string::const_iterator p) |
| Return true if character is blank(-ish).
|
|
bool | utf8::isblank (char32_t r) |
| Check if character is space or tab.
|
|
bool | utf8::isblank (const char *p) |
| Check if character is space or tab.
|
|
bool | utf8::isblank (std::string::const_iterator p) |
| Check if character is space or tab.
|
|
bool | utf8::isdigit (char32_t r) |
| Check if character is a decimal digit (0-9)
|
|
bool | utf8::isdigit (const char *p) |
| Check if character is a decimal digit (0-9)
|
|
bool | utf8::isdigit (std::string::const_iterator p) |
| Check if character is a decimal digit (0-9)
|
|
bool | utf8::isalnum (char32_t r) |
| Check if character is an alphanumeric character (0-9 or A-Z or a-z)
|
|
bool | utf8::isalnum (const char *p) |
| Check if character is an alphanumeric character (0-9 or A-Z or a-z)
|
|
bool | utf8::isalnum (std::string::const_iterator p) |
| Check if character is an alphanumeric character (0-9 or A-Z or a-z)
|
|
bool | utf8::isalpha (char32_t r) |
| Check if character is an alphabetic character (A-Z or a-z)
|
|
bool | utf8::isalpha (const char *p) |
| Return true if character is an alphabetic character (A-Z or a-z)
|
|
bool | utf8::isalpha (std::string::const_iterator p) |
| Return true if character is an alphabetic character (A-Z or a-z)
|
|
bool | utf8::isxdigit (char32_t r) |
| Check if character is a hexadecimal digit (0-9 or A-F or a-f)
|
|
bool | utf8::isxdigit (const char *p) |
| Check if character is a hexadecimal digit (0-9 or A-F or a-f)
|
|
bool | utf8::isxdigit (std::string::const_iterator p) |
| Check if character is a hexadecimal digit (0-9 or A-F or a-f)
|
|
bool | utf8::isupper (char32_t r) |
|
bool | utf8::isupper (const char *p) |
|
bool | utf8::isupper (std::string::const_iterator p) |
|
bool | utf8::islower (char32_t r) |
|
bool | utf8::islower (const char *p) |
|
bool | utf8::islower (std::string::const_iterator p) |
|
FILE * | utf8::fopen (const std::string &filename, const std::string &mode) |
| Open a file.
|
|
FILE * | utf8::fopen (const char *filename, const char *mode) |
| Open a file.
|
|
std::string | utf8::getcwd () |
| Gets the current working directory.
|
|
bool | utf8::chdir (const std::string &dirname) |
| Changes the current working directory.
|
|
bool | utf8::chdir (const char *dirname) |
| Changes the current working directory. ()
|
|
bool | utf8::mkdir (const std::string &dirname) |
| Creates a new directory.
|
|
bool | utf8::mkdir (const char *dirname) |
| Creates a new directory. ()
|
|
bool | utf8::rmdir (const std::string &dirname) |
| Deletes a directory.
|
|
bool | utf8::rmdir (const char *dirname) |
| Deletes a directory. ()
|
|
bool | utf8::rename (const std::string &oldname, const std::string &newname) |
| Rename a file or directory.
|
|
bool | utf8::rename (const char *oldname, const char *newname) |
| Rename a file or directory.
|
|
bool | utf8::remove (const std::string &filename) |
| Delete a file.
|
|
bool | utf8::remove (const char *filename) |
| Delete a file. ()
|
|
std::ostream & | utf8::operator<< (std::ostream &os, const exception &x) |
| Extraction operator for exception objects.
|
|
bool | utf8::operator== (const exception &lhs, const exception rhs) |
| Equality operator for exception objects.
|
|
bool | utf8::operator!= (const exception &lhs, const exception &rhs) |
| Inequality operator for exception objects.
|
|
UTF-8 Conversion functions.