Home
last modified time | relevance | path

Searched refs:_PyString_Resize (Results 1 – 25 of 38) 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()
1679 if (_PyString_Resize(&ret, output_size) < 0) in BZ2Comp_compress()
1750 if (_PyString_Resize(&ret, output_size) < 0) in BZ2Comp_flush()
1988 if (_PyString_Resize(&ret, output_size) < 0) in BZ2Decomp_decompress()
2225 _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.c254 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_unicode()
261 if (_PyString_Resize(&rval, chars) == -1) { in ascii_escape_unicode()
355 if (_PyString_Resize(&rval, output_size) == -1) { in ascii_escape_str()
362 if (_PyString_Resize(&rval, chars) == -1) { in ascii_escape_str()
Dcdmodule.c254 _PyString_Resize(&result, n * sizeof(CDFRAME)); in CD_readda()
D_codecsmodule.c197 if (_PyString_Resize(&str, len-2) < 0) in escape_encode()
Dossaudiodev.c385 _PyString_Resize(&rv, count); in oss_read()
/external/python/cpython2/Objects/stringlib/
Dstringdefs.h24 #define STRINGLIB_RESIZE _PyString_Resize
/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/
Dfileobject.c1118 if (_PyString_Resize(&v, buffersize) < 0) in file_read()
1125 if (bytesread != buffersize && _PyString_Resize(&v, bytesread)) in file_read()
1385 if (_PyString_Resize(&v, (int)total_v_size) < 0) in getline_via_fgets()
1390 if (BUF(v) + total_v_size != p && _PyString_Resize(&v, p - BUF(v))) in getline_via_fgets()
1523 if (_PyString_Resize(&v, total_v_size) < 0) in get_line()
1530 if (used_v_size != total_v_size && _PyString_Resize(&v, used_v_size)) in get_line()
1598 if (_PyString_Resize(&result, len-1)) in PyFile_GetLine()
1738 if ( _PyString_Resize(&big_buffer, buffersize) < 0 ) in file_readlines()
Dstringobject.c394 if (_PyString_Resize(&string, s - PyString_AS_STRING(string))) in PyString_FromFormatV()
752 _PyString_Resize(&v, p - buf); /* v is cleared on error */ in PyString_DecodeEscape()
982 if (_PyString_Resize(&v, (p - PyString_AS_STRING(v)))) in PyString_Repr()
2309 if (inlen > 0 && _PyString_Resize(&result, output - output_start)) in string_translate()
3894 _PyString_Resize(PyObject **pv, Py_ssize_t newsize) in _PyString_Resize() function
4285 if (_PyString_Resize(&result, reslen)) in PyString_Format()
4619 if (_PyString_Resize(&result, reslen)) { in PyString_Format()
4687 if (_PyString_Resize(&result, reslen - rescnt)) in PyString_Format()
4718 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/PC/
D_subprocess.c370 if (_PyString_Resize(&out, totalsize + 1024)) in getenvironment()
384 _PyString_Resize(&out, p - PyString_AS_STRING(out)); in getenvironment()
/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/python/cpython2/Python/
Dcompile.c3578 if (_PyString_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
3604 if (_PyString_Resize(&a->a_lnotab, len) < 0) in assemble_lnotab()
3622 if (_PyString_Resize(&a->a_lnotab, len * 2) < 0) in assemble_lnotab()
3664 if (_PyString_Resize(&a->a_bytecode, len * 2) < 0) in assemble_emit()
3955 if (_PyString_Resize(&a.a_lnotab, a.a_lnotab_off) < 0) in assemble()
3957 if (_PyString_Resize(&a.a_bytecode, a.a_offset) < 0) in assemble()
Dmarshal.c84 if (_PyString_Resize(&p->str, newsize) != 0) { in w_more()
1235 if (_PyString_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base))) in PyMarshal_WriteObjectToString()
Dbltinmodule.c2927 if (_PyString_Resize(&result, need)) { in filterstring()
2947 _PyString_Resize(&result, j); in filterstring()
/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()
531 if (_PyString_Resize(&buf.outobj, finalsize) == -1) in multibytecodec_encode()
/external/python/cpython2/PC/os2emx/
Dpython27.def533 "_PyString_Resize"

12