RlText codepoints management functions (unicode characters)
More...
#include <TextCodepoint.hpp>
|
| static std::string | codePointToUTF8 (const int &codepoint, int &byteSize) |
| | Encode one codepoint into UTF-8 byte (array length returned as parameter) More...
|
| |
RlText codepoints management functions (unicode characters)
◆ TextCodepoint()
| raylib::text::TextCodepoint::TextCodepoint |
( |
const std::string & |
text | ) |
|
|
explicit |
Load all codepoints from a UTF-8 text string.
- Parameters
-
◆ codePointToUTF8()
| std::string raylib::text::TextCodepoint::codePointToUTF8 |
( |
const int & |
codepoint, |
|
|
int & |
byteSize |
|
) |
| |
|
static |
Encode one codepoint into UTF-8 byte (array length returned as parameter)
- Parameters
-
| codepoint | the codepoint to encode |
| byteSize | the size of the codepoint will be stored in it |
- Returns
- the codepoint count
◆ getCodepoints()
| const std::vector< int > & raylib::text::TextCodepoint::getCodepoints |
( |
| ) |
const |
Get the codepoints.
- Returns
- the codepoints
◆ getCodepointsCount()
| int raylib::text::TextCodepoint::getCodepointsCount |
( |
| ) |
const |
Get total number of codepoints in a UTF-8 encoded string.
- Returns
- the codepoints count
◆ toUTF8String()
| std::string raylib::text::TextCodepoint::toUTF8String |
( |
const int & |
bytesLength | ) |
|
Encode text as codepoints array into UTF-8 text string.
- Parameters
-
| bytesLength | the length of the codepoints (in bytes) |
- Returns
- the UTF-8 text string
The documentation for this class was generated from the following files: