Home
last modified time | relevance | path

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

12

/external/python/cpython3/Objects/stringlib/
Deq.h21 if (PyUnicode_KIND(a) != PyUnicode_KIND(b)) in unicode_eq()
24 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.c683 int kind = PyUnicode_KIND(unicode); in unicode_result_ready()
744 kind = PyUnicode_KIND(unicode); in backslashreplace()
811 kind = PyUnicode_KIND(unicode); in xmlcharrefreplace()
1029 int kind = PyUnicode_KIND(unicode); in unicode_fill_invalid()
1054 char_size = PyUnicode_KIND(unicode); in resize_compact()
1103 PyUnicode_WRITE(PyUnicode_KIND(unicode), PyUnicode_DATA(unicode), in resize_compact()
1126 char_size = PyUnicode_KIND(unicode); in resize_inplace()
1158 PyUnicode_WRITE(PyUnicode_KIND(unicode), data, length, 0); in resize_inplace()
1297 switch (PyUnicode_KIND(unicode)) in unicode_kind_name()
1313 switch (PyUnicode_KIND(unicode)) { in unicode_kind_name()
[all …]
Dlistobject.c2057 assert(PyUnicode_KIND(v) == PyUnicode_KIND(w)); in unsafe_latin_compare()
2058 assert(PyUnicode_KIND(v) == PyUnicode_1BYTE_KIND); in unsafe_latin_compare()
2296 PyUnicode_KIND(key) != PyUnicode_1BYTE_KIND) { in list_sort_impl()
Dexceptions.c1447 kind = PyUnicode_KIND(name); in my_basename()
2979 int kind = PyUnicode_KIND(self->text); in _check_for_legacy_statements()
Dbytesobject.c2362 unsigned int kind = PyUnicode_KIND(string); in _PyBytes_FromHex()
2374 assert(PyUnicode_KIND(string) == PyUnicode_1BYTE_KIND); in _PyBytes_FromHex()
/external/python/cpython3/Include/cpython/
Dunicodeobject.h334 #define PyUnicode_KIND(op) \ macro
401 (PyUnicode_KIND((unicode)) == PyUnicode_1BYTE_KIND ? \
403 (PyUnicode_KIND((unicode)) == PyUnicode_2BYTE_KIND ? \
439 (PyUnicode_KIND(op) == PyUnicode_1BYTE_KIND ? \
441 (PyUnicode_KIND(op) == PyUnicode_2BYTE_KIND ? \
/external/python/cpython3/Modules/
D_json.c171 kind = PyUnicode_KIND(pystr); in ascii_escape_unicode()
238 kind = PyUnicode_KIND(pystr); in escape_unicode()
266 kind = PyUnicode_KIND(rval); in escape_unicode()
402 kind = PyUnicode_KIND(pystr); in scanstring_unicode()
695 kind = PyUnicode_KIND(pystr); in _parse_object_unicode()
827 kind = PyUnicode_KIND(pystr); in _parse_array_unicode()
928 kind = PyUnicode_KIND(pystr); in _match_number_unicode()
1040 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.c826 kind = PyUnicode_KIND(lineobj); in Reader_iternext()
1115 field_kind = PyUnicode_KIND(field); in join_append()
1150 term_kind = PyUnicode_KIND(self->dialect->lineterminator); in join_append_lineterminator()
Dbinascii.c239 assert(PyUnicode_KIND(arg) == PyUnicode_1BYTE_KIND); in ascii_buffer_converter()
D_operator.c1190 kind = PyUnicode_KIND(item); in attrgetter_new()
/external/python/cpython3/Python/
Dpystrhex.c26 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()
447 int kind = PyUnicode_KIND(s); in parse_number()
D_warnings.c452 kind = PyUnicode_KIND(filename); in normalize_module()
534 kind = PyUnicode_KIND(sourceline); in show_warning()
Dcodecs.c714 assert(PyUnicode_KIND(res) == PyUnicode_1BYTE_KIND); in PyCodec_ReplaceErrors()
739 assert(PyUnicode_KIND(res) == PyUnicode_2BYTE_KIND); in PyCodec_ReplaceErrors()
Dtraceback.c464 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine()
/external/python/markupsafe/src/markupsafe/
D_speedups.c174 switch (PyUnicode_KIND(in)) { in escape_unicode()
/external/python/cpython3/Modules/_io/
Dtextio.c343 kind = PyUnicode_KIND(modified); in _PyIncrementalNewlineDecoder_decode()
380 kind = PyUnicode_KIND(output); in _PyIncrementalNewlineDecoder_decode()
451 int kind = PyUnicode_KIND(output); in _PyIncrementalNewlineDecoder_decode()
843 assert(PyUnicode_KIND(self->readnl) == PyUnicode_1BYTE_KIND); in set_newline()
2092 assert(PyUnicode_KIND(readnl) == PyUnicode_1BYTE_KIND); in _PyIO_find_line_ending()
2193 kind = PyUnicode_KIND(line); in _textiowrapper_readline()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c236 kind = PyUnicode_KIND(replchar); in multibytecodec_encerror()
474 kind = PyUnicode_KIND(buf.inobj); in multibytecodec_encode()
/external/python/cpython3/Parser/pegen/
Dparse_string.c103 kind = PyUnicode_KIND(w); in decode_unicode_with_escapes()
/external/python/cpython3/Doc/c-api/
Dunicode.rst134 :c:func:`PyUnicode_KIND` to select the right macro. Make sure
145 Return values of the :c:func:`PyUnicode_KIND` macro.
153 .. c:function:: int PyUnicode_KIND(PyObject *o)
422 :c:func:`PyUnicode_KIND`). The *buffer* must point to an array of *size*
699 :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.c1669 kind = PyUnicode_KIND(uppercase_name); in pysqlite_connection_create_collation()

12