Home
last modified time | relevance | path

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

123

/external/python/cpython3/Modules/
D_codecsmodule.c269 return codec_tuple(obj, PyUnicode_GET_LENGTH(obj)); in _codecs_unicode_internal_decode_impl()
720 PyUnicode_GET_LENGTH(obj)); in _codecs_unicode_internal_encode_impl()
747 PyUnicode_GET_LENGTH(str)); in _codecs_utf_7_encode_impl()
763 PyUnicode_GET_LENGTH(str)); in _codecs_utf_8_encode_impl()
787 PyUnicode_GET_LENGTH(str)); in _codecs_utf_16_encode_impl()
803 PyUnicode_GET_LENGTH(str)); in _codecs_utf_16_le_encode_impl()
819 PyUnicode_GET_LENGTH(str)); in _codecs_utf_16_be_encode_impl()
843 PyUnicode_GET_LENGTH(str)); in _codecs_utf_32_encode_impl()
859 PyUnicode_GET_LENGTH(str)); in _codecs_utf_32_le_encode_impl()
875 PyUnicode_GET_LENGTH(str)); in _codecs_utf_32_be_encode_impl()
[all …]
Dzipimport.c82 len = PyUnicode_GET_LENGTH(path); in zipimporter_init()
149 PyUnicode_GET_LENGTH(path)); in zipimporter_init()
196 else if (self->prefix != NULL && PyUnicode_GET_LENGTH(self->prefix) != 0) in zipimporter_repr()
211 len = PyUnicode_GET_LENGTH(fullname); in get_subname()
232 len = PyUnicode_GET_LENGTH(prefix) + PyUnicode_GET_LENGTH(name) + 1; in make_filename()
243 p += PyUnicode_GET_LENGTH(prefix); in make_filename()
244 len -= PyUnicode_GET_LENGTH(prefix); in make_filename()
592 path_len = PyUnicode_GET_LENGTH(path); in zipimporter_get_data()
594 len = PyUnicode_GET_LENGTH(self->archive); in zipimporter_get_data()
1411 PyUnicode_GET_LENGTH(path) - 1); in get_mtime_of_source()
D_winapi.c742 if (totalsize > PY_SSIZE_T_MAX - PyUnicode_GET_LENGTH(key) - 1) { in getenvironment()
746 totalsize += PyUnicode_GET_LENGTH(key) + 1; /* +1 for '=' */ in getenvironment()
747 if (totalsize > PY_SSIZE_T_MAX - PyUnicode_GET_LENGTH(value) - 1) { in getenvironment()
751 totalsize += PyUnicode_GET_LENGTH(value) + 1; /* +1 for '\0' */ in getenvironment()
767 p += PyUnicode_GET_LENGTH(key); in getenvironment()
771 p += PyUnicode_GET_LENGTH(value); in getenvironment()
Dunicodedata.c500 isize = PyUnicode_GET_LENGTH(input); in nfd_nfkd()
593 for (i++; i < PyUnicode_GET_LENGTH(result); i++) { in nfd_nfkd()
653 len = PyUnicode_GET_LENGTH(result); in nfc_nfkc()
790 len = PyUnicode_GET_LENGTH(input); in is_normalized()
827 if (PyUnicode_GET_LENGTH(input) == 0) { in unicodedata_UCD_normalize_impl()
D_json.c176 input_chars = PyUnicode_GET_LENGTH(pystr); in ascii_escape_unicode()
243 input_chars = PyUnicode_GET_LENGTH(pystr); in escape_unicode()
420 len = PyUnicode_GET_LENGTH(pystr); in scanstring_unicode()
725 end_idx = PyUnicode_GET_LENGTH(pystr) - 1; in _parse_object_unicode()
860 end_idx = PyUnicode_GET_LENGTH(pystr) - 1; in _parse_array_unicode()
930 idx += PyUnicode_GET_LENGTH(cstr); in _parse_constant()
961 end_idx = PyUnicode_GET_LENGTH(pystr) - 1; in _match_number_unicode()
1074 length = PyUnicode_GET_LENGTH(pystr); in scan_once_unicode()
D_csv.c837 linelen = PyUnicode_GET_LENGTH(lineobj); in Reader_iternext()
1051 PyUnicode_GET_LENGTH(dialect->lineterminator), 1) >= 0) { in join_append_data()
1140 field_len = PyUnicode_GET_LENGTH(field); in join_append()
1165 terminator_len = PyUnicode_GET_LENGTH(self->dialect->lineterminator); in join_append_lineterminator()
Dsyslogmodule.c93 scriptlen = PyUnicode_GET_LENGTH(scriptobj); in syslog_get_argv()
D_operator.c274 PyUnicode_GET_LENGTH(a), in compare_digest()
275 PyUnicode_GET_LENGTH(b)); in compare_digest()
624 item_len = PyUnicode_GET_LENGTH(item); in attrgetter_new()
/external/python/cpython3/Objects/stringlib/
Deq.h17 if (PyUnicode_GET_LENGTH(a) != PyUnicode_GET_LENGTH(b)) in unicode_eq()
19 if (PyUnicode_GET_LENGTH(a) == 0) in unicode_eq()
24 PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0; in unicode_eq()
Ducs4lib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
Ducs2lib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
Ducs1lib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
Dasciilib.h20 #define STRINGLIB_LEN PyUnicode_GET_LENGTH
Dunicode_format.h834 SubString_init(&expanded_format_spec, tmp, 0, PyUnicode_GET_LENGTH(tmp)); in output_markup()
916 writer.min_length = PyUnicode_GET_LENGTH(input->str) + 100; in build_string()
949 SubString_init(&input, self, 0, PyUnicode_GET_LENGTH(self)); in do_string_format()
1119 MarkupIterator_init(&it->it_markup, (PyObject*)self, 0, PyUnicode_GET_LENGTH(self)); in formatter_parser()
1264 if (!field_name_split((PyObject*)self, 0, PyUnicode_GET_LENGTH(self), in formatter_field_name_split()
/external/python/cpython3/Objects/
Dunicodeobject.c513 length = PyUnicode_GET_LENGTH(unicode); in unicode_result_ready()
1039 copy_length = Py_MIN(length, PyUnicode_GET_LENGTH(unicode)); in resize_copy()
1398 assert(from_start + how_many <= PyUnicode_GET_LENGTH(from)); in _copy_characters()
1402 assert(to_start + how_many <= PyUnicode_GET_LENGTH(to)); in _copy_characters()
1552 if ((size_t)from_start > (size_t)PyUnicode_GET_LENGTH(from)) { in PyUnicode_CopyCharacters()
1556 if ((size_t)to_start > (size_t)PyUnicode_GET_LENGTH(to)) { in PyUnicode_CopyCharacters()
1564 how_many = Py_MIN(PyUnicode_GET_LENGTH(from)-from_start, how_many); in PyUnicode_CopyCharacters()
1565 if (to_start + how_many > PyUnicode_GET_LENGTH(to)) { in PyUnicode_CopyCharacters()
1569 how_many, to_start, PyUnicode_GET_LENGTH(to)); in PyUnicode_CopyCharacters()
1849 old_length = PyUnicode_GET_LENGTH(unicode); in unicode_resize()
[all …]
Dexceptions.c1367 size = PyUnicode_GET_LENGTH(name); in my_basename()
1595 size = PyUnicode_GET_LENGTH(obj); in PyUnicodeEncodeError_GetStart()
1663 size = PyUnicode_GET_LENGTH(obj); in PyUnicodeEncodeError_GetEnd()
1868 if (uself->start < PyUnicode_GET_LENGTH(uself->object) && uself->end == uself->start+1) { in UnicodeEncodeError_str()
2088 if (uself->start < PyUnicode_GET_LENGTH(uself->object) && uself->end == uself->start+1) { in UnicodeTranslateError_str()
2846 Py_ssize_t text_len = PyUnicode_GET_LENGTH(self->text); in _check_for_legacy_statements()
2898 Py_ssize_t text_len = PyUnicode_GET_LENGTH(self->text); in _report_missing_parentheses()
Dnamespaceobject.c104 if (PyUnicode_Check(key) && PyUnicode_GET_LENGTH(key) > 0) { in namespace_repr()
Dfileobject.c108 Py_ssize_t len = PyUnicode_GET_LENGTH(result); in PyFile_GetLine()
/external/python/cpython3/Modules/_io/
Dtextio.c337 output_len = PyUnicode_GET_LENGTH(output); in _PyIncrementalNewlineDecoder_decode()
384 len = PyUnicode_GET_LENGTH(output); in _PyIncrementalNewlineDecoder_decode()
1291 textlen = PyUnicode_GET_LENGTH(text); in _io_TextIOWrapper_write_impl()
1294 if (PyUnicode_FindChar(text, '\n', 0, PyUnicode_GET_LENGTH(text), 1) != -1) in _io_TextIOWrapper_write_impl()
1310 PyUnicode_FindChar(text, '\r', 0, PyUnicode_GET_LENGTH(text), 1) != -1)) in _io_TextIOWrapper_write_impl()
1383 avail = (PyUnicode_GET_LENGTH(self->decoded_chars) in textiowrapper_get_decoded_chars()
1499 nchars = PyUnicode_GET_LENGTH(decoded_chars); in textiowrapper_read_chunk()
1591 remaining -= PyUnicode_GET_LENGTH(result); in _io_TextIOWrapper_read_impl()
1611 if (PyUnicode_GET_LENGTH(result) > 0 && in _io_TextIOWrapper_read_impl()
1618 remaining -= PyUnicode_GET_LENGTH(result); in _io_TextIOWrapper_read_impl()
[all …]
Dstringio.c159 len = PyUnicode_GET_LENGTH(intermediate); in realize()
206 len = PyUnicode_GET_LENGTH(decoded); in write_str()
451 if (PyUnicode_GET_LENGTH(line) == 0) { in stringio_iternext()
591 size = PyUnicode_GET_LENGTH(obj); in _io_StringIO_write()
930 bufsize = PyUnicode_GET_LENGTH(item); in stringio_setstate()
/external/python/cpython3/Python/
Dimport.c1431 0, PyUnicode_GET_LENGTH(package), -1); in resolve_name()
1446 last_dot = PyUnicode_GET_LENGTH(package); in resolve_name()
1474 if (base == NULL || PyUnicode_GET_LENGTH(name) == 0) { in resolve_name()
1527 if (PyUnicode_GET_LENGTH(name) == 0) { in PyImport_ImportModuleLevelObject()
1607 Py_ssize_t len = PyUnicode_GET_LENGTH(name); in PyImport_ImportModuleLevelObject()
1634 Py_ssize_t abs_name_len = PyUnicode_GET_LENGTH(abs_name); in PyImport_ImportModuleLevelObject()
Dtraceback.c357 for (i=0; i < PyUnicode_GET_LENGTH(lineobj); i++) { in _Py_DisplaySourceLine()
364 truncated = PyUnicode_Substring(lineobj, i, PyUnicode_GET_LENGTH(lineobj)); in _Py_DisplaySourceLine()
Dformatter_unicode.c476 spec->n_decimal = has_decimal ? PyUnicode_GET_LENGTH(locale->decimal_point) : 0; in calc_number_widths()
772 len = PyUnicode_GET_LENGTH(value); in format_string_internal()
964 n_digits = PyUnicode_GET_LENGTH(tmp); in format_long_internal()
Dmarshal.c433 int is_short = PyUnicode_GET_LENGTH(v) < 256; in w_complex_object()
440 PyUnicode_GET_LENGTH(v), p); in w_complex_object()
448 PyUnicode_GET_LENGTH(v), p); in w_complex_object()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c470 datalen = PyUnicode_GET_LENGTH(text); in multibytecodec_encode()
585 datalen = PyUnicode_GET_LENGTH(input); in _multibytecodec_MultibyteCodec_encode_impl()
789 datalen = PyUnicode_GET_LENGTH(inbuf); in encoder_encode_stateful()

123