Home
last modified time | relevance | path

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

/third_party/python/Modules/
D_json.c174 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
203 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode()
241 Py_UCS4 c = PyUnicode_READ(kind, input, i); in escape_unicode()
271 Py_UCS4 c = PyUnicode_READ(kind, input, i); \ in escape_unicode()
418 d = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
461 c = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
491 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
510 PyUnicode_READ(kind, buf, next++) == '\\' && in scanstring_unicode()
511 PyUnicode_READ(kind, buf, next++) == 'u') { in scanstring_unicode()
516 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode()
[all …]
Dunicodedata.c534 stack[stackptr++] = PyUnicode_READ(kind, data, i++); in nfd_nfkd()
605 prev = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
607 cur = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
615 Py_UCS4 tmp = PyUnicode_READ(kind, data, o+1); in nfd_nfkd()
617 PyUnicode_READ(kind, data, o)); in nfd_nfkd()
622 prev = _getrecord_ex(PyUnicode_READ(kind, data, o))->combining; in nfd_nfkd()
626 prev = _getrecord_ex(PyUnicode_READ(kind, data, i))->combining; in nfd_nfkd()
693 code = PyUnicode_READ(kind, data, i); in nfc_nfkc()
696 VBase <= PyUnicode_READ(kind, data, i+1) && in nfc_nfkc()
697 PyUnicode_READ(kind, data, i+1) < (VBase+VCount)) { in nfc_nfkc()
[all …]
D_csv.c911 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.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()
D_operator.c1195 if (PyUnicode_READ(kind, data, char_idx) == '.') in attrgetter_new()
1216 while (PyUnicode_READ(kind, data, unibuff_till) != '.') { in attrgetter_new()
Dpyexpat.c1115 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in PyUnknownEncodingHandler()
D_pickle.c2599 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in raw_unicode_escape()
/third_party/python/Objects/
Dunicodeobject.c597 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_CheckConsistency()
617 CHECK(PyUnicode_READ(kind, data, ascii->length) == 0); in _PyUnicode_CheckConsistency()
748 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
771 ch = PyUnicode_READ(kind, data, i); in backslashreplace()
815 ch = PyUnicode_READ(kind, data, i); in xmlcharrefreplace()
846 size = sprintf(str, "&#%d;", PyUnicode_READ(kind, data, i)); in xmlcharrefreplace()
1602 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
1698 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
4378 return PyUnicode_READ(kind, data, index); in PyUnicode_ReadChar()
5001 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_EncodeUTF7()
[all …]
Dbytesobject.c2382 if (PyUnicode_READ(kind, data, i) >= 128) in _PyBytes_FromHex()
Dexceptions.c1577 if (PyUnicode_READ(kind, data, i) == SEP) { in my_basename()
/third_party/python/Modules/_io/
Dtextio.c406 while (PyUnicode_READ(kind, in_str, i) > '\n') in _PyIncrementalNewlineDecoder_decode()
408 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
429 while (PyUnicode_READ(kind, in_str, i) > '\r') in _PyIncrementalNewlineDecoder_decode()
431 c = PyUnicode_READ(kind, in_str, i++); in _PyIncrementalNewlineDecoder_decode()
435 if (PyUnicode_READ(kind, in_str, i) == '\n') { in _PyIncrementalNewlineDecoder_decode()
470 while ((c = PyUnicode_READ(kind, in_str, in++)) > '\r') in _PyIncrementalNewlineDecoder_decode()
478 if (PyUnicode_READ(kind, in_str, in) == '\n') { in _PyIncrementalNewlineDecoder_decode()
2043 while (PyUnicode_READ(kind, s, 0) > ch) in find_control_char()
2045 if (PyUnicode_READ(kind, s, 0) == ch) in find_control_char()
2079 while (PyUnicode_READ(kind, s, 0) > '\r') in _PyIO_find_line_ending()
[all …]
/third_party/python/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.c451 PyUnicode_READ(kind, data, len-3) == '.' && in normalize_module()
452 PyUnicode_READ(kind, data, len-2) == 'p' && in normalize_module()
453 PyUnicode_READ(kind, data, len-1) == 'y') in normalize_module()
532 ch = PyUnicode_READ(kind, data, i); in show_warning()
Dtraceback.c468 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _Py_DisplaySourceLine()
742 ch = PyUnicode_READ(kind, data, i); in _Py_DumpASCII()
Dgetargs.c881 *p = PyUnicode_READ(kind, data, 0); in convertsimple()
/third_party/python/Modules/cjkcodecs/
Dcjkcodecs.h132 #define INCHAR1 (PyUnicode_READ(kind, data, *inpos))
133 #define INCHAR2 (PyUnicode_READ(kind, data, *inpos + 1))
/third_party/python/Include/cpython/
Dunicodeobject.h383 #define PyUnicode_READ(kind, data, index) \ macro
/third_party/python/Doc/data/
Drefcounts.dat2777 PyUnicode_READ:Py_UCS4:::
2778 PyUnicode_READ:int:kind::
2779 PyUnicode_READ:void*:data::
2780 PyUnicode_READ:Py_ssize_t:index::
/third_party/python/Parser/
Dstring_parser.c102 Py_UCS4 chr = PyUnicode_READ(kind, data, i); in decode_unicode_with_escapes()
/third_party/python/Modules/_sqlite/
Dconnection.c1793 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in pysqlite_connection_create_collation_impl()
/third_party/python/Doc/c-api/
Dunicode.rst184 .. c:function:: Py_UCS4 PyUnicode_READ(int kind, void *data, Py_ssize_t index)
195 representation. This is less efficient than :c:func:`PyUnicode_READ` if you
246 :c:func:`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`.
/third_party/python/Modules/_decimal/
D_decimal.c1885 Py_UCS4 ch = PyUnicode_READ(kind, data, pos); in is_space()
1932 ch = PyUnicode_READ(kind, data, j); in numeric_as_ascii()
/third_party/python/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`