Nana C++ Library. Reference for users.
What we need to use nana
|
Functions | |
const char * | char_ptr (const char *text, unsigned pos) |
return a pointer to the code unit of the character at pos More... | |
const char * | char_ptr (const std::string &text_utf8, unsigned pos) |
return a pointer to the code unit of the character at pos - reuse ^ ? More... | |
wchar_t | char_at (const char *text_utf8, unsigned pos, unsigned *len) |
return a code point (max 16 bits?) and the len in code units of the character at pos More... | |
wchar_t | char_at (const ::std::string &text_utf8, unsigned pos, unsigned *len) |
return a code point (max 16 bits?) and the len in code units of the character at pos More... | |
const char * | char_ptr (const ::std::string &text_utf8, unsigned pos) |
wchar_t nana::utf::char_at | ( | const char * | text_utf8, |
unsigned | pos, | ||
unsigned * | len | ||
) |
return a code point (max 16 bits?) and the len in code units of the character at pos
Get the unicode character by a specified character index.
text_utf8 | A string encoded as UTF-8. |
pos | The unicode character index. |
len | A unsigned pointer to receive the number of bytes it takes in UTF-8 encoded. If len is a nullptr, it is ignored. |
wchar_t nana::utf::char_at | ( | const ::std::string & | text_utf8, |
unsigned | pos, | ||
unsigned * | len | ||
) |
return a code point (max 16 bits?) and the len in code units of the character at pos
const char* nana::utf::char_ptr | ( | const ::std::string & | text_utf8, |
unsigned | pos | ||
) |
const char * nana::utf::char_ptr | ( | const char * | text_utf8, |
unsigned | pos | ||
) |
return a pointer to the code unit of the character at pos
Attempt to get a pointer to a character of UTF-8 string by a specified character index.
text_utf8 | A string encoded as UTF-8. |
pos | The unicode character index. |
const char* nana::utf::char_ptr | ( | const std::string & | text_utf8, |
unsigned | pos | ||
) |
return a pointer to the code unit of the character at pos - reuse ^ ?