Home
last modified time | relevance | path

Searched refs:PyUnicode_KIND (Results 1 – 25 of 34) 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/cpython3/Objects/
Dunicodeobject.c574 int kind = PyUnicode_KIND(unicode); in unicode_result_ready()
634 kind = PyUnicode_KIND(unicode); in backslashreplace()
701 kind = PyUnicode_KIND(unicode); in xmlcharrefreplace()
912 int kind = PyUnicode_KIND(unicode); in unicode_fill_invalid()
937 char_size = PyUnicode_KIND(unicode); in resize_compact()
982 PyUnicode_WRITE(PyUnicode_KIND(unicode), PyUnicode_DATA(unicode), in resize_compact()
1005 char_size = PyUnicode_KIND(unicode); in resize_inplace()
1037 PyUnicode_WRITE(PyUnicode_KIND(unicode), data, length, 0); in resize_inplace()
1176 switch (PyUnicode_KIND(unicode)) in unicode_kind_name()
1192 switch (PyUnicode_KIND(unicode)) { in unicode_kind_name()
[all …]
Dlistobject.c2037 assert(PyUnicode_KIND(v) == PyUnicode_KIND(w)); in unsafe_latin_compare()
2038 assert(PyUnicode_KIND(v) == PyUnicode_1BYTE_KIND); in unsafe_latin_compare()
2262 PyUnicode_KIND(key) != PyUnicode_1BYTE_KIND) in list_sort_impl()
Dexceptions.c1418 kind = PyUnicode_KIND(name); in my_basename()
2907 int kind = PyUnicode_KIND(self->text); in _check_for_legacy_statements()
Dbytesobject.c2366 unsigned int kind = PyUnicode_KIND(string); in _PyBytes_FromHex()
2378 assert(PyUnicode_KIND(string) == PyUnicode_1BYTE_KIND); in _PyBytes_FromHex()
/external/python/cpython3/Modules/
D_json.c181 kind = PyUnicode_KIND(pystr); in ascii_escape_unicode()
248 kind = PyUnicode_KIND(pystr); in escape_unicode()
276 kind = PyUnicode_KIND(rval); in escape_unicode()
425 kind = PyUnicode_KIND(pystr); in scanstring_unicode()
723 kind = PyUnicode_KIND(pystr); in _parse_object_unicode()
858 kind = PyUnicode_KIND(pystr); in _parse_array_unicode()
959 kind = PyUnicode_KIND(pystr); in _match_number_unicode()
1071 kind = PyUnicode_KIND(pystr); in scan_once_unicode()
Dunicodedata.c517 kind = PyUnicode_KIND(input); in nfd_nfkd()
587 kind = PyUnicode_KIND(result); in nfd_nfkd()
651 kind = PyUnicode_KIND(result); in nfc_nfkc()
792 kind = PyUnicode_KIND(input); in is_normalized()
D_csv.c819 kind = PyUnicode_KIND(lineobj); in Reader_iternext()
1110 field_kind = PyUnicode_KIND(field); in join_append()
1145 term_kind = PyUnicode_KIND(self->dialect->lineterminator); in join_append_lineterminator()
Dbinascii.c222 assert(PyUnicode_KIND(arg) == PyUnicode_1BYTE_KIND); in ascii_buffer_converter()
D_operator.c1159 kind = PyUnicode_KIND(item); in attrgetter_new()
Dzipimport.c1479 stripped = PyUnicode_FromKindAndData(PyUnicode_KIND(path), in get_mtime_of_source()
Dpyexpat.c1145 kind = PyUnicode_KIND(u); in PyUnknownEncodingHandler()
D_sre.c376 *p_charsize = PyUnicode_KIND(string); in getstring()
/external/python/cpython3/Include/
Dunicodeobject.h456 #define PyUnicode_KIND(op) \ macro
523 (PyUnicode_KIND((unicode)) == PyUnicode_1BYTE_KIND ? \
525 (PyUnicode_KIND((unicode)) == PyUnicode_2BYTE_KIND ? \
561 (PyUnicode_KIND(op) == PyUnicode_1BYTE_KIND ? \
563 (PyUnicode_KIND(op) == PyUnicode_2BYTE_KIND ? \
/external/python/cpython3/Python/
D_warnings.c305 kind = PyUnicode_KIND(filename); in normalize_module()
387 kind = PyUnicode_KIND(sourceline); in show_warning()
744 kind = PyUnicode_KIND(*filename); in setup_context()
Dformatter_unicode.c63 int kind = PyUnicode_KIND(str); in get_integer()
171 int kind = PyUnicode_KIND(format_spec); in parse_internal_render_format_spec()
444 int kind = PyUnicode_KIND(s); in parse_number()
Dcodecs.c718 kind = PyUnicode_KIND(res); in PyCodec_ReplaceErrors()
744 kind = PyUnicode_KIND(res); in PyCodec_ReplaceErrors()
Dtraceback.c454 kind = PyUnicode_KIND(lineobj); in _Py_DisplaySourceLine()
/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()
832 assert(PyUnicode_KIND(self->readnl) == PyUnicode_1BYTE_KIND); in set_newline()
1976 assert(PyUnicode_KIND(readnl) == PyUnicode_1BYTE_KIND); in _PyIO_find_line_ending()
2077 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.c1624 kind = PyUnicode_KIND(uppercase_name); in pysqlite_connection_create_collation()
/external/python/cpython3/Doc/data/
Drefcounts.dat2331 PyUnicode_KIND:int:::
2332 PyUnicode_KIND:PyObject*:o:0:

12