Lolly 1.4.28
Loading...
Searching...
No Matches
Namespaces | Functions
unicode.cpp File Reference
#include "unicode.hpp"
#include "tbox/tbox.h"
Include dependency graph for unicode.cpp:

Go to the source code of this file.

Namespaces

namespace  lolly
 
namespace  lolly::data
 

Functions

string_u8 lolly::data::encode_as_utf8 (uint32_t code)
 Encode 4 bytes as string_u8.
 
uint32_t lolly::data::decode_from_utf8 (string_u8 s, int &i)
 Decode string_u8 string as 4 bytes at position i.
 
string lolly::data::unicode_get_range (int code)
 
bool lolly::data::is_cjk_unified_ideographs (string s)
 Checks if a string contains only CJK Unified Ideographs.
 
bool lolly::data::has_cjk_unified_ideographs (string s)
 Checks if a string contains any CJK Unified Ideographs.
 
string lolly::data::utf16_to_utf8 (string s_u16)
 Convert UTF-16 string to UTF-8 string.
 
string lolly::data::utf8_to_utf16 (string s_u8)
 Convert UTF-8 string to UTF-16 string.