Home
last modified time | relevance | path

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

12

/third_party/python/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()
/third_party/python/Objects/
Dunicodeobject.c675 int kind = PyUnicode_KIND(unicode); in unicode_result_ready()
740 kind = PyUnicode_KIND(unicode); in backslashreplace()
807 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()
1296 switch (PyUnicode_KIND(unicode)) in unicode_kind_name()
1312 switch (PyUnicode_KIND(unicode)) { in unicode_kind_name()
[all …]
Dlistobject.c2076 assert(PyUnicode_KIND(v) == PyUnicode_KIND(w)); in unsafe_latin_compare()
2077 assert(PyUnicode_KIND(v) == PyUnicode_1BYTE_KIND); in unsafe_latin_compare()
2315 PyUnicode_KIND(key) != PyUnicode_1BYTE_KIND) { in list_sort_impl()
Dbytesobject.c2377 unsigned int kind = PyUnicode_KIND(string); in _PyBytes_FromHex()
2389 assert(PyUnicode_KIND(string) == PyUnicode_1BYTE_KIND); in _PyBytes_FromHex()
/third_party/python/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 ? \
/third_party/python/Modules/
D_json.c170 kind = PyUnicode_KIND(pystr); in ascii_escape_unicode()
237 kind = PyUnicode_KIND(pystr); in escape_unicode()
265 kind = PyUnicode_KIND(rval); in escape_unicode()
405 kind = PyUnicode_KIND(pystr); in scanstring_unicode()
698 kind = PyUnicode_KIND(pystr); in _parse_object_unicode()
830 kind = PyUnicode_KIND(pystr); in _parse_array_unicode()
931 kind = PyUnicode_KIND(pystr); in _match_number_unicode()
1043 kind = PyUnicode_KIND(pystr); in scan_once_unicode()
Dunicodedata.c530 kind = PyUnicode_KIND(input); in nfd_nfkd()
600 kind = PyUnicode_KIND(result); in nfd_nfkd()
664 kind = PyUnicode_KIND(result); in nfc_nfkc()
822 kind = PyUnicode_KIND(input); in is_normalized_quickcheck()
D_csv.c906 kind = PyUnicode_KIND(lineobj); in Reader_iternext()
1190 field_kind = PyUnicode_KIND(field); in join_append()
1225 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.c1189 kind = PyUnicode_KIND(item); in attrgetter_new()
Dpyexpat.c1112 kind = PyUnicode_KIND(u); in PyUnknownEncodingHandler()
/third_party/python/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.c446 kind = PyUnicode_KIND(filename); in normalize_module()
528 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.c465 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine()
Dpystate.c1850 shared->kind = PyUnicode_KIND(obj); in _str_shared()
/third_party/markupsafe/
D_speedups.c174 switch (PyUnicode_KIND(in)) { in escape_unicode()
/third_party/python/Modules/_io/
Dtextio.c344 kind = PyUnicode_KIND(modified); in _PyIncrementalNewlineDecoder_decode()
381 kind = PyUnicode_KIND(output); in _PyIncrementalNewlineDecoder_decode()
452 int kind = PyUnicode_KIND(output); in _PyIncrementalNewlineDecoder_decode()
844 assert(PyUnicode_KIND(self->readnl) == PyUnicode_1BYTE_KIND); in set_newline()
2102 assert(PyUnicode_KIND(readnl) == PyUnicode_1BYTE_KIND); in _PyIO_find_line_ending()
2203 kind = PyUnicode_KIND(line); in _textiowrapper_readline()
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c269 kind = PyUnicode_KIND(replchar); in multibytecodec_encerror()
507 kind = PyUnicode_KIND(buf.inobj); in multibytecodec_encode()
/third_party/python/Parser/
Dstring_parser.c98 kind = PyUnicode_KIND(w); in decode_unicode_with_escapes()
/third_party/python/Doc/c-api/
Dunicode.rst133 :c:func:`PyUnicode_KIND` to select the right macro. Make sure
144 Return values of the :c:func:`PyUnicode_KIND` macro.
152 .. c:function:: unsigned int PyUnicode_KIND(PyObject *o)
421 :c:func:`PyUnicode_KIND`). The *buffer* must point to an array of *size*
698 :c:func:`PyUnicode_KIND`.
/third_party/python/Modules/_sqlite/
Dconnection.c1790 kind = PyUnicode_KIND(uppercase_name); in pysqlite_connection_create_collation_impl()
/third_party/python/Doc/data/
Drefcounts.dat2352 PyUnicode_KIND:int:::
2353 PyUnicode_KIND:PyObject*:o:0:

12