Home
last modified time | relevance | path

Searched refs:unicode (Results 1 – 25 of 4276) sorted by relevance

12345678910>>...172

/external/regex-re2/re2/testing/
Dunicode_test.py13 from google3.util.regexp.re2 import unicode
23 self.assertEquals(0x0000, unicode._UInt("0000"))
24 self.assertEquals(0x263A, unicode._UInt("263A"))
25 self.assertEquals(0x10FFFF, unicode._UInt("10FFFF"))
26 self.assertRaises(unicode.InputError, unicode._UInt, "263")
27 self.assertRaises(unicode.InputError, unicode._UInt, "263AAAA")
28 self.assertRaises(unicode.InputError, unicode._UInt, "110000")
31 self.assertEquals([1, 2, 3], unicode._URange("0001..0003"))
32 self.assertEquals([1], unicode._URange("0001"))
33 self.assertRaises(unicode.InputError, unicode._URange, "0001..0003..0005")
[all …]
/external/python/cpython2/Lib/test/
Dtest_future4.py12 self.assertType("", unicode)
13 self.assertType('', unicode)
14 self.assertType(r"", unicode)
15 self.assertType(r'', unicode)
16 self.assertType(""" """, unicode)
17 self.assertType(''' ''', unicode)
18 self.assertType(r""" """, unicode)
19 self.assertType(r''' ''', unicode)
20 self.assertType(u"", unicode)
21 self.assertType(u'', unicode)
[all …]
Dtest_contains.py41 self.assertIn('c', unicode('abc'))
42 self.assertNotIn('d', unicode('abc'))
44 self.assertIn('', unicode(''))
45 self.assertIn(unicode(''), '')
46 self.assertIn(unicode(''), unicode(''))
47 self.assertIn('', unicode('abc'))
48 self.assertIn(unicode(''), 'abc')
49 self.assertIn(unicode(''), unicode('abc'))
51 self.assertRaises(TypeError, lambda: None in unicode('abc'))
54 self.assertIn(unicode('c'), unicode('abc'))
[all …]
Dtest_charmapcodec.py30 self.assertEqual(unicode('abc', codecname), u'abc')
31 self.assertEqual(unicode('xdef', codecname), u'abcdef')
32 self.assertEqual(unicode('defx', codecname), u'defabc')
33 self.assertEqual(unicode('dxf', codecname), u'dabcf')
34 self.assertEqual(unicode('dxfx', codecname), u'dabcfabc')
44 self.assertEqual(unicode('ydef', codecname), u'def')
45 self.assertEqual(unicode('defy', codecname), u'def')
46 self.assertEqual(unicode('dyf', codecname), u'df')
47 self.assertEqual(unicode('dyfy', codecname), u'df')
50 self.assertRaises(UnicodeError, unicode, 'abc\001', codecname)
Dtest_bool.py226 self.assertIs(unicode("xyz", 'ascii').endswith(unicode("z", 'ascii')), True)
227 self.assertIs(unicode("xyz", 'ascii').endswith(unicode("x", 'ascii')), False)
228 self.assertIs(unicode("xyz0123", 'ascii').isalnum(), True)
229 self.assertIs(unicode("@#$%", 'ascii').isalnum(), False)
230 self.assertIs(unicode("xyz", 'ascii').isalpha(), True)
231 self.assertIs(unicode("@#$%", 'ascii').isalpha(), False)
232 self.assertIs(unicode("0123", 'ascii').isdecimal(), True)
233 self.assertIs(unicode("xyz", 'ascii').isdecimal(), False)
234 self.assertIs(unicode("0123", 'ascii').isdigit(), True)
235 self.assertIs(unicode("xyz", 'ascii').isdigit(), False)
[all …]
/external/harfbuzz_ng/src/
Dhb-utf-private.hh40 hb_codepoint_t *unicode, in next()
98 *unicode = c; in next()
102 *unicode = replacement; in next()
109 hb_codepoint_t *unicode, in prev()
116 if (likely (next (text, end, unicode, replacement) == end)) in prev()
119 *unicode = replacement; in prev()
138 hb_codepoint_t *unicode, in next()
145 *unicode = c; in next()
156 *unicode = (c << 10) + l - ((0xD800u << 10) - 0x10000u + 0xDC00u); in next()
163 *unicode = replacement; in next()
[all …]
Dhb-unicode-private.hh73 …inline return_type name (hb_codepoint_t unicode) { return func.name (this, unicode, user_data.name…
106 modified_combining_class (hb_codepoint_t unicode) in modified_combining_class()
109 if (unlikely (unicode == 0x1037u)) unicode = 0x103Au; in modified_combining_class()
113 if (unlikely (unicode == 0x1A60u)) return 254; in modified_combining_class()
117 if (unlikely (unicode == 0x0FC6u)) return 254; in modified_combining_class()
119 if (unlikely (unicode == 0x0F39u)) return 127; in modified_combining_class()
121 return _hb_modified_combining_class[combining_class (unicode)]; in modified_combining_class()
125 is_variation_selector (hb_codepoint_t unicode) in is_variation_selector()
129 return unlikely (hb_in_ranges (unicode, in is_variation_selector()
Dhb-ucdn.cc166 hb_ucdn_combining_class(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode, in hb_ucdn_combining_class() argument
169 return (hb_unicode_combining_class_t) ucdn_get_combining_class(unicode); in hb_ucdn_combining_class()
173 hb_ucdn_eastasian_width(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode, in hb_ucdn_eastasian_width() argument
176 int w = ucdn_get_east_asian_width(unicode); in hb_ucdn_eastasian_width()
181 hb_ucdn_general_category(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode, in hb_ucdn_general_category() argument
184 return (hb_unicode_general_category_t)ucdn_get_general_category(unicode); in hb_ucdn_general_category()
188 hb_ucdn_mirroring(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode, in hb_ucdn_mirroring() argument
191 return ucdn_mirror(unicode); in hb_ucdn_mirroring()
195 hb_ucdn_script(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode, in hb_ucdn_script() argument
198 return ucdn_script_translate[ucdn_get_script(unicode)]; in hb_ucdn_script()
Dhb-glib.cc197 hb_codepoint_t unicode, in hb_glib_unicode_combining_class() argument
201 return (hb_unicode_combining_class_t) g_unichar_combining_class (unicode); in hb_glib_unicode_combining_class()
206 hb_codepoint_t unicode, in hb_glib_unicode_eastasian_width() argument
209 return g_unichar_iswide (unicode) ? 2 : 1; in hb_glib_unicode_eastasian_width()
214 hb_codepoint_t unicode, in hb_glib_unicode_general_category() argument
219 return (hb_unicode_general_category_t) g_unichar_type (unicode); in hb_glib_unicode_general_category()
224 hb_codepoint_t unicode, in hb_glib_unicode_mirroring() argument
227 g_unichar_get_mirror_char (unicode, &unicode); in hb_glib_unicode_mirroring()
228 return unicode; in hb_glib_unicode_mirroring()
233 hb_codepoint_t unicode, in hb_glib_unicode_script() argument
[all …]
Dhb-unicode.h223 hb_codepoint_t unicode,
226 hb_codepoint_t unicode,
229 hb_codepoint_t unicode,
232 hb_codepoint_t unicode,
235 hb_codepoint_t unicode,
414 hb_codepoint_t unicode);
423 hb_codepoint_t unicode);
432 hb_codepoint_t unicode);
441 hb_codepoint_t unicode);
450 hb_codepoint_t unicode);
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DRopeByteStringSubstringTest.java76 ByteString unicode = ByteString.EMPTY; in testToString() local
79 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString()
85 unicode = unicode.substring(2, unicode.size() - 6); in testToString()
88 classUnderTest, getActualClassName(unicode)); in testToString()
89 String roundTripString = unicode.toString(UTF_8); in testToString()
93 assertEquals(classUnderTest + " string must equal the flat string", flatString, unicode); in testToString()
95 flatString.hashCode(), unicode.hashCode()); in testToString()
106 ByteString unicode = ByteString.EMPTY; in testCharsetToString() local
109 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString()
115 unicode = unicode.substring(2, unicode.size() - 6); in testCharsetToString()
[all …]
DRopeByteStringTest.java103 ByteString unicode = ByteString.EMPTY; in testToString() local
106 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testToString()
111 classUnderTest, getActualClassName(unicode)); in testToString()
112 String roundTripString = unicode.toString(UTF_8); in testToString()
116 assertEquals(classUnderTest + " string must equal the flat string", flatString, unicode); in testToString()
118 flatString.hashCode(), unicode.hashCode()); in testToString()
129 ByteString unicode = ByteString.EMPTY; in testCharsetToString() local
132 unicode = RopeByteString.concatenate(unicode, sourceByteString); in testCharsetToString()
137 classUnderTest, getActualClassName(unicode)); in testCharsetToString()
138 String roundTripString = unicode.toString(Internal.UTF_8); in testCharsetToString()
[all …]
/external/autotest/client/cros/scripts/
Dwifi13 'EAP.AnonymousIdentity': unicode,
14 'EAP.CACertID': unicode,
15 'EAP.CACertNSS': unicode,
16 'EAP.CACertPEM': unicode,
17 'EAP.CACert': unicode,
18 'EAP.CertID': unicode,
19 'EAP.ClientCert': unicode,
20 'EAP.EAP': unicode,
21 'EAP.Identity': unicode,
22 'EAP.InnerEAP': unicode,
[all …]
/external/pdfium/third_party/freetype/src/psnames/
Dpsmodule.c174 FT_UInt32 unicode1 = BASE_GLYPH( map1->unicode ); in compare_uni_maps()
175 FT_UInt32 unicode2 = BASE_GLYPH( map2->unicode ); in compare_uni_maps()
181 if ( map1->unicode > map2->unicode ) in compare_uni_maps()
183 else if ( map1->unicode < map2->unicode ) in compare_uni_maps()
342 map->unicode = uni_char; in ps_unicodes_init()
359 map->unicode = ft_extra_glyph_unicodes[n]; in ps_unicodes_init()
399 FT_UInt32 unicode ) in ps_unicodes_char_index() argument
416 if ( mid->unicode == unicode ) in ps_unicodes_char_index()
422 base_glyph = BASE_GLYPH( mid->unicode ); in ps_unicodes_char_index()
424 if ( base_glyph == unicode ) in ps_unicodes_char_index()
[all …]
/external/freetype/src/psnames/
Dpsmodule.c177 FT_UInt32 unicode1 = BASE_GLYPH( map1->unicode ); in compare_uni_maps()
178 FT_UInt32 unicode2 = BASE_GLYPH( map2->unicode ); in compare_uni_maps()
184 if ( map1->unicode > map2->unicode ) in compare_uni_maps()
186 else if ( map1->unicode < map2->unicode ) in compare_uni_maps()
345 map->unicode = uni_char; in ps_unicodes_init()
362 map->unicode = ft_extra_glyph_unicodes[n]; in ps_unicodes_init()
402 FT_UInt32 unicode ) in ps_unicodes_char_index() argument
419 if ( mid->unicode == unicode ) in ps_unicodes_char_index()
425 base_glyph = BASE_GLYPH( mid->unicode ); in ps_unicodes_char_index()
427 if ( base_glyph == unicode ) in ps_unicodes_char_index()
[all …]
/external/pdfium/core/fxcrt/
Dfx_basic_utf.cpp46 void CFX_UTF8Encoder::Input(FX_WCHAR unicode) { in Input() argument
47 if ((uint32_t)unicode < 0x80) { in Input()
48 m_Buffer.AppendChar(unicode); in Input()
50 if ((uint32_t)unicode >= 0x80000000) { in Input()
54 if ((uint32_t)unicode < 0x800) { in Input()
56 } else if ((uint32_t)unicode < 0x10000) { in Input()
58 } else if ((uint32_t)unicode < 0x200000) { in Input()
60 } else if ((uint32_t)unicode < 0x4000000) { in Input()
67 int code = unicode; in Input()
/external/mdnsresponder/mDNSWindows/
DWinServices.cpp30 BSTR unicode; in UTF8StringToStringObject() local
32 unicode = NULL; in UTF8StringToStringObject()
37 unicode = (BSTR) malloc( (size_t)( n * sizeof( wchar_t ) ) ); in UTF8StringToStringObject()
38 if( !unicode ) in UTF8StringToStringObject()
44 n = MultiByteToWideChar( CP_UTF8, 0, inUTF8, -1, unicode, n ); in UTF8StringToStringObject()
47 inObject = unicode; in UTF8StringToStringObject()
62 if( unicode ) in UTF8StringToStringObject()
64 free( unicode ); in UTF8StringToStringObject()
/external/fonttools/Lib/fontTools/
Dagl.py726 unicode = m.group(1)
727 assert len(unicode) == 4
728 unicode = int(unicode, 16)
732 assert AGL2UV[glyphName] == unicode
734 AGL2UV[glyphName] = unicode
735 UV2AGL[unicode] = glyphName
/external/icu/icu4c/source/test/hdrtst/
DMakefile.in36 DIRS=$(prefix)/include/unicode
70 echo "$@ unicode/$$incfile.h" ; \
84 echo "$@ unicode/$$incfile.h" ; \
91 …fgrep -q "$$incfile.h header is obsolete" ht_dep.junk || echo "** FAIL Header unicode/$$incfile.h …
105 echo "$@ unicode/$$incfile.h" ; \
116 echo "$@ unicode/$$incfile.h" ; \
128 echo "$@ unicode/$$incfile.h" ; \
141 echo "$@ unicode/$$incfile.h" ; \
153 echo "$@ unicode/$$incfile.h" ; \
/external/pdfium/xfa/fxbarcode/
DBC_UtilCodingConvert.cpp20 CFX_WideString unicode = CFX_WideString::FromLocal(src.AsStringC()); in LocaleToUtf8() local
21 dst = unicode.UTF8Encode(); in LocaleToUtf8()
26 CFX_WideString unicode = CFX_WideString::FromLocal(src.AsStringC()); in LocaleToUtf8() local
27 CFX_ByteString utf8 = unicode.UTF8Encode(); in LocaleToUtf8()
39 CFX_WideString unicode = CFX_WideString::FromUTF8(utf8.AsStringC()); in Utf8ToLocale() local
40 dst = CFX_ByteString::FromUnicode(unicode); in Utf8ToLocale()
46 CFX_WideString unicode = in Utf8ToLocale() local
48 dst = CFX_ByteString::FromUnicode(unicode); in Utf8ToLocale()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cidfont.cpp150 FX_WCHAR unicode) { in EmbeddedCharcodeFromUnicode() argument
160 if (pCodes[i] == unicode) { in EmbeddedCharcodeFromUnicode()
256 FX_WCHAR unicode; in GetUnicodeFromCharCode() local
264 reinterpret_cast<const FX_CHAR*>(&charcode), charsize, &unicode, 1); in GetUnicodeFromCharCode()
265 return ret == 1 ? unicode : 0; in GetUnicodeFromCharCode()
274 uint32_t CPDF_CIDFont::CharCodeFromUnicode(FX_WCHAR unicode) const { in CharCodeFromUnicode()
275 uint32_t charcode = CPDF_Font::CharCodeFromUnicode(unicode); in CharCodeFromUnicode()
283 return unicode; in CharCodeFromUnicode()
291 if (this_unicode == unicode) in CharCodeFromUnicode()
299 if (unicode < 0x80) in CharCodeFromUnicode()
[all …]
Dcpdf_fontencoding.cpp1639 uint32_t PDF_FindCode(const uint16_t* pCodes, uint16_t unicode) { in PDF_FindCode() argument
1641 if (pCodes[i] == unicode) in PDF_FindCode()
1652 int CPDF_FontEncoding::CharCodeFromUnicode(FX_WCHAR unicode) const { in CharCodeFromUnicode()
1654 if (m_Unicodes[i] == unicode) { in CharCodeFromUnicode()
1720 uint32_t FT_CharCodeFromUnicode(int encoding, FX_WCHAR unicode) { in FT_CharCodeFromUnicode() argument
1723 return unicode; in FT_CharCodeFromUnicode()
1725 return PDF_FindCode(StandardEncoding, unicode); in FT_CharCodeFromUnicode()
1727 return PDF_FindCode(MacExpertEncoding, unicode); in FT_CharCodeFromUnicode()
1729 return PDF_FindCode(AdobeWinAnsiEncoding, unicode); in FT_CharCodeFromUnicode()
1731 return PDF_FindCode(MacRomanEncoding, unicode); in FT_CharCodeFromUnicode()
[all …]
/external/python/cpython2/Objects/
Dunicodeobject.c260 int unicode_resize(register PyUnicodeObject *unicode, in unicode_resize() argument
266 if (unicode->length == length) in unicode_resize()
273 if (unicode == unicode_empty || in unicode_resize()
274 (unicode->length == 1 && in unicode_resize()
275 unicode->str[0] < 256U && in unicode_resize()
276 unicode_latin1[unicode->str[0]] == unicode)) { in unicode_resize()
287 oldstr = unicode->str; in unicode_resize()
288 unicode->str = PyObject_REALLOC(unicode->str, in unicode_resize()
290 if (!unicode->str) { in unicode_resize()
291 unicode->str = (Py_UNICODE *)oldstr; in unicode_resize()
[all …]
/external/ImageMagick/MagickCore/
Dtoken-private.h105 unicode; in GetNextUTFCode() local
114 unicode=code; in GetNextUTFCode()
119 unicode&=utf_info[i].utf_mask; in GetNextUTFCode()
120 if (unicode < utf_info[i].utf_value) in GetNextUTFCode()
126 return(unicode); in GetNextUTFCode()
134 unicode=(unicode << 6) | c; in GetNextUTFCode()
/external/mdnsresponder/mDNSWindows/DLLX/
DStringServices.cpp158 wchar_t * unicode = NULL; in UTF8ToBSTR() local
181 unicode = new wchar_t[ n ]; in UTF8ToBSTR()
189 unicode = NULL; in UTF8ToBSTR()
195 require_action( unicode, exit, err = ERROR_INSUFFICIENT_BUFFER ); in UTF8ToBSTR()
199 n = MultiByteToWideChar( CP_UTF8, 0, inString, -1, unicode, n ); in UTF8ToBSTR()
205 outString = unicode; in UTF8ToBSTR()
214 if ( unicode != NULL ) in UTF8ToBSTR()
218 delete [] unicode; in UTF8ToBSTR()

12345678910>>...172