Go to the source code of this file.
Namespaces | |
namespace | cinder |
Functions | |
size_t | cinder::stringLengthUtf8 (const char *str, size_t lengthInBytes=0) |
Returns the number of characters (not bytes) in the the UTF-8 string str. Optimize operation by supplying a non-default lengthInBytes of str. | |
uint32_t | cinder::nextCharUtf8 (const char *str, size_t *inOutByte, size_t lengthInBytes=0) |
Returns the UTF-32 code point of the next character in str, relative to the byte inOutByte. Increments inOutByte to be the first byte of the next character. Optimize operation by supplying a non-default lengthInBytes of str. | |
size_t | cinder::advanceCharUtf8 (const char *str, size_t numChars, size_t lengthInBytes=0) |
Returns the index in bytes of the next character in str, advanced by numChars characters. Optimize operation by supplying a non-default lengthInBytes of str. | |
void | cinder::lineBreakUtf8 (const char *str, const std::function< bool(const char *, size_t)> &measureFn, std::function< void(const char *, size_t)> lineProcessFn) |