Home
last modified time | relevance | path

Searched refs:utf32 (Results 1 – 25 of 27) sorted by relevance

12

/external/harfbuzz_ng/test/api/
Dtest-buffer.c34 static const uint32_t utf32[7] = {'a', 'b', 0x20000, 'd', 'e', 'f', 'g'}; variable
73 for (i = 1; i < G_N_ELEMENTS (utf32) - 1; i++) in fixture_init()
74 hb_buffer_add (b, utf32[i], i); in fixture_init()
78 hb_buffer_add_utf32 (b, utf32, G_N_ELEMENTS (utf32), 1, G_N_ELEMENTS (utf32) - 2); in fixture_init()
213 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
221 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
225 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
232 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
236 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
245 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
[all …]
/external/libchrome/base/strings/
Dutf_string_conversions_unittest.cc158 const wchar_t* utf32; in TEST() member
179 WideToUTF8(test.utf32, wcslen(test.utf32), &converted)); in TEST()
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTPrint3D.cpp714 const CPVRTArray<PVRTuint32>& utf32) in MeasureText() argument
717 if(utf32.GetSize() == 0) { in MeasureText()
730 for(PVRTuint32 uiIndex = 0; uiIndex < utf32.GetSize(); uiIndex++) in MeasureText()
732 if(utf32[uiIndex] == 0x0D || utf32[uiIndex] == 0x0A) in MeasureText()
740 uiIdx = FindCharacter(utf32[uiIndex]); in MeasureText()
747 txNextChar = utf32[uiIndex + 1]; in MeasureText()
749 ApplyKerning(utf32[uiIndex], txNextChar, fKernOffset); in MeasureText()
DPVRTPrint3D.h351 const CPVRTArray<PVRTuint32>& utf32);
/external/skia/src/pdf/
DSkPDFUtils.h104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
106 size_t len = SkUTF16_FromUnichar(utf32, utf16); in WriteUTF16beHex()
DSkPDFDevice.cpp1258 const SkUnichar* utf32 = (const SkUnichar*)sourceText; in make_clusterator() local
1262 utf8ByteCount += SkToU32(SkUTF8_FromUnichar(utf32[i])); in make_clusterator()
1269 txtPtr += SkUTF8_FromUnichar(utf32[i], txtPtr); in make_clusterator()
/external/skqp/src/pdf/
DSkPDFUtils.h104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
106 size_t len = SkUTF16_FromUnichar(utf32, utf16); in WriteUTF16beHex()
DSkPDFDevice.cpp1258 const SkUnichar* utf32 = (const SkUnichar*)sourceText; in make_clusterator() local
1262 utf8ByteCount += SkToU32(SkUTF8_FromUnichar(utf32[i])); in make_clusterator()
1269 txtPtr += SkUTF8_FromUnichar(utf32[i], txtPtr); in make_clusterator()
/external/skqp/tools/
DSkTestScalerContext.cpp145 auto utf32 = (const SkUnichar*)chars; in onCharsToGlyphs() local
152 case kUTF32_Encoding: ch = *utf32++; break; in onCharsToGlyphs()
/external/skia/tools/fonts/
DSkTestScalerContext.cpp145 auto utf32 = (const SkUnichar*)chars; in onCharsToGlyphs() local
152 case kUTF32_Encoding: ch = *utf32++; break; in onCharsToGlyphs()
/external/skia/src/core/
DSkUtils.h49 int SkUTF32_CountUnichars(const void* utf32, size_t byteLength);
/external/skqp/src/core/
DSkUtils.h49 int SkUTF32_CountUnichars(const void* utf32, size_t byteLength);
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java312 Charset utf32 = CharsetICU.forNameICU(encoding); in show() local
318 sb.append(utf32.decode(ByteBuffer.wrap(bytes)).toString()); in show()
/external/skqp/src/ports/
DSkTypeface_win_dw.cpp111 const UINT32* utf32 = reinterpret_cast<const UINT32*>(chars); in onCharsToGlyphs() local
112 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs); in onCharsToGlyphs()
DSkFontHost_win.cpp788 uint16_t SkScalerContext_GDI::generateCharToGlyph(SkUnichar utf32) { in generateCharToGlyph() argument
792 if (SkUTF16_FromUnichar(utf32, (uint16_t*)utf16) == 1) { in generateCharToGlyph()
2114 const uint32_t* utf32 = reinterpret_cast<const uint32_t*>(chars); in onCharsToGlyphs() local
2119 while (runLength < glyphsLeft && utf32[glyphIndex + runLength] <= 0xFFFF) { in onCharsToGlyphs()
2120 scratch[runLength] = static_cast<WCHAR>(utf32[glyphIndex + runLength]); in onCharsToGlyphs()
2129 while (glyphIndex < glyphCount && utf32[glyphIndex] > 0xFFFF) { in onCharsToGlyphs()
2130 SkUTF16_FromUnichar(utf32[glyphIndex], reinterpret_cast<uint16_t*>(scratch)); in onCharsToGlyphs()
DSkFontHost_mac.cpp2152 const SkUnichar* utf32 = reinterpret_cast<const SkUnichar*>(chars); in onCharsToGlyphs() local
2156 utf16 += SkUTF16_FromUnichar(utf32[i], utf16); in onCharsToGlyphs()
/external/skia/src/ports/
DSkTypeface_win_dw.cpp111 const UINT32* utf32 = reinterpret_cast<const UINT32*>(chars); in onCharsToGlyphs() local
112 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs); in onCharsToGlyphs()
DSkFontHost_win.cpp788 uint16_t SkScalerContext_GDI::generateCharToGlyph(SkUnichar utf32) { in generateCharToGlyph() argument
792 if (SkUTF16_FromUnichar(utf32, (uint16_t*)utf16) == 1) { in generateCharToGlyph()
2114 const uint32_t* utf32 = reinterpret_cast<const uint32_t*>(chars); in onCharsToGlyphs() local
2119 while (runLength < glyphsLeft && utf32[glyphIndex + runLength] <= 0xFFFF) { in onCharsToGlyphs()
2120 scratch[runLength] = static_cast<WCHAR>(utf32[glyphIndex + runLength]); in onCharsToGlyphs()
2129 while (glyphIndex < glyphCount && utf32[glyphIndex] > 0xFFFF) { in onCharsToGlyphs()
2130 SkUTF16_FromUnichar(utf32[glyphIndex], reinterpret_cast<uint16_t*>(scratch)); in onCharsToGlyphs()
DSkFontHost_mac.cpp2152 const SkUnichar* utf32 = reinterpret_cast<const SkUnichar*>(chars); in onCharsToGlyphs() local
2156 utf16 += SkUTF16_FromUnichar(utf32[i], utf16); in onCharsToGlyphs()
/external/icu/icu4c/source/test/cintltst/
Dncnvtst.c779 UChar32 *utf32 = (UChar32*)malloc(MAX_LENGTH*sizeof(UChar32)); in TestRegressionUTF32() local
792 utf32[offset32++] = currCh; in TestRegressionUTF32()
796 …(const uint8_t *)utf32, offset32*sizeof(UChar32), "UTF32_PlatformEndian", 0, TRUE, U_ZERO_ERROR ))… in TestRegressionUTF32()
799 if(!convertToU((const uint8_t *)utf32, offset32*sizeof(UChar32), in TestRegressionUTF32()
805 free(utf32); in TestRegressionUTF32()
Dnucnvtst.c1153 static const uint8_t utf32[]={ in TestNewConvertWithBufferSizes() local
1198 testConvertToU(utf32, sizeof(utf32), in TestNewConvertWithBufferSizes()
1206 static const uint8_t utf32[]={ in TestNewConvertWithBufferSizes() local
1251 testConvertToU(utf32, sizeof(utf32), in TestNewConvertWithBufferSizes()
Dccapitst.c2784 static const uint8_t utf32[]={ in TestConvertAlgorithmic() local
2859 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF32, target, 0, (const char *)utf32, 4, &errorCode); in TestConvertAlgorithmic()
/external/icu/icu4c/source/common/
Dunistr.cpp451 UnicodeString UnicodeString::fromUTF32(const UChar32 *utf32, int32_t length) { in fromUTF32() argument
467 utf32, length, in fromUTF32()
1012 UnicodeString::toUTF32(UChar32 *utf32, int32_t capacity, UErrorCode &errorCode) const { in toUTF32() argument
1016 u_strToUTF32WithSub(utf32, capacity, &length32, in toUTF32()
/external/icu/icu4c/source/test/intltest/
Dustrtest.cpp1825 static const UChar32 utf32[] = { in TestUTF32() local
1833 UnicodeString from32 = UnicodeString::fromUTF32(utf32, UPRV_LENGTHOF(utf32)); in TestUTF32()
/external/icu/icu4c/source/common/unicode/
Dunistr.h1743 int32_t toUTF32(UChar32 *utf32, int32_t capacity, UErrorCode &errorCode) const;
3426 static UnicodeString fromUTF32(const UChar32 *utf32, int32_t length);

12