Home
last modified time | relevance | path

Searched refs:unichar (Results 1 – 25 of 51) sorted by relevance

123

/third_party/alsa-utils/alsactl/
Dinit_utils_string.c52 int unichar; in utf8_encoded_to_unichar() local
61 unichar = str[0] & 0x1f; in utf8_encoded_to_unichar()
64 unichar = (int)str[0] & 0x0f; in utf8_encoded_to_unichar()
67 unichar = (int)str[0] & 0x07; in utf8_encoded_to_unichar()
70 unichar = (int)str[0] & 0x03; in utf8_encoded_to_unichar()
73 unichar = (int)str[0] & 0x01; in utf8_encoded_to_unichar()
82 unichar <<= 6; in utf8_encoded_to_unichar()
83 unichar |= (int)str[i] & 0x3f; in utf8_encoded_to_unichar()
86 return unichar; in utf8_encoded_to_unichar()
90 static int utf8_unichar_to_encoded_len(int unichar) in utf8_unichar_to_encoded_len() argument
[all …]
/third_party/eudev/src/shared/
Dutf8.c104 int unichar, len, i; in utf8_encoded_to_unichar() local
114 unichar = str[0] & 0x1f; in utf8_encoded_to_unichar()
117 unichar = (int)str[0] & 0x0f; in utf8_encoded_to_unichar()
120 unichar = (int)str[0] & 0x07; in utf8_encoded_to_unichar()
123 unichar = (int)str[0] & 0x03; in utf8_encoded_to_unichar()
126 unichar = (int)str[0] & 0x01; in utf8_encoded_to_unichar()
135 unichar <<= 6; in utf8_encoded_to_unichar()
136 unichar |= (int)str[i] & 0x3f; in utf8_encoded_to_unichar()
139 return unichar; in utf8_encoded_to_unichar()
270 static int utf8_unichar_to_encoded_len(int unichar) { in utf8_unichar_to_encoded_len() argument
[all …]
/third_party/e2fsprogs/util/
Dmkutf8data.c307 unsigned int unichar = 0; in utf8decode() local
310 unichar = *s; in utf8decode()
312 unichar = *s++ & 0x1F; in utf8decode()
313 unichar <<= UTF8_V_SHIFT; in utf8decode()
314 unichar |= *s & 0x3F; in utf8decode()
316 unichar = *s++ & 0x0F; in utf8decode()
317 unichar <<= UTF8_V_SHIFT; in utf8decode()
318 unichar |= *s++ & 0x3F; in utf8decode()
319 unichar <<= UTF8_V_SHIFT; in utf8decode()
320 unichar |= *s & 0x3F; in utf8decode()
[all …]
/third_party/skia/samplecode/
DSampleStrokeVerb.cpp165 bool StrokeVerbView::onChar(SkUnichar unichar) { in onChar() argument
166 if (unichar >= '1' && unichar <= '4') { in onChar()
167 fVerbType = VerbType(unichar - '1'); in onChar()
178 if (unichar == '+') { in onChar()
183 if (unichar == '+' || unichar == '=') { in onChar()
188 if (unichar == '-') { in onChar()
193 if (unichar == '_') { in onChar()
199 if (unichar == 'D') { in onChar()
208 if (unichar == 'J') { in onChar()
213 if (unichar == 'C') { in onChar()
DSamplePathTessellators.cpp325 bool SamplePathTessellators::onChar(SkUnichar unichar) { in onChar() argument
326 switch (unichar) { in onChar()
355 fMode = (Mode)(unichar - '1'); in onChar()
DSampleFitCubicToCircle.cpp230 bool SampleFitCubicToCircle::onChar(SkUnichar unichar) { in onChar() argument
231 if (unichar == 'E') { in onChar()
/third_party/skia/src/utils/
DSkCharToGlyphCache.cpp96 int SkCharToGlyphCache::findGlyphIndex(SkUnichar unichar) const { in findGlyphIndex()
100 index = find_simple(fK32.begin(), count, unichar); in findGlyphIndex()
102 index = find_with_slope(fK32.begin(), count, unichar, fDenom); in findGlyphIndex()
110 void SkCharToGlyphCache::insertCharAndGlyph(int index, SkUnichar unichar, SkGlyphID glyph) { in insertCharAndGlyph() argument
113 SkASSERT(unichar < fK32[index]); in insertCharAndGlyph()
115 *fK32.insert(index) = unichar; in insertCharAndGlyph()
DSkCharToGlyphCache.h47 void addCharAndGlyph(SkUnichar unichar, SkGlyphID glyph) { in addCharAndGlyph() argument
48 int index = this->findGlyphIndex(unichar); in addCharAndGlyph()
52 this->insertCharAndGlyph(~index, unichar, glyph); in addCharAndGlyph()
/third_party/flutter/skia/src/utils/
DSkCharToGlyphCache.cpp96 int SkCharToGlyphCache::findGlyphIndex(SkUnichar unichar) const { in findGlyphIndex()
100 index = find_simple(fK32.begin(), count, unichar); in findGlyphIndex()
102 index = find_with_slope(fK32.begin(), count, unichar, fDenom); in findGlyphIndex()
110 void SkCharToGlyphCache::insertCharAndGlyph(int index, SkUnichar unichar, SkGlyphID glyph) { in insertCharAndGlyph() argument
113 SkASSERT(unichar < fK32[index]); in insertCharAndGlyph()
115 *fK32.insert(index) = unichar; in insertCharAndGlyph()
DSkCharToGlyphCache.h47 void addCharAndGlyph(SkUnichar unichar, SkGlyphID glyph) { in addCharAndGlyph() argument
48 int index = this->findGlyphIndex(unichar); in addCharAndGlyph()
52 this->insertCharAndGlyph(~index, unichar, glyph); in addCharAndGlyph()
/third_party/flutter/skia/samplecode/
DSampleCCPRGeometry.cpp439 bool CCPRGeometryView::onChar(SkUnichar unichar) { in onChar() argument
440 if (unichar >= '1' && unichar <= '4') { in onChar()
441 fPrimitiveType = PrimitiveType(unichar - '1'); in onChar()
455 if (unichar == '+') { in onChar()
460 if (unichar == '+' || unichar == '=') { in onChar()
465 if (unichar == '-') { in onChar()
470 if (unichar == '_') { in onChar()
476 if (unichar == 'D') { in onChar()
485 if (unichar == 'S') { in onChar()
/third_party/skia/modules/skunicode/include/
DSkUnicode.h183 SkUnichar unichar = SkUTF::NextUTF8(&current, end); in forEachCodepoint() local
184 if (unichar < 0) unichar = 0xFFFD; in forEachCodepoint()
187 size_t count = SkUTF::ToUTF16(unichar, buffer); in forEachCodepoint()
188 callback(unichar, before, after, count); in forEachCodepoint()
198 … SkUnichar unichar = SkUTF::NextUTF16((const uint16_t**)&current, (const uint16_t*)end); in forEachCodepoint() local
200 callback(unichar, before, after); in forEachCodepoint()
/third_party/boost/libs/spirit/test/karma/
Dregression_unicode_char.cpp57 unicode_char_grammar_<unicode_back_insert_iterator_type> unichar; in main() local
59 BOOST_TEST(test(expected, unichar, unicodeCharacter)); in main()
/third_party/flutter/skia/gm/
Dcoloremoji_blendmodes.cpp148 SkUnichar unichar = SkUTF::NextUTF8(&text, text + strlen(text)); in onDraw() local
149 SkASSERT(unichar >= 0); in onDraw()
150 canvas->drawSimpleText(&unichar, 4, SkTextEncoding::kUTF32, in onDraw()
/third_party/skia/gm/
Dcoloremoji_blendmodes.cpp148 SkUnichar unichar = SkUTF::NextUTF8(&text, text + strlen(text)); in onDraw() local
149 SkASSERT(unichar >= 0); in onDraw()
150 canvas->drawSimpleText(&unichar, 4, SkTextEncoding::kUTF32, in onDraw()
/third_party/skia/experimental/sktext/editor/
DTexts.h172 void insertElement(SkUnichar unichar, TextIndex toInsert) { in insertElement() argument
175 text.append(1, (unsigned)unichar); in insertElement()
180 void replaceElement(SkUnichar unichar, TextRange toReplace) { in replaceElement() argument
183 text.append(1, (unsigned)unichar); in replaceElement()
DEditor.cpp178 bool Editor::insertCodepoint(SkUnichar unichar) { in insertCodepoint() argument
183 fEditableText->insertElement(unichar, position.fTextRange.fStart); in insertCodepoint()
185 fEditableText->replaceElement(unichar, position.fTextRange); in insertCodepoint()
DEditor.h49 bool insertCodepoint(SkUnichar unichar);
/third_party/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_allegro5.cpp312 if (ev->keyboard.unichar > 0 && ev->keyboard.unichar < 0x10000) in ImGui_ImplAllegro5_ProcessEvent()
313 io.AddInputCharacter((unsigned short)ev->keyboard.unichar); in ImGui_ImplAllegro5_ProcessEvent()
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-ot-shape-normalize.cc98 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument
101 buffer->output_glyph (unichar); /* This is very confusing indeed. */ in output_char()
Dhb-font.hh600 hb_codepoint_t unichar; in glyph_from_string() local
602 hb_codepoint_parse (s + 3, len - 3, 16, &unichar) && in glyph_from_string()
603 get_nominal_glyph (unichar, glyph)) in glyph_from_string()
/third_party/flutter/skia/modules/skparagraph/src/
DRun.cpp216 auto unichar = utf8_next(&ch, span.end()); in setIsWhiteSpaces() local
217 if (!u_isWhitespace(unichar)) { in setIsWhiteSpaces()
/third_party/harfbuzz/src/
Dhb-font.hh603 hb_codepoint_t unichar; in glyph_from_string() local
605 hb_codepoint_parse (s + 3, len - 3, 16, &unichar) && in glyph_from_string()
606 get_nominal_glyph (unichar, glyph)) in glyph_from_string()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-font.hh605 hb_codepoint_t unichar; in glyph_from_string() local
607 hb_codepoint_parse (s + 3, len - 3, 16, &unichar) && in glyph_from_string()
608 get_nominal_glyph (unichar, glyph)) in glyph_from_string()
Dhb-ot-shape-normalize.cc102 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument
106 (void) buffer->output_glyph (unichar); in output_char()

123