Home
last modified time | relevance | path

Searched refs:toUnicode (Results 1 – 25 of 33) sorted by relevance

12

/external/fonttools/Tests/
Dagl_test.py8 self.assertEqual(agl.toUnicode("Lcommaaccent"), "Ļ")
9 self.assertEqual(agl.toUnicode("uni20AC0308"), "\u20AC\u0308")
10 self.assertEqual(agl.toUnicode("u1040C"), "\U0001040C")
11 self.assertEqual(agl.toUnicode("uniD801DC0C"), "")
12 self.assertEqual(agl.toUnicode("uni20ac"), "")
14 agl.toUnicode("Lcommaaccent_uni20AC0308_u1040C.alternate"),
16 self.assertEqual(agl.toUnicode("Lcommaaccent_uni013B_u013B"), "ĻĻĻ")
17 self.assertEqual(agl.toUnicode("foo"), "")
18 self.assertEqual(agl.toUnicode(".notdef"), "")
21 self.assertEqual(agl.toUnicode("longs_t"), "ſt")
[all …]
/external/icu/android_icu4j/testing/src/com/android/icu/test/text/
DExtendedIDNATest.java75 assertEquals("", toUnicode("", 0)); in testConvertIDNToUnicode()
76 assertEquals("www.bcher.de", toUnicode("www.bcher.de", 0)); in testConvertIDNToUnicode()
77 assertEquals("www.b\u00FCcher.de", toUnicode("www.b\u00FCcher.de", 0)); in testConvertIDNToUnicode()
78 assertEquals("www.\u65E5\u672C\u5E73.jp", toUnicode("www.\u65E5\u672C\u5E73.jp", 0)); in testConvertIDNToUnicode()
80 toUnicode("www\uFF0Exn--gwtq9nb2a\uFF61jp", 0)); in testConvertIDNToUnicode()
81 assertEquals("www.\u65E5\u672C\u5E73.jp", toUnicode("www.xn--gwtq9nb2a.jp", 0)); in testConvertIDNToUnicode()
82 assertEquals("", toUnicode("", IDNA.ALLOW_UNASSIGNED)); in testConvertIDNToUnicode()
83 assertEquals("www.f\u00E4rgbolaget.nu", toUnicode( in testConvertIDNToUnicode()
85 assertEquals("www.r\u00E4ksm\u00F6rg\u00E5s\u3002nu", toUnicode( in testConvertIDNToUnicode()
91 toUnicode("www\uFF0Exn--gwtq9nb2a\uFF61jp", IDNA.USE_STD3_RULES)); in testConvertIDNToUnicode()
[all …]
/external/fonttools/Lib/fontTools/varLib/instancer/
Dnames.py212 getName(n, *platform).toUnicode() for n in ribbiNameIDs
216 getName(n, *platform).toUnicode() for n in axisValueNameIDs
225 subFamilyName = getName(elidedNameID, *platform).toUnicode()
227 typoSubFamilyName = getName(elidedNameID, *platform).toUnicode()
230 getName(n, *platform).toUnicode() for n in nonRibbiNameIDs
247 and englishRecord.toUnicode() in ("Regular", "Italic", "Bold", "Bold Italic")
277 currentFamilyName = currentFamilyName.toUnicode()
278 currentStyleName = currentStyleName.toUnicode()
330 family_prefix = family_prefix.toUnicode()
358 if nameRecord.toUnicode() in currentRecord.toUnicode():
[all …]
/external/fonttools/Tests/ttLib/tables/
D_n_a_m_e_test.py40 self.assertEqual("Regular", table.getName(2, 1, 0, 0).toUnicode())
41 self.assertEqual("Version 1.000", table.getName(5, 3, 1, 0x409).toUnicode())
42 self.assertEqual("寬鬆", table.getName(276, 1, 2, 0x13).toUnicode())
45 self.assertEqual("緊縮", table.getName(276, 1, 2, 0x13).toUnicode())
331 self.assertEqual("Foo Bold", name.toUnicode())
336 self.assertEqual("Foo Italic", name.toUnicode())
341 self.assertEqual("Foo Italic"+chr(0x02DA), name.toUnicode())
346 self.assertRaises(UnicodeDecodeError, name.toUnicode)
351 self.assertEqual(name.toUnicode(), "A")
433 self.assertEqual(name.toUnicode(), chr(0x2122))
[all …]
/external/icu/icu4c/source/test/testdata/
Dtest2.ucm34 # toUnicode result is fallback direct
37 # toUnicode result is direct non-BMP code point
53 # toUnicode result is surrogate pair: test real pair, single unit, unassigned
Dtest3.ucm35 # toUnicode result is fallback direct
38 # toUnicode result is direct non-BMP code point
54 # toUnicode result is surrogate pair: test real pair, single unit, unassigned
Dtest1.ucm28 # toUnicode result is fallback direct
31 # toUnicode result is direct non-BMP code point
Dtest4.ucm38 # toUnicode result is fallback direct
41 # toUnicode result is direct non-BMP code point
47 # toUnicode result is surrogate pair: test real pair, single unit, unassigned
Dtest1bmp.ucm30 # toUnicode result is fallback direct
/external/fonttools/Snippets/
Drename-fonts.py50 return family_name_rec.toUnicode()
67 string = name_record.toUnicode()
101 if ps_family_name in rec.toUnicode():
/external/fonttools/Tests/varLib/instancer/
Dnames_test.py35 (r.nameID, r.platformID, r.platEncID, r.langID): r.toUnicode()
158 assert nametable.getName(17, 3, 1, 0x409).toUnicode() == "Regular Condensed"
165 assert nametable.getName(17, 3, 1, 0x409).toUnicode() == "Condensed Regular"
/external/icu/icu4c/source/test/intltest/
Dtestidna.h81 const char* toUnicodeName, TestFunc toUnicode);
113 const char* toUnicodeName, TestFunc toUnicode
Duts46test.cpp1077 UnicodeString toUnicode = s16FromField(fields[1]); in idnaTestOneLine() local
1078 if (toUnicode.isEmpty()) { in idnaTestOneLine()
1079 toUnicode = source; in idnaTestOneLine()
1092 toAsciiN = toUnicode; in idnaTestOneLine()
1123 checkIdnaTestResult(fields[0][0], "toUnicodeNontrans", toUnicode, uN, in idnaTestOneLine()
/external/fonttools/Lib/fontTools/ttLib/tables/
D_n_a_m_e.py109 unistr = name.toUnicode()
229 key = (name.toUnicode(), name.platformID,
419 def toUnicode(self, errors='strict'): member in NameRecord
483 toStr = toUnicode
487 unistr = self.toUnicode()
/external/fonttools/Doc/source/
Dagl.rst6 :members: toUnicode, UV2AGL, AGL2UV
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DUTS46Test.java878 String toUnicode = Utility.unescape(fields[1].trim()); in IdnaTest() local
879 if (toUnicode.isEmpty()) { in IdnaTest()
880 toUnicode = source; in IdnaTest()
893 toAsciiN = toUnicode; in IdnaTest()
924 … checkIdnaTestResult(line, "toUnicodeNontrans", toUnicode, uN, toUnicodeStatus, uNInfo); in IdnaTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DUTS46Test.java881 String toUnicode = Utility.unescape(fields[1].trim()); in IdnaTest() local
882 if (toUnicode.isEmpty()) { in IdnaTest()
883 toUnicode = source; in IdnaTest()
896 toAsciiN = toUnicode; in IdnaTest()
927 … checkIdnaTestResult(line, "toUnicodeNontrans", toUnicode, uN, toUnicodeStatus, uNInfo); in IdnaTest()
/external/fonttools/Lib/fontTools/
Dagl.py5107 def toUnicode(glyph, isZapfDingbats=False): function
/external/icu/icu4c/source/common/
Ducnv.cpp1272 UConverterToUnicode toUnicode; in _toUnicodeWithCallback() local
1295 toUnicode=cnv->sharedData->impl->toUnicode; in _toUnicodeWithCallback()
1297 toUnicode=cnv->sharedData->impl->toUnicodeWithOffsets; in _toUnicodeWithCallback()
1298 if(toUnicode==NULL) { in _toUnicodeWithCallback()
1300 toUnicode=cnv->sharedData->impl->toUnicode; in _toUnicodeWithCallback()
1349 toUnicode(pArgs, err); in _toUnicodeWithCallback()
Ducnv_cnv.h242 UConverterToUnicode toUnicode; member
/external/icu/libicu/cts_headers/
Ducnv_cnv.h242 UConverterToUnicode toUnicode; member
/external/cldr/tools/java/org/unicode/cldr/icu/
DTestCldr.java191 static Transliterator toUnicode = Transliterator.getInstance("any-hex"); field in TestCldr
194 return "\u00AB" + in + "\u00BB (" + toUnicode.transliterate(in) + ")"; in showString()
/external/skia/src/pdf/
DSkPDFFont.cpp395 std::unique_ptr<SkStreamAsset> toUnicode = in emit_subset_type0() local
401 fontDict.insertRef("ToUnicode", SkPDFStreamOut(nullptr, std::move(toUnicode), doc)); in emit_subset_type0()
/external/skqp/src/pdf/
DSkPDFFont.cpp404 std::unique_ptr<SkStreamAsset> toUnicode = in emit_subset_type0() local
410 fontDict.insertRef("ToUnicode", SkPDFStreamOut(nullptr, std::move(toUnicode), doc)); in emit_subset_type0()
/external/libxml2/
Dencoding.c106 openIcuConverter(const char* name, int toUnicode) in openIcuConverter() argument
121 if (toUnicode) { in openIcuConverter()
1888 xmlUconvWrapper(uconv_t *cd, int toUnicode, unsigned char *out, int *outlen, in xmlUconvWrapper() argument
1899 if (toUnicode) { in xmlUconvWrapper()

12