Home
last modified time | relevance | path

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

123

/external/python/cpython2/Objects/
Dstringobject.c651 rn = PyString_GET_SIZE(w); in PyString_DecodeEscape()
833 *len = PyString_GET_SIZE(obj); in PyString_AsStringAndSize()
834 else if (strlen(*s) != (size_t)PyString_GET_SIZE(obj)) { in PyString_AsStringAndSize()
1310 i += PyString_GET_SIZE(self); in string_subscript()
1322 slicelength = _PySlice_AdjustIndices(PyString_GET_SIZE(self), &start, in string_subscript()
1329 slicelength == PyString_GET_SIZE(self) && in string_subscript()
1461 Py_ssize_t len = PyString_GET_SIZE(self), n; in string_split()
1474 n = PyString_GET_SIZE(subobj); in string_split()
1501 sep_len = PyString_GET_SIZE(sep_obj); in string_partition()
1512 PyString_AS_STRING(self), PyString_GET_SIZE(self), in string_partition()
[all …]
Dcodeobject.c23 e = s + PyString_GET_SIZE(o); in all_name_chars()
250 PyString_GET_SIZE(item)); in validate_and_copy_tuple()
723 size = PyString_GET_SIZE(co->co_lnotab) / 2; in _PyCode_CheckLineNumber()
Dexceptions.c1172 bufsize = PyString_GET_SIZE(str) + 64; in SyntaxError_str()
1174 bufsize += PyString_GET_SIZE(self->filename); in SyntaxError_str()
1395 size = PyString_GET_SIZE(obj); in PyUnicodeDecodeError_GetStart()
1465 size = PyString_GET_SIZE(obj); in PyUnicodeDecodeError_GetEnd()
Dfileobject.c1610 Py_ssize_t len = PyString_GET_SIZE(result); in PyFile_GetLine()
1845 n = PyString_GET_SIZE(text); in file_write()
1861 n = PyString_GET_SIZE(encoded); in file_write()
1990 len = PyString_GET_SIZE(line); in file_writelines()
2377 if (l == NULL || PyString_GET_SIZE(l) == 0) { in file_iternext()
/external/python/cpython2/Modules/
Dbz2module.c225 size_t size = PyString_GET_SIZE(*buf); in Util_GrowBuffer()
972 len = PyString_GET_SIZE(line); in BZ2File_writelines()
1537 if (ret == NULL || PyString_GET_SIZE(ret) == 0) { in BZ2File_iternext()
1658 bzs->avail_out = PyString_GET_SIZE(ret); in BZ2Comp_compress()
1680 size_t buffer_left = PyString_GET_SIZE(ret) - output_size; in BZ2Comp_compress()
1687 buffer_left = PyString_GET_SIZE(ret) - output_size; in BZ2Comp_compress()
1734 bzs->avail_out = PyString_GET_SIZE(ret); in BZ2Comp_flush()
1752 size_t buffer_left = PyString_GET_SIZE(ret) - output_size; in BZ2Comp_flush()
1757 buffer_left = PyString_GET_SIZE(ret) - output_size; in BZ2Comp_flush()
1763 if (output_size != PyString_GET_SIZE(ret)) in BZ2Comp_flush()
[all …]
Dzlibmodule.c538 Py_ssize_t old_size = PyString_GET_SIZE(self->unused_data); in save_unconsumed_input()
559 if (self->zst.avail_in > 0 || PyString_GET_SIZE(self->unconsumed_tail)) { in save_unconsumed_input()
880 ibuflen = PyString_GET_SIZE(self->unconsumed_tail); in PyZlib_unflush()
911 PyString_GET_SIZE(self->unconsumed_tail), err) < 0) in PyZlib_unflush()
D_json.c277 input_chars = PyString_GET_SIZE(pystr); in ascii_escape_str()
445 Py_ssize_t len = PyString_GET_SIZE(pystr); in scanstring_str()
891 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1; in _parse_object_str()
1145 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1; in _parse_array_str()
1289 idx += PyString_GET_SIZE(cstr); in _parse_constant()
1307 Py_ssize_t end_idx = PyString_GET_SIZE(pystr) - 1; in _match_number_str()
1501 Py_ssize_t length = PyString_GET_SIZE(pystr); in scan_once_str()
Dsyslogmodule.c93 if (PyString_GET_SIZE(scriptobj) == 0) { in syslog_get_argv()
Dstropmodule.c218 slen = PyString_GET_SIZE(item); in strop_joinfields()
262 slen = PyString_GET_SIZE(item); in strop_joinfields()
969 inlen = PyString_GET_SIZE(input_obj); in strop_translate()
D_elementtree.c757 for (i = 0; i < PyString_GET_SIZE(tag); i++) { in checkpath()
1897 PyString_CheckExact(data) && PyString_GET_SIZE(data) == 1) {
1900 Py_ssize_t size = PyString_GET_SIZE(self->data);
2784 if (!PyString_CheckExact(buffer) || PyString_GET_SIZE(buffer) == 0) {
2789 if (PyString_GET_SIZE(buffer) > INT_MAX) {
2796 self, PyString_AS_STRING(buffer), (int)PyString_GET_SIZE(buffer), 0
Ddbmmodule.c309 val.dsize = PyString_GET_SIZE(defvalue); in dbm_setdefault()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c170 orgsize = PyString_GET_SIZE(buf->outobj); in expand_encodebuffer()
183 + PyString_GET_SIZE(buf->outobj); in expand_encodebuffer()
330 retstrsize = PyString_GET_SIZE(retstr); in multibytecodec_encerror()
492 buf.outbuf_end = buf.outbuf + PyString_GET_SIZE(buf.outobj); in multibytecodec_encode()
528 if (finalsize != PyString_GET_SIZE(buf.outobj)) in multibytecodec_encode()
1267 endoffile = (PyString_GET_SIZE(cres) == 0); in mbstreamreader_iread()
1273 if (PyString_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { in mbstreamreader_iread()
1277 rsize = PyString_GET_SIZE(cres) + self->pendingsize; in mbstreamreader_iread()
1285 PyString_GET_SIZE(cres)); in mbstreamreader_iread()
1291 rsize = PyString_GET_SIZE(cres); in mbstreamreader_iread()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/
Drjsmin.c440 #define PyString_GET_SIZE PyUnicode_GET_SIZE in rjsmin_jsmin() macro
446 slength = PyString_GET_SIZE(script); in rjsmin_jsmin()
468 PyString_GET_SIZE(result), "strict"); in rjsmin_jsmin()
/external/python/cpython2/Python/
Dgetargs.c857 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple()
867 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple()
888 STORE_SIZE(PyString_GET_SIZE(arg)); in convertsimple()
897 STORE_SIZE(PyString_GET_SIZE(uarg)); in convertsimple()
939 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple()
949 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple()
974 STORE_SIZE(PyString_GET_SIZE(arg)); in convertsimple()
983 STORE_SIZE(PyString_GET_SIZE(uarg)); in convertsimple()
1098 size = PyString_GET_SIZE(s); in convertsimple()
Dfuture.c89 if (modname && PyString_GET_SIZE(modname) == 10 && in future_parse()
Dpeephole.c320 tabsiz = PyString_GET_SIZE(lineno_obj); in PyCode_Optimize()
326 codelen = PyString_GET_SIZE(code); in PyCode_Optimize()
Dtraceback.c153 len = PyString_GET_SIZE(v); in _Py_DisplaySourceLine()
Dbltinmodule.c544 length = PyString_GET_SIZE(cmd); in builtin_compile()
553 length = PyString_GET_SIZE(tmp); in builtin_compile()
562 length = PyString_GET_SIZE(tmp); in builtin_compile()
1523 size = PyString_GET_SIZE(obj); in builtin_ord()
2895 reslen = PyString_GET_SIZE(item); in filterstring()
/external/python/cpython2/Include/
Dbytesobject.h8 #define PyBytes_GET_SIZE PyString_GET_SIZE
Dstringobject.h92 #define PyString_GET_SIZE(op) Py_SIZE(op) macro
/external/python/cpython2/Objects/stringlib/
Dstringdefs.h22 #define STRINGLIB_LEN PyString_GET_SIZE
/external/python/cpython2/PC/
D_subprocess.c368 ksize = PyString_GET_SIZE(key); in getenvironment()
369 vsize = PyString_GET_SIZE(value); in getenvironment()
384 if (totalsize > (size_t)PyString_GET_SIZE(out)) { in getenvironment()
/external/python/cpython2/Mac/Modules/
D_scproxy.c34 PyString_GET_SIZE(result), in cfstring_to_pystring()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drcssmin.c1085 #define PyString_GET_SIZE PyUnicode_GET_SIZE in rcssmin_cssmin() macro
1091 rlength = slength = PyString_GET_SIZE(style); in rcssmin_cssmin()
1121 PyString_GET_SIZE(result), "strict"); in rcssmin_cssmin()
/external/libxml2/python/
Dlibxml_wrap.h36 #define PyBytes_GET_SIZE PyString_GET_SIZE

123