Home
last modified time | relevance | path

Searched refs:PyUnicode_KIND (Results 1 – 25 of 37) sorted by relevance

12

/external/python/cpython3/Objects/stringlib/
Deq.h20 if (PyUnicode_KIND(a) != PyUnicode_KIND(b)) in unicode_eq()
23 PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0; in unicode_eq()
Dlocaleutil.h78 enum PyUnicode_Kind kind = PyUnicode_KIND(writer->buffer); in InsertThousandsGrouping_fill()
/external/python/cffi/c/
Dwchar_helper_3.h38 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/
Dunicodeobject.c614 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 …]
Dlistobject.c2089 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()
Dbytesobject.c2358 unsigned int kind = PyUnicode_KIND(string); in _PyBytes_FromHex()
2370 assert(PyUnicode_KIND(string) == PyUnicode_1BYTE_KIND); in _PyBytes_FromHex()
Dexceptions.c1435 kind = PyUnicode_KIND(name); in my_basename()
2955 int kind = PyUnicode_KIND(self->text); in _check_for_legacy_statements()
/external/python/cpython3/Include/cpython/
Dunicodeobject.h341 #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.c184 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()
Dunicodedata.c524 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.c820 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()
Dbinascii.c224 assert(PyUnicode_KIND(arg) == PyUnicode_1BYTE_KIND); in ascii_buffer_converter()
D_operator.c1188 kind = PyUnicode_KIND(item); in attrgetter_new()
Dpyexpat.c1086 kind = PyUnicode_KIND(u); in PyUnknownEncodingHandler()
/external/python/cpython3/Python/
Dpystrhex.c29 if (PyUnicode_KIND(sep) != PyUnicode_1BYTE_KIND) { in _Py_strhex_impl()
Dformatter_unicode.c64 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.c443 kind = PyUnicode_KIND(filename); in normalize_module()
525 kind = PyUnicode_KIND(sourceline); in show_warning()
Dcodecs.c722 kind = PyUnicode_KIND(res); in PyCodec_ReplaceErrors()
748 kind = PyUnicode_KIND(res); in PyCodec_ReplaceErrors()
Dtraceback.c465 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine()
Dpystate.c1633 shared->kind = PyUnicode_KIND(obj); in _str_shared()
/external/python/cpython3/Modules/_io/
Dtextio.c341 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/
Dmultibytecodec.c246 kind = PyUnicode_KIND(replchar); in multibytecodec_encerror()
484 kind = PyUnicode_KIND(buf.inobj); in multibytecodec_encode()
/external/python/cpython3/Doc/c-api/
Dunicode.rst126 :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/
Dbytesobject.c2373 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/
Dconnection.c1674 kind = PyUnicode_KIND(uppercase_name); in pysqlite_connection_create_collation()

12