Home
last modified time | relevance | path

Searched refs:PyUnicode_READ (Results 1 – 25 of 30) sorted by relevance

12

/aosp_15_r20/external/python/cpython3/Modules/
D_json.c176 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
205 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
243 Py_UCS4 c = PyUnicode_READ(kind, input, i); in escape_unicode()
273 Py_UCS4 c = PyUnicode_READ(kind, input, i); \ in escape_unicode()
420 d = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
463 c = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
493 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
512 PyUnicode_READ(kind, buf, next++) == '\\' && in scanstring_unicode()
513 PyUnicode_READ(kind, buf, next++) == 'u') { in scanstring_unicode()
518 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
[all …]
Dunicodedata.c532 stack[stackptr++] = PyUnicode_READ(kind, data, i++); in nfd_nfkd()
603 prev = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
605 cur = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
613 Py_UCS4 tmp = PyUnicode_READ(kind, data, o+1); in nfd_nfkd()
615 PyUnicode_READ(kind, data, o)); in nfd_nfkd()
620 prev = _getrecord_ex(PyUnicode_READ(kind, data, o))->combining; in nfd_nfkd()
624 prev = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
691 code = PyUnicode_READ(kind, data, i); in nfc_nfkc()
694 VBase <= PyUnicode_READ(kind, data, i+1) && in nfc_nfkc()
695 PyUnicode_READ(kind, data, i+1) < (VBase+VCount)) { in nfc_nfkc()
[all …]
D_csv.c917 c = PyUnicode_READ(kind, data, pos); in Reader_iternext()
1105 Py_UCS4 c = PyUnicode_READ(field_kind, field_data, i); in join_append_data()
1228 self->rec[self->rec_len + i] = PyUnicode_READ(term_kind, term_data, i); in join_append_lineterminator()
D_elementtree.c1125 if (len >= 3 && PyUnicode_READ(kind, data, 0) == '{' && ( in checkpath()
1126 PyUnicode_READ(kind, data, 1) == '}' || ( in checkpath()
1127 PyUnicode_READ(kind, data, 1) == '*' && in checkpath()
1128 PyUnicode_READ(kind, data, 2) == '}'))) { in checkpath()
1133 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in checkpath()
D_operator.c1255 if (PyUnicode_READ(kind, data, char_idx) == '.') in attrgetter_new()
1276 while (PyUnicode_READ(kind, data, unibuff_till) != '.') { in attrgetter_new()
Dpyexpat.c1116 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in PyUnknownEncodingHandler()
/aosp_15_r20/external/python/cpython3/Objects/
Dunicodeobject.c590 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_CheckConsistency()
610 CHECK(PyUnicode_READ(kind, data, ascii->length) == 0); in _PyUnicode_CheckConsistency()
729 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
752 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
796 ch = PyUnicode_READ(kind, data, i); in xmlcharrefreplace()
827 size = sprintf(str, "&#%d;", PyUnicode_READ(kind, data, i)); in xmlcharrefreplace()
1564 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
1660 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
4308 return PyUnicode_READ(kind, data, index); in PyUnicode_ReadChar()
4931 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_EncodeUTF7()
[all …]
/aosp_15_r20/external/python/cpython3/Modules/_io/
Dtextio.c386 while (PyUnicode_READ(kind, in_str, i) > '\n') in _PyIncrementalNewlineDecoder_decode()
388 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
409 while (PyUnicode_READ(kind, in_str, i) > '\r') in _PyIncrementalNewlineDecoder_decode()
411 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
415 if (PyUnicode_READ(kind, in_str, i) == '\n') { in _PyIncrementalNewlineDecoder_decode()
450 while ((c = PyUnicode_READ(kind, in_str, in++)) > '\r') in _PyIncrementalNewlineDecoder_decode()
458 if (PyUnicode_READ(kind, in_str, in) == '\n') { in _PyIncrementalNewlineDecoder_decode()
2011 while (PyUnicode_READ(kind, s, 0) > ch) in find_control_char()
2013 if (PyUnicode_READ(kind, s, 0) == ch) in find_control_char()
2047 while (PyUnicode_READ(kind, s, 0) > '\r') in _PyIO_find_line_ending()
[all …]
/aosp_15_r20/external/python/cpython3/Python/
Dformatter_unicode.c70 digitval = Py_UNICODE_TODECIMAL(PyUnicode_READ(kind, data, pos)); in get_integer()
161 #define READ_spec(index) PyUnicode_READ(kind, data, index) in parse_internal_render_format_spec()
454 while (pos<end && Py_ISDIGIT(PyUnicode_READ(kind, data, pos))) in parse_number()
459 *has_decimal = pos<end && PyUnicode_READ(kind, data, remainder) == '.'; in parse_number()
631 Py_UCS4 c = PyUnicode_READ(kind, data, writer->pos + t); in fill_number()
661 Py_UCS4 c = PyUnicode_READ(kind, data, writer->pos + t); in fill_number()
D_warnings.c464 PyUnicode_READ(kind, data, len-3) == '.' && in normalize_module()
465 PyUnicode_READ(kind, data, len-2) == 'p' && in normalize_module()
466 PyUnicode_READ(kind, data, len-1) == 'y') in normalize_module()
545 ch = PyUnicode_READ(kind, data, i); in show_warning()
Dtraceback.c533 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in display_source_line_with_margin()
1152 ch = PyUnicode_READ(kind, data, i); in _Py_DumpASCII()
Dast_opt.c253 if (PyUnicode_READ(kind, data, pos) != '%') { in parse_literal()
256 else if (pos+1 < size && PyUnicode_READ(kind, data, pos+1) == '%') { in parse_literal()
Dgetargs.c882 *p = PyUnicode_READ(kind, data, 0); in convertsimple()
/aosp_15_r20/external/python/cpython3/Lib/test/
D_testcppext.cpp116 assert(PyUnicode_READ(kind, data, 0) == 'a'); in test_unicode()
121 assert(PyUnicode_READ(ukind, const_data, 2) == 'c'); in test_unicode()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/cpython/
Dunicodeobject.h396 static inline Py_UCS4 PyUnicode_READ(int kind, in PyUnicode_READ() function
409 #define PyUnicode_READ(kind, data, index) \ macro
410 PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/cpython/
Dunicodeobject.h396 static inline Py_UCS4 PyUnicode_READ(int kind, in PyUnicode_READ() function
409 #define PyUnicode_READ(kind, data, index) \ macro
410 PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
/aosp_15_r20/external/python/cpython3/Include/cpython/
Dunicodeobject.h396 static inline Py_UCS4 PyUnicode_READ(int kind, in PyUnicode_READ() function
409 #define PyUnicode_READ(kind, data, index) \ macro
410 PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/cpython/
Dunicodeobject.h396 static inline Py_UCS4 PyUnicode_READ(int kind, in PyUnicode_READ() function
409 #define PyUnicode_READ(kind, data, index) \ macro
410 PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/cpython/
Dunicodeobject.h396 static inline Py_UCS4 PyUnicode_READ(int kind, in PyUnicode_READ() function
409 #define PyUnicode_READ(kind, data, index) \ macro
410 PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
/aosp_15_r20/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h132 #define INCHAR1 (PyUnicode_READ(kind, data, *inpos))
133 #define INCHAR2 (PyUnicode_READ(kind, data, *inpos + 1))
/aosp_15_r20/external/python/cpython3/Doc/data/
Drefcounts.dat2714 PyUnicode_READ:Py_UCS4:::
2715 PyUnicode_READ:int:kind::
2716 PyUnicode_READ:void*:data::
2717 PyUnicode_READ:Py_ssize_t:index::
/aosp_15_r20/external/python/cpython3/Parser/
Dstring_parser.c113 Py_UCS4 chr = PyUnicode_READ(kind, data, i); in decode_unicode_with_escapes()
/aosp_15_r20/external/python/cpython3/Doc/c-api/
Dunicode.rst184 .. c:function:: Py_UCS4 PyUnicode_READ(int kind, void *data, \
196 representation. This is less efficient than :c:func:`PyUnicode_READ` if you
247 :c:func:`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`.
/aosp_15_r20/external/python/cpython3/Modules/_decimal/
D_decimal.c1923 Py_UCS4 ch = PyUnicode_READ(kind, data, pos); in is_space()
1970 ch = PyUnicode_READ(kind, data, j); in numeric_as_ascii()
/aosp_15_r20/external/python/cpython2/Objects/
Dbytesobject.c2378 if (PyUnicode_READ(kind, data, i) >= 128) in _PyBytes_FromHex()

12