/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | stringobject.c | 394 if (_PyString_Resize(&string, s - PyString_AS_STRING(string))) in PyString_FromFormatV() 644 r = PyString_AS_STRING(w); in PyString_DecodeEscape() 825 *s = PyString_AS_STRING(obj); in PyString_AsStringAndSize() 954 p = PyString_AS_STRING(v); in PyString_Repr() 959 assert(newsize - (p - PyString_AS_STRING(v)) >= 5); in PyString_Repr() 979 assert(newsize - (p - PyString_AS_STRING(v)) >= 1); in PyString_Repr() 982 if (_PyString_Resize(&v, (p - PyString_AS_STRING(v)))) in PyString_Repr() 1330 PyString_AS_STRING(self) + start, in string_subscript() 1457 const char *s = PyString_AS_STRING(self), *sub; in string_split() 1467 sub = PyString_AS_STRING(subobj); in string_split() [all …]
|
D | exceptions.c | 1198 PyString_AS_STRING(str), in SyntaxError_str() 1199 my_basename(PyString_AS_STRING(self->filename)), in SyntaxError_str() 1203 PyString_AS_STRING(str), in SyntaxError_str() 1204 my_basename(PyString_AS_STRING(self->filename))); in SyntaxError_str() 1207 PyString_AS_STRING(str), in SyntaxError_str() 1675 PyString_AS_STRING(encoding_str), in UnicodeEncodeError_str() 1678 PyString_AS_STRING(reason_str)); in UnicodeEncodeError_str() 1683 PyString_AS_STRING(encoding_str), in UnicodeEncodeError_str() 1686 PyString_AS_STRING(reason_str)); in UnicodeEncodeError_str() 1757 ((int)PyString_AS_STRING(uself->object)[uself->start])&0xff); in UnicodeDecodeError_str() [all …]
|
D | codeobject.c | 76 if (!all_name_chars((unsigned char *)PyString_AS_STRING(v))) in PyCode_New() 209 PyString_AS_STRING(item), in validate_and_copy_tuple() 334 filename = PyString_AS_STRING(co->co_filename); in code_repr() 336 name = PyString_AS_STRING(co->co_name); in code_repr() 541 p = (unsigned char*)PyString_AS_STRING(co->co_lnotab); in _PyCode_CheckLineNumber()
|
D | fileobject.c | 23 #define BUF(v) PyString_AS_STRING((PyStringObject *)v) 1590 char *s = PyString_AS_STRING(result); in PyFile_GetLine() 1735 buffer = PyString_AS_STRING(big_buffer); in file_readlines() 1742 buffer = PyString_AS_STRING(big_buffer); in file_readlines() 1825 s = PyString_AS_STRING(text); in file_write() 1831 encoding = PyString_AS_STRING(f->f_encoding); in file_write() 1835 errors = PyString_AS_STRING(f->f_errors); in file_write() 1841 s = PyString_AS_STRING(encoded); in file_write() 1972 nwritten = fwrite(PyString_AS_STRING(line), in file_writelines() 2300 memcpy(PyString_AS_STRING(s) + skip, f->f_bufptr, len); in readahead_get_line_skip() [all …]
|
D | classobject.c | 265 PyString_AS_STRING(op->cl_name), sname); in class_getattr() 330 if (strlen(PyString_AS_STRING(v)) != (size_t)PyString_GET_SIZE(v)) in set_name() 381 PyString_AS_STRING(op->cl_name), sname); in class_setattr() 423 char *s = PyString_AS_STRING(res); in class_str() 424 memcpy(s, PyString_AS_STRING(mod), m); in class_str() 427 memcpy(s, PyString_AS_STRING(name), n); in class_str() 739 PyString_AS_STRING(inst->in_class->cl_name), sname); in instance_getattr1() 818 PyString_AS_STRING(inst->in_class->cl_name), in instance_setattr1() 819 PyString_AS_STRING(name)); in instance_setattr1() 2436 sfuncname = PyString_AS_STRING(funcname); in instancemethod_repr() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | stringobject.c | 394 if (_PyString_Resize(&string, s - PyString_AS_STRING(string))) in PyString_FromFormatV() 644 r = PyString_AS_STRING(w); in PyString_DecodeEscape() 821 *s = PyString_AS_STRING(obj); in PyString_AsStringAndSize() 949 p = PyString_AS_STRING(v); in PyString_Repr() 954 assert(newsize - (p - PyString_AS_STRING(v)) >= 5); in PyString_Repr() 974 assert(newsize - (p - PyString_AS_STRING(v)) >= 1); in PyString_Repr() 977 if (_PyString_Resize(&v, (p - PyString_AS_STRING(v)))) in PyString_Repr() 1313 PyString_AS_STRING(self) + start, in string_subscript() 1440 const char *s = PyString_AS_STRING(self), *sub; in string_split() 1450 sub = PyString_AS_STRING(subobj); in string_split() [all …]
|
D | exceptions.c | 1194 PyString_AS_STRING(str), in SyntaxError_str() 1195 my_basename(PyString_AS_STRING(self->filename)), in SyntaxError_str() 1199 PyString_AS_STRING(str), in SyntaxError_str() 1200 my_basename(PyString_AS_STRING(self->filename))); in SyntaxError_str() 1203 PyString_AS_STRING(str), in SyntaxError_str() 1667 PyString_AS_STRING(encoding_str), in UnicodeEncodeError_str() 1670 PyString_AS_STRING(reason_str)); in UnicodeEncodeError_str() 1675 PyString_AS_STRING(encoding_str), in UnicodeEncodeError_str() 1678 PyString_AS_STRING(reason_str)); in UnicodeEncodeError_str() 1745 ((int)PyString_AS_STRING(uself->object)[uself->start])&0xff); in UnicodeDecodeError_str() [all …]
|
D | codeobject.c | 76 if (!all_name_chars((unsigned char *)PyString_AS_STRING(v))) in PyCode_New() 209 PyString_AS_STRING(item), in validate_and_copy_tuple() 334 filename = PyString_AS_STRING(co->co_filename); in code_repr() 336 name = PyString_AS_STRING(co->co_name); in code_repr() 541 p = (unsigned char*)PyString_AS_STRING(co->co_lnotab); in _PyCode_CheckLineNumber()
|
D | fileobject.c | 23 #define BUF(v) PyString_AS_STRING((PyStringObject *)v) 1538 char *s = PyString_AS_STRING(result); in PyFile_GetLine() 1675 buffer = PyString_AS_STRING(big_buffer); in file_readlines() 1682 buffer = PyString_AS_STRING(big_buffer); in file_readlines() 1765 s = PyString_AS_STRING(text); in file_write() 1769 encoding = PyString_AS_STRING(f->f_encoding); in file_write() 1773 errors = PyString_AS_STRING(f->f_errors); in file_write() 1779 s = PyString_AS_STRING(encoded); in file_write() 1904 nwritten = fwrite(PyString_AS_STRING(line), in file_writelines() 2232 memcpy(PyString_AS_STRING(s)+skip, f->f_bufptr, len); in readahead_get_line_skip() [all …]
|
D | classobject.c | 259 PyString_AS_STRING(op->cl_name), sname); in class_getattr() 324 if (strlen(PyString_AS_STRING(v)) != (size_t)PyString_GET_SIZE(v)) in set_name() 371 PyString_AS_STRING(op->cl_name), sname); in class_setattr() 413 char *s = PyString_AS_STRING(res); in class_str() 414 memcpy(s, PyString_AS_STRING(mod), m); in class_str() 417 memcpy(s, PyString_AS_STRING(name), n); in class_str() 722 PyString_AS_STRING(inst->in_class->cl_name), sname); in instance_getattr1() 801 PyString_AS_STRING(inst->in_class->cl_name), in instance_setattr1() 802 PyString_AS_STRING(name)); in instance_setattr1() 2412 sfuncname = PyString_AS_STRING(funcname); in instancemethod_repr() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | zlibmodule.c | 239 zst.next_out = (Byte *)PyString_AS_STRING(result_str); in PyZlib_decompress() 282 zst.next_out = (unsigned char *)PyString_AS_STRING(result_str) \ in PyZlib_decompress() 432 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal); in PyZlib_objcompress() 443 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal) \ in PyZlib_objcompress() 490 Py_MEMCPY(PyString_AS_STRING(new_data), in save_unconsumed_input() 491 PyString_AS_STRING(self->unused_data), old_size); in save_unconsumed_input() 492 Py_MEMCPY(PyString_AS_STRING(new_data) + old_size, in save_unconsumed_input() 554 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal); in PyZlib_objdecompress() 578 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal) \ in PyZlib_objdecompress() 648 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal); in PyZlib_flush() [all …]
|
D | binascii.c | 215 bin_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_a2b_uu() 301 ascii_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_b2a_uu() 326 (unsigned char *)PyString_AS_STRING(rv))); in binascii_b2a_uu() 390 bin_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_a2b_base64() 497 ascii_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_b2a_base64() 524 (unsigned char *)PyString_AS_STRING(rv))); in binascii_b2a_base64() 562 bin_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_a2b_hqx() 601 (unsigned char *)PyString_AS_STRING(rv))) == 0) { in binascii_a2b_hqx() 640 out_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_rlecode_hqx() 669 (unsigned char *)PyString_AS_STRING(rv))); in binascii_rlecode_hqx() [all …]
|
D | _json.c | 220 output = PyString_AS_STRING(rval); in ascii_escape_unicode() 244 output = PyString_AS_STRING(rval); in ascii_escape_unicode() 268 input_str = PyString_AS_STRING(pystr); in ascii_escape_str() 306 output = PyString_AS_STRING(rval); in ascii_escape_str() 331 output = PyString_AS_STRING(rval); in ascii_escape_str() 425 char *buf = PyString_AS_STRING(pystr); in scanstring_str() 866 char *str = PyString_AS_STRING(pystr); in _parse_object_str() 873 char *encoding = PyString_AS_STRING(s->encoding); in _parse_object_str() 1114 char *str = PyString_AS_STRING(pystr); in _parse_array_str() 1276 char *str = PyString_AS_STRING(pystr); in _match_number_str() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | binascii.c | 215 bin_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_a2b_uu() 301 ascii_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_b2a_uu() 325 (unsigned char *)PyString_AS_STRING(rv))) < 0) { in binascii_b2a_uu() 392 bin_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_a2b_base64() 501 ascii_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_b2a_base64() 527 (unsigned char *)PyString_AS_STRING(rv))) < 0) { in binascii_b2a_base64() 568 bin_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_a2b_hqx() 606 (unsigned char *)PyString_AS_STRING(rv))) < 0) { in binascii_a2b_hqx() 649 out_data = (unsigned char *)PyString_AS_STRING(rv); in binascii_rlecode_hqx() 677 (unsigned char *)PyString_AS_STRING(rv))) < 0) { in binascii_rlecode_hqx() [all …]
|
D | zlibmodule.c | 233 zst.next_out = (Byte *)PyString_AS_STRING(result_str); in PyZlib_decompress() 276 zst.next_out = (unsigned char *)PyString_AS_STRING(result_str) \ in PyZlib_decompress() 426 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal); in PyZlib_objcompress() 437 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal) \ in PyZlib_objcompress() 505 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal); in PyZlib_objdecompress() 529 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal) \ in PyZlib_objdecompress() 622 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal); in PyZlib_flush() 633 self->zst.next_out = (unsigned char *)PyString_AS_STRING(RetVal) \ in PyZlib_flush() 808 self->zst.next_out = (Byte *)PyString_AS_STRING(retval); in PyZlib_unflush() 819 self->zst.next_out = (Byte *)PyString_AS_STRING(retval) + length; in PyZlib_unflush()
|
D | _json.c | 220 output = PyString_AS_STRING(rval); in ascii_escape_unicode() 244 output = PyString_AS_STRING(rval); in ascii_escape_unicode() 268 input_str = PyString_AS_STRING(pystr); in ascii_escape_str() 306 output = PyString_AS_STRING(rval); in ascii_escape_str() 331 output = PyString_AS_STRING(rval); in ascii_escape_str() 425 char *buf = PyString_AS_STRING(pystr); in scanstring_str() 889 char *str = PyString_AS_STRING(pystr); in _parse_object_str() 896 char *encoding = PyString_AS_STRING(s->encoding); in _parse_object_str() 1137 char *str = PyString_AS_STRING(pystr); in _parse_array_str() 1299 char *str = PyString_AS_STRING(pystr); in _match_number_str() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | getargs.c | 826 *p = PyString_AS_STRING(arg)[0]; in convertsimple() 838 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple() 848 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple() 868 *p = PyString_AS_STRING(arg); in convertsimple() 877 *p = PyString_AS_STRING(uarg); in convertsimple() 893 *p = PyString_AS_STRING(arg); in convertsimple() 900 *p = PyString_AS_STRING(uarg); in convertsimple() 920 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple() 930 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple() 954 *p = PyString_AS_STRING(arg); in convertsimple() [all …]
|
D | compile.c | 234 buffer = PyString_AS_STRING(ident); in _Py_Mangle() 1272 PyString_AS_STRING(name), in get_ref_type() 1273 PyString_AS_STRING(c->u->u_name), in get_ref_type() 1274 PyString_AS_STRING(PyObject_Repr(c->u->u_ste->ste_id)), in get_ref_type() 1276 PyString_AS_STRING(PyObject_Repr(c->u->u_ste->ste_symbols)), in get_ref_type() 1277 PyString_AS_STRING(PyObject_Repr(c->u->u_varnames)), in get_ref_type() 1278 PyString_AS_STRING(PyObject_Repr(c->u->u_names)) in get_ref_type() 1330 PyString_AS_STRING(PyObject_Repr(name)), in compiler_make_closure() 1331 PyString_AS_STRING(c->u->u_name), in compiler_make_closure() 1333 PyString_AS_STRING(co->co_name), in compiler_make_closure() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | getargs.c | 826 *p = PyString_AS_STRING(arg)[0]; in convertsimple() 838 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple() 848 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple() 868 *p = PyString_AS_STRING(arg); in convertsimple() 877 *p = PyString_AS_STRING(uarg); in convertsimple() 893 *p = PyString_AS_STRING(arg); in convertsimple() 900 *p = PyString_AS_STRING(uarg); in convertsimple() 920 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple() 930 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple() 954 *p = PyString_AS_STRING(arg); in convertsimple() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | bytesobject.h | 7 #define PyBytes_AS_STRING PyString_AS_STRING
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
D | bytesobject.h | 7 #define PyBytes_AS_STRING PyString_AS_STRING
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/ |
D | stringdefs.h | 21 #define STRINGLIB_STR PyString_AS_STRING
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/ |
D | stringdefs.h | 21 #define STRINGLIB_STR PyString_AS_STRING
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/ |
D | multibytecodec.c | 97 cb = PyCodec_LookupError(PyString_AS_STRING(errors)); in call_error_callback() 146 cb = internal_error_callback(PyString_AS_STRING(value)); in codecctx_errors_set() 169 PyString_AS_STRING(buf->outobj)); in expand_encodebuffer() 179 buf->outbuf = (unsigned char *)PyString_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer() 180 buf->outbuf_end = (unsigned char *)PyString_AS_STRING(buf->outobj) in expand_encodebuffer() 332 memcpy(buf->outbuf, PyString_AS_STRING(retstr), retstrsize); in multibytecodec_encerror() 489 buf.outbuf = (unsigned char *)PyString_AS_STRING(buf.outobj); in multibytecodec_encode() 524 PyString_AS_STRING(buf.outobj)); in multibytecodec_encode() 1279 ctrdata = PyString_AS_STRING(ctr); in mbstreamreader_iread() 1282 PyString_AS_STRING(cres), in mbstreamreader_iread() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/ |
D | multibytecodec.c | 97 cb = PyCodec_LookupError(PyString_AS_STRING(errors)); in call_error_callback() 146 cb = internal_error_callback(PyString_AS_STRING(value)); in codecctx_errors_set() 169 PyString_AS_STRING(buf->outobj)); in expand_encodebuffer() 181 buf->outbuf = (unsigned char *)PyString_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer() 182 buf->outbuf_end = (unsigned char *)PyString_AS_STRING(buf->outobj) in expand_encodebuffer() 334 memcpy(buf->outbuf, PyString_AS_STRING(retstr), retstrsize); in multibytecodec_encerror() 492 buf.outbuf = (unsigned char *)PyString_AS_STRING(buf.outobj); in multibytecodec_encode() 527 PyString_AS_STRING(buf.outobj)); in multibytecodec_encode() 1282 ctrdata = PyString_AS_STRING(ctr); in mbstreamreader_iread() 1285 PyString_AS_STRING(cres), in mbstreamreader_iread() [all …]
|