Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 6 of 6) sorted by relevance

/lvgl-latest/src/libs/thorvg/rapidjson/
Dencodings.h102 static void Encode(OutputStream& os, unsigned codepoint) { in Encode()
103 if (codepoint <= 0x7F) in Encode()
104 os.Put(static_cast<Ch>(codepoint & 0xFF)); in Encode()
105 else if (codepoint <= 0x7FF) { in Encode()
106 os.Put(static_cast<Ch>(0xC0 | ((codepoint >> 6) & 0xFF))); in Encode()
107 os.Put(static_cast<Ch>(0x80 | ((codepoint & 0x3F)))); in Encode()
109 else if (codepoint <= 0xFFFF) { in Encode()
110 os.Put(static_cast<Ch>(0xE0 | ((codepoint >> 12) & 0xFF))); in Encode()
111 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode()
112 os.Put(static_cast<Ch>(0x80 | (codepoint & 0x3F))); in Encode()
[all …]
Dwriter.h402 unsigned codepoint; in WriteString() local
403 if (RAPIDJSON_UNLIKELY(!SourceEncoding::Decode(is, &codepoint))) in WriteString()
407 if (codepoint <= 0xD7FF || (codepoint >= 0xE000 && codepoint <= 0xFFFF)) { in WriteString()
408 PutUnsafe(*os_, hexDigits[(codepoint >> 12) & 15]); in WriteString()
409 PutUnsafe(*os_, hexDigits[(codepoint >> 8) & 15]); in WriteString()
410 PutUnsafe(*os_, hexDigits[(codepoint >> 4) & 15]); in WriteString()
411 PutUnsafe(*os_, hexDigits[(codepoint ) & 15]); in WriteString()
414 RAPIDJSON_ASSERT(codepoint >= 0x010000 && codepoint <= 0x10FFFF); in WriteString()
416 unsigned s = codepoint - 0x010000; in WriteString()
Dreader.h907 unsigned codepoint = 0; in ParseHex4() local
910 codepoint <<= 4; in ParseHex4()
911 codepoint += static_cast<unsigned>(c); in ParseHex4()
913 codepoint -= '0'; in ParseHex4()
915 codepoint -= 'A' - 10; in ParseHex4()
917 codepoint -= 'a' - 10; in ParseHex4()
924 return codepoint; in ParseHex4()
1024 unsigned codepoint = ParseHex4(is, escapeOffset); in ParseStringToStream() local
1026 if (RAPIDJSON_UNLIKELY(codepoint >= 0xD800 && codepoint <= 0xDFFF)) { in ParseStringToStream()
1028 if (RAPIDJSON_LIKELY(codepoint <= 0xDBFF)) { in ParseStringToStream()
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/internal/
Dregex.h159 unsigned codepoint; in RAPIDJSON_DIAG_OFF() member
197 unsigned codepoint; in RAPIDJSON_DIAG_OFF() local
199 switch (codepoint = ds.Take()) { in RAPIDJSON_DIAG_OFF()
287 if (!CharacterEscape(ds, &codepoint)) in RAPIDJSON_DIAG_OFF()
293 PushOperand(operandStack, codepoint); in RAPIDJSON_DIAG_OFF()
312 printf("[%2d] out: %2d out1: %2d c: '%c'\n", i, s.out, s.out1, (char)s.codepoint); in RAPIDJSON_DIAG_OFF()
319 SizeType NewState(SizeType out, SizeType out1, unsigned codepoint) { in RAPIDJSON_DIAG_OFF()
323 s->codepoint = codepoint; in RAPIDJSON_DIAG_OFF()
328 void PushOperand(Stack<Allocator>& operandStack, unsigned codepoint) { in RAPIDJSON_DIAG_OFF()
329 SizeType s = NewState(kRegexInvalidState, kRegexInvalidState, codepoint); in RAPIDJSON_DIAG_OFF()
[all …]
Dstrfunc.h71 unsigned codepoint; in CountStringCodePoint() local
72 if (!Encoding::Decode(is, &codepoint)) in CountStringCodePoint()
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h817 STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo * info, int codepoint, int * advance…
826 STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo * info, int codepoint, int * x0, int * y0,…
904 … int codepoint, int * width, int * height, int * xoff, int * yoff);
914 … float shift_x, float shift_y, int codepoint, int * width, int * height, int * xoff, int * yoff);
919 … int out_stride, float scale_x, float scale_y, int codepoint);
926 … out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint);
932 … int oversample_y, float * sub_x, float * sub_y, int codepoint);
936 STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_…
944 STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, int codepoint, floa…
993 … char * stbtt_GetCodepointSDF(const stbtt_fontinfo * info, float scale, int codepoint, int padding,
[all …]