/external/python/cpython3/Objects/stringlib/ |
D | eq.h | 20 if (PyUnicode_KIND(a) != PyUnicode_KIND(b)) in unicode_eq() 23 PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0; in unicode_eq()
|
D | localeutil.h | 78 enum PyUnicode_Kind kind = PyUnicode_KIND(writer->buffer); in InsertThousandsGrouping_fill()
|
/external/python/cffi/c/ |
D | wchar_helper_3.h | 38 assert(PyUnicode_KIND(result) == PyUnicode_4BYTE_KIND); in _my_PyUnicode_FromChar16() 95 unsigned int kind = PyUnicode_KIND(unicode); in _my_PyUnicode_SizeAsChar16() 119 unsigned int kind = PyUnicode_KIND(unicode); in _my_PyUnicode_AsChar16()
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 614 int kind = PyUnicode_KIND(unicode); in unicode_result_ready() 674 kind = PyUnicode_KIND(unicode); in backslashreplace() 741 kind = PyUnicode_KIND(unicode); in xmlcharrefreplace() 952 int kind = PyUnicode_KIND(unicode); in unicode_fill_invalid() 977 char_size = PyUnicode_KIND(unicode); in resize_compact() 1022 PyUnicode_WRITE(PyUnicode_KIND(unicode), PyUnicode_DATA(unicode), in resize_compact() 1045 char_size = PyUnicode_KIND(unicode); in resize_inplace() 1077 PyUnicode_WRITE(PyUnicode_KIND(unicode), data, length, 0); in resize_inplace() 1216 switch (PyUnicode_KIND(unicode)) in unicode_kind_name() 1232 switch (PyUnicode_KIND(unicode)) { in unicode_kind_name() [all …]
|
D | listobject.c | 2089 assert(PyUnicode_KIND(v) == PyUnicode_KIND(w)); in unsafe_latin_compare() 2090 assert(PyUnicode_KIND(v) == PyUnicode_1BYTE_KIND); in unsafe_latin_compare() 2329 PyUnicode_KIND(key) != PyUnicode_1BYTE_KIND) { in list_sort_impl()
|
D | bytesobject.c | 2358 unsigned int kind = PyUnicode_KIND(string); in _PyBytes_FromHex() 2370 assert(PyUnicode_KIND(string) == PyUnicode_1BYTE_KIND); in _PyBytes_FromHex()
|
D | exceptions.c | 1435 kind = PyUnicode_KIND(name); in my_basename() 2955 int kind = PyUnicode_KIND(self->text); in _check_for_legacy_statements()
|
/external/python/cpython3/Include/cpython/ |
D | unicodeobject.h | 341 #define PyUnicode_KIND(op) \ macro 408 (PyUnicode_KIND((unicode)) == PyUnicode_1BYTE_KIND ? \ 410 (PyUnicode_KIND((unicode)) == PyUnicode_2BYTE_KIND ? \ 446 (PyUnicode_KIND(op) == PyUnicode_1BYTE_KIND ? \ 448 (PyUnicode_KIND(op) == PyUnicode_2BYTE_KIND ? \
|
/external/python/cpython3/Modules/ |
D | _json.c | 184 kind = PyUnicode_KIND(pystr); in ascii_escape_unicode() 251 kind = PyUnicode_KIND(pystr); in escape_unicode() 279 kind = PyUnicode_KIND(rval); in escape_unicode() 428 kind = PyUnicode_KIND(pystr); in scanstring_unicode() 726 kind = PyUnicode_KIND(pystr); in _parse_object_unicode() 864 kind = PyUnicode_KIND(pystr); in _parse_array_unicode() 965 kind = PyUnicode_KIND(pystr); in _match_number_unicode() 1077 kind = PyUnicode_KIND(pystr); in scan_once_unicode()
|
D | unicodedata.c | 524 kind = PyUnicode_KIND(input); in nfd_nfkd() 594 kind = PyUnicode_KIND(result); in nfd_nfkd() 658 kind = PyUnicode_KIND(result); in nfc_nfkc() 816 kind = PyUnicode_KIND(input); in is_normalized_quickcheck()
|
D | _csv.c | 820 kind = PyUnicode_KIND(lineobj); in Reader_iternext() 1111 field_kind = PyUnicode_KIND(field); in join_append() 1146 term_kind = PyUnicode_KIND(self->dialect->lineterminator); in join_append_lineterminator()
|
D | binascii.c | 224 assert(PyUnicode_KIND(arg) == PyUnicode_1BYTE_KIND); in ascii_buffer_converter()
|
D | _operator.c | 1188 kind = PyUnicode_KIND(item); in attrgetter_new()
|
D | pyexpat.c | 1086 kind = PyUnicode_KIND(u); in PyUnknownEncodingHandler()
|
/external/python/cpython3/Python/ |
D | pystrhex.c | 29 if (PyUnicode_KIND(sep) != PyUnicode_1BYTE_KIND) { in _Py_strhex_impl()
|
D | formatter_unicode.c | 64 int kind = PyUnicode_KIND(str); in get_integer() 172 int kind = PyUnicode_KIND(format_spec); in parse_internal_render_format_spec() 445 int kind = PyUnicode_KIND(s); in parse_number()
|
D | _warnings.c | 443 kind = PyUnicode_KIND(filename); in normalize_module() 525 kind = PyUnicode_KIND(sourceline); in show_warning()
|
D | codecs.c | 722 kind = PyUnicode_KIND(res); in PyCodec_ReplaceErrors() 748 kind = PyUnicode_KIND(res); in PyCodec_ReplaceErrors()
|
D | traceback.c | 465 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine()
|
D | pystate.c | 1633 shared->kind = PyUnicode_KIND(obj); in _str_shared()
|
/external/python/cpython3/Modules/_io/ |
D | textio.c | 341 kind = PyUnicode_KIND(modified); in _PyIncrementalNewlineDecoder_decode() 378 kind = PyUnicode_KIND(output); in _PyIncrementalNewlineDecoder_decode() 449 int kind = PyUnicode_KIND(output); in _PyIncrementalNewlineDecoder_decode() 841 assert(PyUnicode_KIND(self->readnl) == PyUnicode_1BYTE_KIND); in set_newline() 2050 assert(PyUnicode_KIND(readnl) == PyUnicode_1BYTE_KIND); in _PyIO_find_line_ending() 2151 kind = PyUnicode_KIND(line); in _textiowrapper_readline()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 246 kind = PyUnicode_KIND(replchar); in multibytecodec_encerror() 484 kind = PyUnicode_KIND(buf.inobj); in multibytecodec_encode()
|
/external/python/cpython3/Doc/c-api/ |
D | unicode.rst | 126 :c:func:`PyUnicode_KIND` to select the right macro. Make sure 137 Return values of the :c:func:`PyUnicode_KIND` macro. 142 .. c:function:: int PyUnicode_KIND(PyObject *o) 406 :c:func:`PyUnicode_KIND`). The *buffer* must point to an array of *size* 683 :c:func:`PyUnicode_KIND`.
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 2373 unsigned int kind = PyUnicode_KIND(string); in _PyBytes_FromHex() 2385 assert(PyUnicode_KIND(string) == PyUnicode_1BYTE_KIND); in _PyBytes_FromHex()
|
/external/python/cpython3/Modules/_sqlite/ |
D | connection.c | 1674 kind = PyUnicode_KIND(uppercase_name); in pysqlite_connection_create_collation()
|