Home
last modified time | relevance | path

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

12

/external/python/cpython3/Modules/
D_json.c175 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
204 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
242 Py_UCS4 c = PyUnicode_READ(kind, input, i); in escape_unicode()
272 Py_UCS4 c = PyUnicode_READ(kind, input, i); \ in escape_unicode()
415 d = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
458 c = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
488 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
507 PyUnicode_READ(kind, buf, next++) == '\\' && in scanstring_unicode()
508 PyUnicode_READ(kind, buf, next++) == 'u') { in scanstring_unicode()
513 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
[all …]
Dunicodedata.c528 stack[stackptr++] = PyUnicode_READ(kind, data, i++); in nfd_nfkd()
599 prev = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
601 cur = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
609 Py_UCS4 tmp = PyUnicode_READ(kind, data, o+1); in nfd_nfkd()
611 PyUnicode_READ(kind, data, o)); in nfd_nfkd()
616 prev = _getrecord_ex(PyUnicode_READ(kind, data, o))->combining; in nfd_nfkd()
620 prev = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
687 code = PyUnicode_READ(kind, data, i); in nfc_nfkc()
690 VBase <= PyUnicode_READ(kind, data, i+1) && in nfc_nfkc()
691 PyUnicode_READ(kind, data, i+1) < (VBase+VCount)) { in nfc_nfkc()
[all …]
D_csv.c831 c = PyUnicode_READ(kind, data, pos); in Reader_iternext()
1033 Py_UCS4 c = PyUnicode_READ(field_kind, field_data, i); in join_append_data()
1153 self->rec[self->rec_len + i] = PyUnicode_READ(term_kind, term_data, i); in join_append_lineterminator()
D_operator.c1196 if (PyUnicode_READ(kind, data, char_idx) == '.') in attrgetter_new()
1217 while (PyUnicode_READ(kind, data, unibuff_till) != '.') { in attrgetter_new()
D_elementtree.c1137 if (len >= 3 && PyUnicode_READ(kind, data, 0) == '{' && ( in checkpath()
1138 PyUnicode_READ(kind, data, 1) == '}' || ( in checkpath()
1139 PyUnicode_READ(kind, data, 1) == '*' && in checkpath()
1140 PyUnicode_READ(kind, data, 2) == '}'))) { in checkpath()
1145 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in checkpath()
Dpyexpat.c1090 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in PyUnknownEncodingHandler()
/external/python/cpython3/Objects/
Dunicodeobject.c603 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_CheckConsistency()
623 CHECK(PyUnicode_READ(kind, data, ascii->length) == 0); in _PyUnicode_CheckConsistency()
684 Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_result_ready()
752 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
775 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
819 ch = PyUnicode_READ(kind, data, i); in xmlcharrefreplace()
850 size = sprintf(str, "&#%d;", PyUnicode_READ(kind, data, i)); in xmlcharrefreplace()
1586 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
1682 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
4180 return PyUnicode_READ(kind, data, index); in PyUnicode_ReadChar()
[all …]
Dexceptions.c1452 if (PyUnicode_READ(kind, data, i) == SEP) { in my_basename()
2984 Py_UCS4 ch = PyUnicode_READ(kind, data, start); in _check_for_legacy_statements()
Dbytesobject.c2367 if (PyUnicode_READ(kind, data, i) >= 128) in _PyBytes_FromHex()
/external/python/cpython3/Modules/_io/
Dtextio.c405 while (PyUnicode_READ(kind, in_str, i) > '\n') in _PyIncrementalNewlineDecoder_decode()
407 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
428 while (PyUnicode_READ(kind, in_str, i) > '\r') in _PyIncrementalNewlineDecoder_decode()
430 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
434 if (PyUnicode_READ(kind, in_str, i) == '\n') { in _PyIncrementalNewlineDecoder_decode()
469 while ((c = PyUnicode_READ(kind, in_str, in++)) > '\r') in _PyIncrementalNewlineDecoder_decode()
477 if (PyUnicode_READ(kind, in_str, in) == '\n') { in _PyIncrementalNewlineDecoder_decode()
2033 while (PyUnicode_READ(kind, s, 0) > ch) in find_control_char()
2035 if (PyUnicode_READ(kind, s, 0) == ch) in find_control_char()
2069 while (PyUnicode_READ(kind, s, 0) > '\r') in _PyIO_find_line_ending()
[all …]
/external/python/cpython3/Python/
Dformatter_unicode.c69 digitval = Py_UNICODE_TODECIMAL(PyUnicode_READ(kind, data, pos)); in get_integer()
176 #define READ_spec(index) PyUnicode_READ(kind, data, index) in parse_internal_render_format_spec()
450 while (pos<end && Py_ISDIGIT(PyUnicode_READ(kind, data, pos))) in parse_number()
455 *has_decimal = pos<end && PyUnicode_READ(kind, data, remainder) == '.'; in parse_number()
627 Py_UCS4 c = PyUnicode_READ(kind, data, writer->pos + t); in fill_number()
657 Py_UCS4 c = PyUnicode_READ(kind, data, writer->pos + t); in fill_number()
D_warnings.c457 PyUnicode_READ(kind, data, len-3) == '.' && in normalize_module()
458 PyUnicode_READ(kind, data, len-2) == 'p' && in normalize_module()
459 PyUnicode_READ(kind, data, len-1) == 'y') in normalize_module()
538 ch = PyUnicode_READ(kind, data, i); in show_warning()
Dtraceback.c467 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _Py_DisplaySourceLine()
723 ch = PyUnicode_READ(kind, data, i); in _Py_DumpASCII()
Dgetargs.c939 *p = PyUnicode_READ(kind, data, 0); in convertsimple()
Dast.c4628 Py_UCS4 chr = PyUnicode_READ(kind, data, i); in decode_unicode_with_escapes()
/external/python/cffi/c/
Dwchar_helper_3.h124 cffi_char32_t ordinal = PyUnicode_READ(kind, data, i); in _my_PyUnicode_AsChar16()
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h132 #define INCHAR1 (PyUnicode_READ(kind, data, *inpos))
133 #define INCHAR2 (PyUnicode_READ(kind, data, *inpos + 1))
/external/python/cpython3/Include/cpython/
Dunicodeobject.h383 #define PyUnicode_READ(kind, data, index) \ macro
/external/python/cpython3/Parser/pegen/
Dparse_string.c107 Py_UCS4 chr = PyUnicode_READ(kind, data, i); in decode_unicode_with_escapes()
/external/python/cpython3/Doc/data/
Drefcounts.dat2800 PyUnicode_READ:Py_UCS4:::
2801 PyUnicode_READ:int:kind::
2802 PyUnicode_READ:void*:data::
2803 PyUnicode_READ:Py_ssize_t:index::
/external/python/cpython3/Modules/_sqlite/
Dconnection.c1672 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in pysqlite_connection_create_collation()
/external/python/cpython3/Doc/c-api/
Dunicode.rst185 .. c:function:: Py_UCS4 PyUnicode_READ(int kind, void *data, Py_ssize_t index)
196 representation. This is less efficient than :c:func:`PyUnicode_READ` if you
247 :c:func:`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`.
/external/python/cpython3/Modules/_decimal/
D_decimal.c1886 Py_UCS4 ch = PyUnicode_READ(kind, data, pos); in is_space()
1933 ch = PyUnicode_READ(kind, data, j); in numeric_as_ascii()
/external/python/cpython2/Objects/
Dbytesobject.c2378 if (PyUnicode_READ(kind, data, i) >= 128) in _PyBytes_FromHex()
/external/python/cpython3/Doc/whatsnew/
D3.3.rst2200 * :c:macro:`PyUnicode_READ`, :c:macro:`PyUnicode_READ_CHAR`, :c:macro:`PyUnicode_WRITE`
2277 :c:macro:`PyUnicode_READ` and :c:macro:`PyUnicode_WRITE`

12