Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_json.c188 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
217 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
255 Py_UCS4 c = PyUnicode_READ(kind, input, i); in escape_unicode()
285 Py_UCS4 c = PyUnicode_READ(kind, input, i); \ in escape_unicode()
438 c = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
471 c = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
501 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
520 PyUnicode_READ(kind, buf, next++) == '\\' && in scanstring_unicode()
521 PyUnicode_READ(kind, buf, next++) == 'u') { in scanstring_unicode()
526 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.c825 c = PyUnicode_READ(kind, data, pos); in Reader_iternext()
1029 Py_UCS4 c = PyUnicode_READ(field_kind, field_data, i); in join_append_data()
1149 self->rec[self->rec_len + i] = PyUnicode_READ(term_kind, term_data, i); in join_append_lineterminator()
D_operator.c1194 if (PyUnicode_READ(kind, data, char_idx) == '.') in attrgetter_new()
1215 while (PyUnicode_READ(kind, data, unibuff_till) != '.') { in attrgetter_new()
D_elementtree.c1152 if (len >= 3 && PyUnicode_READ(kind, data, 0) == '{' && ( in checkpath()
1153 PyUnicode_READ(kind, data, 1) == '}' || ( in checkpath()
1154 PyUnicode_READ(kind, data, 1) == '*' && in checkpath()
1155 PyUnicode_READ(kind, data, 2) == '}'))) { in checkpath()
1160 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in checkpath()
Dpyexpat.c1089 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in PyUnknownEncodingHandler()
D_pickle.c2571 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in raw_unicode_escape()
/external/python/cpython3/Objects/
Dunicodeobject.c535 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_CheckConsistency()
555 CHECK(PyUnicode_READ(kind, data, ascii->length) == 0); in _PyUnicode_CheckConsistency()
615 Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_result_ready()
682 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
705 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
749 ch = PyUnicode_READ(kind, data, i); in xmlcharrefreplace()
780 str += sprintf(str, "&#%d;", PyUnicode_READ(kind, data, i)); in xmlcharrefreplace()
1504 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
1600 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
4078 return PyUnicode_READ(kind, data, index); in PyUnicode_ReadChar()
[all …]
Dexceptions.c1440 if (PyUnicode_READ(kind, data, i) == SEP) in my_basename()
2960 Py_UCS4 ch = PyUnicode_READ(kind, data, start); in _check_for_legacy_statements()
Dbytesobject.c2363 if (PyUnicode_READ(kind, data, i) >= 128) in _PyBytes_FromHex()
/external/python/cpython3/Modules/_io/
Dtextio.c403 while (PyUnicode_READ(kind, in_str, i) > '\n') in _PyIncrementalNewlineDecoder_decode()
405 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
426 while (PyUnicode_READ(kind, in_str, i) > '\r') in _PyIncrementalNewlineDecoder_decode()
428 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
432 if (PyUnicode_READ(kind, in_str, i) == '\n') { in _PyIncrementalNewlineDecoder_decode()
467 while ((c = PyUnicode_READ(kind, in_str, in++)) > '\r') in _PyIncrementalNewlineDecoder_decode()
475 if (PyUnicode_READ(kind, in_str, in) == '\n') { in _PyIncrementalNewlineDecoder_decode()
1991 while (PyUnicode_READ(kind, s, 0) > ch) in find_control_char()
1993 if (PyUnicode_READ(kind, s, 0) == ch) in find_control_char()
2027 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()
448 while (pos<end && Py_ISDIGIT(PyUnicode_READ(kind, data, pos))) in parse_number()
453 *has_decimal = pos<end && PyUnicode_READ(kind, data, remainder) == '.'; in parse_number()
625 Py_UCS4 c = PyUnicode_READ(kind, data, writer->pos + t); in fill_number()
655 Py_UCS4 c = PyUnicode_READ(kind, data, writer->pos + t); in fill_number()
D_warnings.c448 PyUnicode_READ(kind, data, len-3) == '.' && in normalize_module()
449 PyUnicode_READ(kind, data, len-2) == 'p' && in normalize_module()
450 PyUnicode_READ(kind, data, len-1) == 'y') in normalize_module()
529 ch = PyUnicode_READ(kind, data, i); in show_warning()
Dtraceback.c468 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _Py_DisplaySourceLine()
724 ch = PyUnicode_READ(kind, data, i); in _Py_DumpASCII()
Dgetargs.c939 *p = PyUnicode_READ(kind, data, 0); in convertsimple()
Dast.c4737 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.h390 #define PyUnicode_READ(kind, data, index) \ macro
/external/python/cpython3/Doc/data/
Drefcounts.dat2794 PyUnicode_READ:Py_UCS4:::
2795 PyUnicode_READ:int:kind::
2796 PyUnicode_READ:void*:data::
2797 PyUnicode_READ:Py_ssize_t:index::
/external/python/cpython3/Modules/_sqlite/
Dconnection.c1677 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in pysqlite_connection_create_collation()
/external/python/cpython3/Doc/c-api/
Dunicode.rst174 .. c:function:: Py_UCS4 PyUnicode_READ(int kind, void *data, Py_ssize_t index)
185 representation. This is less efficient than :c:func:`PyUnicode_READ` if you
241 :c:func:`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`.
/external/python/cpython3/Modules/_decimal/
D_decimal.c1741 Py_UCS4 ch = PyUnicode_READ(kind, data, pos); in is_space()
1788 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`