Home
last modified time | relevance | path

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

12

/external/python/cpython2/Modules/
Dbinascii.c324 (void)_PyString_Resize(&rv, in binascii_b2a_uu()
454 (void)_PyString_Resize(&rv, bin_len); in binascii_a2b_base64()
522 (void)_PyString_Resize(&rv, in binascii_b2a_base64()
599 if (_PyString_Resize(&rv, in binascii_a2b_hqx()
667 (void)_PyString_Resize(&rv, in binascii_rlecode_hqx()
722 (void)_PyString_Resize(&rv, in binascii_b2a_hqx()
785 if (_PyString_Resize(&rv, 2*out_len) < 0) \ in binascii_rledecode_hqx()
837 (void)_PyString_Resize(&rv, in binascii_rledecode_hqx()
Dbz2module.c228 return _PyString_Resize(buf, new_size); in Util_GrowBuffer()
319 if (_PyString_Resize(&v, total_v_size) < 0) in Util_GetLine()
327 _PyString_Resize(&v, used_v_size); in Util_GetLine()
574 if (_PyString_Resize(&ret, buffersize) < 0) in BZ2File_read()
581 _PyString_Resize(&ret, bytesread); in BZ2File_read()
735 if (_PyString_Resize(&big_buffer, buffersize)) in BZ2File_readlines()
1693 if (_PyString_Resize(&ret, output_size) < 0) in BZ2Comp_compress()
1764 if (_PyString_Resize(&ret, output_size) < 0) in BZ2Comp_flush()
2002 if (_PyString_Resize(&ret, output_size) < 0) in BZ2Decomp_decompress()
2239 _PyString_Resize(&ret, output_size); /* Sets ret to NULL on failure. */ in bz2_compress()
[all …]
Dzlibmodule.c371 _PyString_Resize(&RetVal, zst.next_out - in PyZlib_decompress()
517 _PyString_Resize(&RetVal, self->zst.next_out - in PyZlib_objcompress()
664 _PyString_Resize(&RetVal, self->zst.next_out - in PyZlib_objdecompress()
747 _PyString_Resize(&RetVal, self->zst.next_out - in PyZlib_flush()
926 _PyString_Resize(&RetVal, self->zst.next_out - in PyZlib_unflush()
Dstropmodule.c227 if (_PyString_Resize(&res, sz * 2) < 0) in strop_joinfields()
241 _PyString_Resize(&res, reslen); in strop_joinfields()
272 if (_PyString_Resize(&res, sz * 2) < 0) { in strop_joinfields()
289 _PyString_Resize(&res, reslen); in strop_joinfields()
1010 _PyString_Resize(&result, output - output_start); in strop_translate()
Dlinuxaudiodev.c175 _PyString_Resize(&rv, count); in lad_read()
D_json.c250 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_unicode()
257 if (_PyString_Resize(&rval, chars) == -1) { in ascii_escape_unicode()
351 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_str()
358 if (_PyString_Resize(&rval, chars) == -1) { in ascii_escape_str()
Dcdmodule.c254 _PyString_Resize(&result, n * sizeof(CDFRAME)); in CD_readda()
Dossaudiodev.c385 _PyString_Resize(&rv, count); in oss_read()
/external/python/cpython2/Include/
Dbytesobject.h20 #define _PyBytes_Resize _PyString_Resize
Dstringobject.h73 PyAPI_FUNC(int) _PyString_Resize(PyObject **, Py_ssize_t);
/external/python/cpython2/Objects/stringlib/
Dstringdefs.h24 #define STRINGLIB_RESIZE _PyString_Resize
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/
Drjsmin.c442 #define _PyString_Resize PyUnicode_Resize in rjsmin_jsmin() macro
462 if (length != slength && _PyString_Resize(&result, length) == -1) in rjsmin_jsmin()
/external/python/cpython2/PC/
D_subprocess.c386 if (_PyString_Resize(&out, totalsize + 1024)) in getenvironment()
400 _PyString_Resize(&out, p - PyString_AS_STRING(out)); in getenvironment()
/external/python/cpython2/Objects/
Dfileobject.c1139 if (_PyString_Resize(&v, buffersize) < 0) in file_read()
1146 if (bytesread != buffersize && _PyString_Resize(&v, bytesread)) in file_read()
1406 if (_PyString_Resize(&v, (int)total_v_size) < 0) in getline_via_fgets()
1411 if (BUF(v) + total_v_size != p && _PyString_Resize(&v, p - BUF(v))) in getline_via_fgets()
1544 if (_PyString_Resize(&v, total_v_size) < 0) in get_line()
1551 if (used_v_size != total_v_size && _PyString_Resize(&v, used_v_size)) in get_line()
1619 if (_PyString_Resize(&result, len-1)) in PyFile_GetLine()
1759 if ( _PyString_Resize(&big_buffer, buffersize) < 0 ) in file_readlines()
Dstringobject.c394 if (_PyString_Resize(&string, s - PyString_AS_STRING(string))) in PyString_FromFormatV()
758 _PyString_Resize(&v, p - buf); /* v is cleared on error */ in PyString_DecodeEscape()
988 if (_PyString_Resize(&v, (p - PyString_AS_STRING(v)))) in PyString_Repr()
2315 if (inlen > 0 && _PyString_Resize(&result, output - output_start)) in string_translate()
3891 _PyString_Resize(PyObject **pv, Py_ssize_t newsize) in _PyString_Resize() function
4282 if (_PyString_Resize(&result, reslen)) in PyString_Format()
4616 if (_PyString_Resize(&result, reslen)) { in PyString_Format()
4684 if (_PyString_Resize(&result, reslen - rescnt)) in PyString_Format()
4715 if (_PyString_Resize(&result, rescnt)) in PyString_Format()
Dunicodeobject.c1923 if (_PyString_Resize(&v, out - start)) in PyUnicode_EncodeUTF7()
2238 if (_PyString_Resize(&v, nneeded)) in PyUnicode_EncodeUTF8()
3183 if (_PyString_Resize(&repr, p - PyString_AS_STRING(repr))) in unicodeescape_string()
3405 if (_PyString_Resize(&repr, p - q)) in PyUnicode_EncodeRawUnicodeEscape()
3727 if (_PyString_Resize(&res, requiredsize)) in unicode_encode_ucs1()
3759 if (_PyString_Resize(&res, requiredsize)) { in unicode_encode_ucs1()
3787 _PyString_Resize(&res, respos); in unicode_encode_ucs1()
4053 if (_PyString_Resize(repr, n + mbcssize) < 0) in encode_mbcs()
4572 if (_PyString_Resize(outobj, requiredsize)) { in charmapencode_resize()
4820 if (_PyString_Resize(&res, respos)) in PyUnicode_EncodeCharmap()
/external/python/cpython2/Mac/Modules/
D_scproxy.c40 _PyString_Resize(&result, in cfstring_to_pystring()
DMacOS.c98 _PyString_Resize(&v, n2); in rf_read()
/external/python/cpython2/PC/os2vacpp/
Dpython.def461 _PyString_Resize
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drcssmin.c1087 #define _PyString_Resize PyUnicode_Resize in rcssmin_cssmin() macro
1115 if (length != rlength && _PyString_Resize(&result, length) == -1) in rcssmin_cssmin()
/external/python/cpython2/Python/
Dmarshal.c84 if (_PyString_Resize(&p->str, newsize) != 0) { in w_more()
1241 if (_PyString_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base))) in PyMarshal_WriteObjectToString()
Dcompile.c3579 if (_PyString_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
3605 if (_PyString_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
3623 if (_PyString_Resize(&a->a_lnotab, len * 2) < 0) in assemble_lnotab()
3665 if (_PyString_Resize(&a->a_bytecode, len * 2) < 0) in assemble_emit()
3956 if (_PyString_Resize(&a.a_lnotab, a.a_lnotab_off) < 0) in assemble()
3958 if (_PyString_Resize(&a.a_bytecode, a.a_offset) < 0) in assemble()
/external/python/cpython2/Doc/data/
Drefcounts.dat1832 _PyString_Resize:int:::
1833 _PyString_Resize:PyObject**:string:+1:
1834 _PyString_Resize:int:newsize::
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c178 if (_PyString_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()
529 if (_PyString_Resize(&buf.outobj, finalsize) == -1) in multibytecodec_encode()
/external/python/cpython2/PC/os2emx/
Dpython27.def533 "_PyString_Resize"

12