/external/python/cffi/c/ |
D | wchar_helper_3.h | 62 if (PyUnicode_GET_LENGTH(unicode) != 1) { in _my_PyUnicode_AsSingleChar16() 64 PyUnicode_GET_LENGTH(unicode)); in _my_PyUnicode_AsSingleChar16() 82 if (PyUnicode_GET_LENGTH(unicode) != 1) { in _my_PyUnicode_AsSingleChar32() 84 PyUnicode_GET_LENGTH(unicode)); in _my_PyUnicode_AsSingleChar32() 93 Py_ssize_t length = PyUnicode_GET_LENGTH(unicode); in _my_PyUnicode_SizeAsChar16() 111 return PyUnicode_GET_LENGTH(unicode); in _my_PyUnicode_SizeAsChar32() 118 Py_ssize_t len = PyUnicode_GET_LENGTH(unicode); in _my_PyUnicode_AsChar16()
|
/external/python/cpython3/Objects/stringlib/ |
D | eq.h | 16 if (PyUnicode_GET_LENGTH(a) != PyUnicode_GET_LENGTH(b)) in unicode_eq() 18 if (PyUnicode_GET_LENGTH(a) == 0) in unicode_eq() 23 PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0; in unicode_eq()
|
D | ucs4lib.h | 20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
|
D | ucs1lib.h | 20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
|
D | ucs2lib.h | 20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
|
D | asciilib.h | 20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
|
D | unicode_format.h | 841 SubString_init(&expanded_format_spec, tmp, 0, PyUnicode_GET_LENGTH(tmp)); in output_markup() 923 writer.min_length = PyUnicode_GET_LENGTH(input->str) + 100; in build_string() 956 SubString_init(&input, self, 0, PyUnicode_GET_LENGTH(self)); in do_string_format() 1126 MarkupIterator_init(&it->it_markup, (PyObject*)self, 0, PyUnicode_GET_LENGTH(self)); in formatter_parser() 1271 if (!field_name_split((PyObject*)self, 0, PyUnicode_GET_LENGTH(self), in formatter_field_name_split()
|
/external/python/cpython3/Modules/ |
D | _codecsmodule.c | 669 PyUnicode_GET_LENGTH(str)); in _codecs_utf_7_encode_impl() 685 PyUnicode_GET_LENGTH(str)); in _codecs_utf_8_encode_impl() 709 PyUnicode_GET_LENGTH(str)); in _codecs_utf_16_encode_impl() 725 PyUnicode_GET_LENGTH(str)); in _codecs_utf_16_le_encode_impl() 741 PyUnicode_GET_LENGTH(str)); in _codecs_utf_16_be_encode_impl() 765 PyUnicode_GET_LENGTH(str)); in _codecs_utf_32_encode_impl() 781 PyUnicode_GET_LENGTH(str)); in _codecs_utf_32_le_encode_impl() 797 PyUnicode_GET_LENGTH(str)); in _codecs_utf_32_be_encode_impl() 813 PyUnicode_GET_LENGTH(str)); in _codecs_unicode_escape_encode_impl() 829 PyUnicode_GET_LENGTH(str)); in _codecs_raw_unicode_escape_encode_impl() [all …]
|
D | unicodedata.c | 507 isize = PyUnicode_GET_LENGTH(input); in nfd_nfkd() 600 for (i++; i < PyUnicode_GET_LENGTH(result); i++) { in nfd_nfkd() 660 len = PyUnicode_GET_LENGTH(result); in nfc_nfkc() 818 len = PyUnicode_GET_LENGTH(input); in is_normalized_quickcheck() 866 if (PyUnicode_GET_LENGTH(input) == 0) { in unicodedata_UCD_is_normalized_impl() 935 if (PyUnicode_GET_LENGTH(input) == 0) { in unicodedata_UCD_normalize_impl()
|
D | _json.c | 182 input_chars = PyUnicode_GET_LENGTH(pystr); in ascii_escape_unicode() 249 input_chars = PyUnicode_GET_LENGTH(pystr); in escape_unicode() 426 len = PyUnicode_GET_LENGTH(pystr); in scanstring_unicode() 727 end_idx = PyUnicode_GET_LENGTH(pystr) - 1; in _parse_object_unicode() 865 end_idx = PyUnicode_GET_LENGTH(pystr) - 1; in _parse_array_unicode() 935 idx += PyUnicode_GET_LENGTH(cstr); in _parse_constant() 966 end_idx = PyUnicode_GET_LENGTH(pystr) - 1; in _match_number_unicode() 1078 length = PyUnicode_GET_LENGTH(pystr); in scan_once_unicode()
|
D | _csv.c | 823 linelen = PyUnicode_GET_LENGTH(lineobj); in Reader_iternext() 1037 PyUnicode_GET_LENGTH(dialect->lineterminator), 1) >= 0) { in join_append_data() 1113 field_len = PyUnicode_GET_LENGTH(field); in join_append() 1138 terminator_len = PyUnicode_GET_LENGTH(self->dialect->lineterminator); in join_append_lineterminator()
|
D | syslogmodule.c | 93 scriptlen = PyUnicode_GET_LENGTH(scriptobj); in syslog_get_argv()
|
D | _winapi.c | 817 if (PyUnicode_FindChar(key, '\0', 0, PyUnicode_GET_LENGTH(key), 1) != -1 || in getenvironment() 818 PyUnicode_FindChar(value, '\0', 0, PyUnicode_GET_LENGTH(value), 1) != -1) in getenvironment() 825 if (PyUnicode_GET_LENGTH(key) == 0 || in getenvironment() 826 PyUnicode_FindChar(key, '=', 1, PyUnicode_GET_LENGTH(key), 1) != -1) in getenvironment()
|
D | _operator.c | 824 PyUnicode_GET_LENGTH(a), in _operator__compare_digest_impl() 825 PyUnicode_GET_LENGTH(b)); in _operator__compare_digest_impl() 1187 item_len = PyUnicode_GET_LENGTH(item); in attrgetter_new()
|
/external/python/cpython3/Modules/clinic/ |
D | unicodedata.c.h | 39 if (PyUnicode_GET_LENGTH(args[0]) != 1) { in unicodedata_UCD_decimal() 88 if (PyUnicode_GET_LENGTH(args[0]) != 1) { in unicodedata_UCD_digit() 138 if (PyUnicode_GET_LENGTH(args[0]) != 1) { in unicodedata_UCD_numeric() 179 if (PyUnicode_GET_LENGTH(arg) != 1) { in unicodedata_UCD_category() 217 if (PyUnicode_GET_LENGTH(arg) != 1) { in unicodedata_UCD_bidirectional() 256 if (PyUnicode_GET_LENGTH(arg) != 1) { in unicodedata_UCD_combining() 300 if (PyUnicode_GET_LENGTH(arg) != 1) { in unicodedata_UCD_mirrored() 340 if (PyUnicode_GET_LENGTH(arg) != 1) { in unicodedata_UCD_east_asian_width() 378 if (PyUnicode_GET_LENGTH(arg) != 1) { in unicodedata_UCD_decomposition() 515 if (PyUnicode_GET_LENGTH(args[0]) != 1) { in unicodedata_UCD_name()
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 603 length = PyUnicode_GET_LENGTH(unicode); in unicode_result_ready() 1120 copy_length = Py_MIN(length, PyUnicode_GET_LENGTH(unicode)); in resize_copy() 1482 assert(from_start + how_many <= PyUnicode_GET_LENGTH(from)); in _copy_characters() 1486 assert(to_start + how_many <= PyUnicode_GET_LENGTH(to)); in _copy_characters() 1635 if ((size_t)from_start > (size_t)PyUnicode_GET_LENGTH(from)) { in PyUnicode_CopyCharacters() 1639 if ((size_t)to_start > (size_t)PyUnicode_GET_LENGTH(to)) { in PyUnicode_CopyCharacters() 1647 how_many = Py_MIN(PyUnicode_GET_LENGTH(from)-from_start, how_many); in PyUnicode_CopyCharacters() 1648 if (to_start + how_many > PyUnicode_GET_LENGTH(to)) { in PyUnicode_CopyCharacters() 1652 how_many, to_start, PyUnicode_GET_LENGTH(to)); in PyUnicode_CopyCharacters() 1933 old_length = PyUnicode_GET_LENGTH(unicode); in unicode_resize() [all …]
|
D | exceptions.c | 1437 size = PyUnicode_GET_LENGTH(name); in my_basename() 1665 size = PyUnicode_GET_LENGTH(obj); in PyUnicodeEncodeError_GetStart() 1733 size = PyUnicode_GET_LENGTH(obj); in PyUnicodeEncodeError_GetEnd() 1930 if (uself->start < PyUnicode_GET_LENGTH(uself->object) && uself->end == uself->start+1) { in UnicodeEncodeError_str() 2145 if (uself->start < PyUnicode_GET_LENGTH(uself->object) && uself->end == uself->start+1) { in UnicodeTranslateError_str() 2899 Py_ssize_t text_len = PyUnicode_GET_LENGTH(self->text); in _set_legacy_print_statement_msg() 2927 text_len = PyUnicode_GET_LENGTH(new_data); in _set_legacy_print_statement_msg() 2954 Py_ssize_t text_len = PyUnicode_GET_LENGTH(self->text), match; in _check_for_legacy_statements() 3015 Py_ssize_t text_len = PyUnicode_GET_LENGTH(self->text); in _report_missing_parentheses()
|
D | namespaceobject.c | 102 if (PyUnicode_Check(key) && PyUnicode_GET_LENGTH(key) > 0) { in namespace_repr()
|
/external/python/cpython3/Modules/_io/ |
D | textio.c | 330 output_len = PyUnicode_GET_LENGTH(output); in _PyIncrementalNewlineDecoder_decode() 377 len = PyUnicode_GET_LENGTH(output); in _PyIncrementalNewlineDecoder_decode() 1512 assert(PyUnicode_GET_LENGTH(pending) == self->pending_bytes_count); in _textiowrapper_writeflush() 1514 PyUnicode_DATA(pending), PyUnicode_GET_LENGTH(pending)); in _textiowrapper_writeflush() 1536 len = PyUnicode_GET_LENGTH(obj); in _textiowrapper_writeflush() 1594 textlen = PyUnicode_GET_LENGTH(text); in _io_TextIOWrapper_write_impl() 1597 if (PyUnicode_FindChar(text, '\n', 0, PyUnicode_GET_LENGTH(text), 1) != -1) in _io_TextIOWrapper_write_impl() 1613 PyUnicode_FindChar(text, '\r', 0, PyUnicode_GET_LENGTH(text), 1) != -1)) in _io_TextIOWrapper_write_impl() 1644 bytes_len = PyUnicode_GET_LENGTH(b); in _io_TextIOWrapper_write_impl() 1718 avail = (PyUnicode_GET_LENGTH(self->decoded_chars) in textiowrapper_get_decoded_chars() [all …]
|
D | stringio.c | 160 len = PyUnicode_GET_LENGTH(intermediate); in realize() 207 len = PyUnicode_GET_LENGTH(decoded); in write_str() 425 if (PyUnicode_GET_LENGTH(line) == 0) { in stringio_iternext() 548 size = PyUnicode_GET_LENGTH(obj); in _io_StringIO_write() 889 bufsize = PyUnicode_GET_LENGTH(item); in stringio_setstate()
|
/external/python/cpython3/Modules/_sqlite/ |
D | row.c | 93 Py_ssize_t len = PyUnicode_GET_LENGTH(left); in equal_ignore_case() 94 if (PyUnicode_GET_LENGTH(right) != len) { in equal_ignore_case()
|
/external/python/cpython3/PC/clinic/ |
D | msvcrtmodule.c.h | 412 if (PyUnicode_GET_LENGTH(arg) != 1) { in msvcrt_putwch() 486 if (PyUnicode_GET_LENGTH(arg) != 1) { in msvcrt_ungetwch()
|
/external/python/cpython3/Python/ |
D | import.c | 1600 0, PyUnicode_GET_LENGTH(package), -1); in resolve_name() 1615 last_dot = PyUnicode_GET_LENGTH(package); in resolve_name() 1635 if (base == NULL || PyUnicode_GET_LENGTH(name) == 0) { in resolve_name() 1759 if (PyUnicode_GET_LENGTH(name) == 0) { in PyImport_ImportModuleLevelObject() 1810 Py_ssize_t len = PyUnicode_GET_LENGTH(name); in PyImport_ImportModuleLevelObject() 1837 Py_ssize_t abs_name_len = PyUnicode_GET_LENGTH(abs_name); in PyImport_ImportModuleLevelObject()
|
D | traceback.c | 467 for (i=0; i < PyUnicode_GET_LENGTH(lineobj); i++) { in _Py_DisplaySourceLine() 474 truncated = PyUnicode_Substring(lineobj, i, PyUnicode_GET_LENGTH(lineobj)); in _Py_DisplaySourceLine()
|
D | formatter_unicode.c | 480 spec->n_decimal = has_decimal ? PyUnicode_GET_LENGTH(locale->decimal_point) : 0; in calc_number_widths() 770 len = PyUnicode_GET_LENGTH(value); in format_string_internal() 962 n_digits = PyUnicode_GET_LENGTH(tmp); in format_long_internal()
|