Cinder  0.9.1
Namespaces | Enumerations | Functions
Unicode.h File Reference
#include "cinder/Cinder.h"
#include <string>
#include <functional>
#include <vector>

Namespaces

 cinder
 

Enumerations

enum  cinder::UnicodeBreaks { cinder::UNICODE_MUST_BREAK, cinder::UNICODE_ALLOW_BREAK, cinder::UNICODE_NO_BREAK, cinder::UNICODE_INSIDE_CHAR }
 

Functions

std::u16string cinder::toUtf16 (const char *utf8Str, size_t lengthInBytes=0)
 
std::u16string cinder::toUtf16 (const std::string &utf8Str)
 
std::u32string cinder::toUtf32 (const char *utf8Str, size_t lengthInBytes=0)
 
std::u32string cinder::toUtf32 (const std::string &utf8Str)
 
std::string cinder::toUtf8 (const char16_t *utf16Str, size_t lengthInBytes=0)
 
std::string cinder::toUtf8 (const std::u16string &utf16Str)
 
std::string cinder::toUtf8 (const char32_t *utf32str, size_t lengthInBytes=0)
 
std::string cinder::toUtf8 (const std::u32string &utf32Str)
 
std::u16string cinder::toUtf16 (const std::u32string &utf32str)
 
std::u32string cinder::toUtf32 (const std::u16string &utf16str)
 
size_t cinder::stringLengthUtf8 (const char *str, size_t lengthInBytes=0)
 
uint32_t cinder::nextCharUtf8 (const char *str, size_t *inOutByte, size_t lengthInBytes=0)
 
size_t cinder::advanceCharUtf8 (const char *str, size_t numChars, size_t lengthInBytes=0)
 
void cinder::lineBreakUtf8 (const char *str, const std::function< bool(const char *, size_t)> &measureFn, const std::function< void(const char *, size_t)> &lineProcessFn)
 
void cinder::calcLinebreaksUtf8 (const char *str, std::vector< uint8_t > *resultBreaks)
 
void cinder::calcLinebreaksUtf8 (const char *str, size_t strLength, std::vector< uint8_t > *resultBreaks)
 
void cinder::calcLinebreaksUtf16 (const uint16_t *str, std::vector< uint8_t > *resultBreaks)
 
void cinder::calcLinebreaksUtf16 (const uint16_t *str, size_t strLength, std::vector< uint8_t > *resultBreaks)