/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_macpath.py | 43 # Issue 5827: Make sure normpath preserves unicode 45 self.assertIsInstance(macpath.normpath(path), unicode, 46 'normpath() returned str instead of unicode')
|
test_print.py | 99 # 2.x unicode tests 110 # If an unicode arg is passed, sep and end should be unicode, too. 118 if self.force_unicode and not isinstance(what, unicode): 119 raise AssertionError("{0!r} is not unicode".format(what)) 130 self.assertIsInstance(buf.buf[1], unicode) 131 self.assertIsInstance(buf.buf[3], unicode) 134 self.assertIsInstance(buf.buf[-1], unicode)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
types.py | 31 UnicodeType = unicode
|
/prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/fixes/ |
fix_renames.py | 69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_macpath.py | 43 # Issue 5827: Make sure normpath preserves unicode 45 self.assertIsInstance(macpath.normpath(path), unicode, 46 'normpath() returned str instead of unicode')
|
test_print.py | 99 # 2.x unicode tests 110 # If an unicode arg is passed, sep and end should be unicode, too. 118 if self.force_unicode and not isinstance(what, unicode): 119 raise AssertionError("{0!r} is not unicode".format(what)) 130 self.assertIsInstance(buf.buf[1], unicode) 131 self.assertIsInstance(buf.buf[3], unicode) 134 self.assertIsInstance(buf.buf[-1], unicode)
|
/prebuilts/gdb/linux-x86/lib/python2.7/ |
types.py | 31 UnicodeType = unicode
|
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/text/unicode/norm/ |
example_iter_test.go | 12 "unicode/utf8" 14 "golang_org/x/text/unicode/norm"
|
/prebuilts/go/linux-x86/src/vendor/golang_org/x/text/unicode/norm/ |
example_iter_test.go | 12 "unicode/utf8" 14 "golang_org/x/text/unicode/norm"
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_renames.py | 69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_macpath.py | 43 # Issue 5827: Make sure normpath preserves unicode 45 self.assertIsInstance(macpath.normpath(path), unicode, 46 'normpath() returned str instead of unicode')
|
test_print.py | 99 # 2.x unicode tests 110 # If an unicode arg is passed, sep and end should be unicode, too. 118 if self.force_unicode and not isinstance(what, unicode): 119 raise AssertionError("{0!r} is not unicode".format(what)) 130 self.assertIsInstance(buf.buf[1], unicode) 131 self.assertIsInstance(buf.buf[3], unicode) 134 self.assertIsInstance(buf.buf[-1], unicode)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
types.py | 31 UnicodeType = unicode
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_renames.py | 69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_macpath.py | 43 # Issue 5827: Make sure normpath preserves unicode 45 self.assertIsInstance(macpath.normpath(path), unicode, 46 'normpath() returned str instead of unicode')
|
test_print.py | 99 # 2.x unicode tests 110 # If an unicode arg is passed, sep and end should be unicode, too. 118 if self.force_unicode and not isinstance(what, unicode): 119 raise AssertionError("{0!r} is not unicode".format(what)) 130 self.assertIsInstance(buf.buf[1], unicode) 131 self.assertIsInstance(buf.buf[3], unicode) 134 self.assertIsInstance(buf.buf[-1], unicode)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
types.py | 31 UnicodeType = unicode
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/sax/ |
saxutils.py | 186 if not isinstance(content, unicode):
187 content = unicode(content, self._encoding)
191 if not isinstance(content, unicode):
192 content = unicode(content, self._encoding)
328 if isinstance(sysid, unicode):
329 if not isinstance(basehead, unicode):
335 if isinstance(basehead, unicode):
|
/external/python/cpython2/Lib/xml/sax/ |
saxutils.py | 186 if not isinstance(content, unicode): 187 content = unicode(content, self._encoding) 191 if not isinstance(content, unicode): 192 content = unicode(content, self._encoding) 328 if isinstance(sysid, unicode): 329 if not isinstance(basehead, unicode): 335 if isinstance(basehead, unicode):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/ |
__init__.py | 129 (``str``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``)
133 may be ``unicode`` instances, subject to normal Python ``str`` to
134 ``unicode`` coercion rules. Unless ``fp.write()`` explicitly
135 understands ``unicode`` (as in ``codecs.getwriter()``) this is likely
191 (``str``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``)
195 ``unicode`` instance subject to normal Python ``str`` to ``unicode``
254 ``codecs.getreader(fp)(encoding)``, or simply decoded to a ``unicode``
283 """Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON
289 are not allowed and should be decoded to ``unicode`` first. [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_builtin.py | 254 compile(unicode('print u"\xc3\xa5"\n', 'utf8'), '', 'exec')
256 self.assertRaises(ValueError, compile, unicode('a = 1'), 'f', 'bad')
363 self.assertEqual(eval(unicode('1+1')), 2)
364 self.assertEqual(eval(unicode(' 1+1\n')), 2)
368 self.assertEqual(eval(unicode('a'), globals), 1)
369 self.assertEqual(eval(unicode('a'), globals, locals), 1)
370 self.assertEqual(eval(unicode('b'), globals, locals), 200)
371 self.assertEqual(eval(unicode('c'), globals, locals), 300)
374 self.assertEqual(eval(unicode('u"\xc3\xa5"', 'utf8'), globals),
375 unicode('\xc3\xa5', 'utf8')) [all...] |
test_types.py | 230 a = unicode('0123456789', 'ascii')
232 self.assertEqual(a[::2], unicode('02468', 'ascii'))
233 self.assertEqual(a[1::2], unicode('13579', 'ascii'))
234 self.assertEqual(a[::-1], unicode('9876543210', 'ascii'))
235 self.assertEqual(a[::-2], unicode('97531', 'ascii'))
236 self.assertEqual(a[3::-2], unicode('31', 'ascii'))
239 self.assertEqual(a[-100L:100L:2L], unicode('02468', 'ascii'))
302 self.assertEqual(i.__format__(unicode(format_spec)), result)
456 self.assertEqual(i.__format__(unicode(format_spec)), result)
594 self.assertEqual(f.__format__(unicode(format_spec)), result) [all...] |
/external/icu/icu4c/source/test/perf/ubrkperf/ |
ubrkperfold.cpp | 2 * © 2016 and later: Unicode, Inc. and others. 3 * License & terms of use: http://www.unicode.org/copyright.html#License 64 #include <unicode/utypes.h> 65 #include <unicode/ucol.h> 66 #include <unicode/ucoleitr.h> 67 #include <unicode/uloc.h> 68 #include <unicode/ustring.h> 69 #include <unicode/ures.h> 70 #include <unicode/uchar.h> 71 #include <unicode/ucnv.h [all...] |
/external/python/cpython2/Lib/test/ |
test_builtin.py | 256 compile(unicode('print u"\xc3\xa5"\n', 'utf8'), '', 'exec') 258 self.assertRaises(ValueError, compile, unicode('a = 1'), 'f', 'bad') 365 self.assertEqual(eval(unicode('1+1')), 2) 366 self.assertEqual(eval(unicode(' 1+1\n')), 2) 370 self.assertEqual(eval(unicode('a'), globals), 1) 371 self.assertEqual(eval(unicode('a'), globals, locals), 1) 372 self.assertEqual(eval(unicode('b'), globals, locals), 200) 373 self.assertEqual(eval(unicode('c'), globals, locals), 300) 376 self.assertEqual(eval(unicode('u"\xc3\xa5"', 'utf8'), globals), 377 unicode('\xc3\xa5', 'utf8') [all...] |
test_types.py | 230 a = unicode('0123456789', 'ascii') 232 self.assertEqual(a[::2], unicode('02468', 'ascii')) 233 self.assertEqual(a[1::2], unicode('13579', 'ascii')) 234 self.assertEqual(a[::-1], unicode('9876543210', 'ascii')) 235 self.assertEqual(a[::-2], unicode('97531', 'ascii')) 236 self.assertEqual(a[3::-2], unicode('31', 'ascii')) 239 self.assertEqual(a[-100L:100L:2L], unicode('02468', 'ascii')) 302 self.assertEqual(i.__format__(unicode(format_spec)), result) 456 self.assertEqual(i.__format__(unicode(format_spec)), result) 594 self.assertEqual(f.__format__(unicode(format_spec)), result [all...] |