/external/python/cpython2/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 | 1186 PyString_AS_STRING(str), in SyntaxError_str() 1187 my_basename(PyString_AS_STRING(self->filename)), in SyntaxError_str() 1191 PyString_AS_STRING(str), in SyntaxError_str() 1192 my_basename(PyString_AS_STRING(self->filename))); in SyntaxError_str() 1195 PyString_AS_STRING(str), in SyntaxError_str() 1662 PyString_AS_STRING(encoding_str), in UnicodeEncodeError_str() 1665 PyString_AS_STRING(reason_str)); in UnicodeEncodeError_str() 1670 PyString_AS_STRING(encoding_str), in UnicodeEncodeError_str() 1673 PyString_AS_STRING(reason_str)); in UnicodeEncodeError_str() 1744 ((int)PyString_AS_STRING(uself->object)[uself->start])&0xff); in UnicodeDecodeError_str() [all …]
|
D | fileobject.c | 23 #define BUF(v) PyString_AS_STRING((PyStringObject *)v) 1588 char *s = PyString_AS_STRING(result); in PyFile_GetLine() 1733 buffer = PyString_AS_STRING(big_buffer); in file_readlines() 1740 buffer = PyString_AS_STRING(big_buffer); in file_readlines() 1823 s = PyString_AS_STRING(text); in file_write() 1829 encoding = PyString_AS_STRING(f->f_encoding); in file_write() 1833 errors = PyString_AS_STRING(f->f_errors); in file_write() 1839 s = PyString_AS_STRING(encoded); in file_write() 1970 nwritten = fwrite(PyString_AS_STRING(line), in file_writelines() 2298 memcpy(PyString_AS_STRING(s) + skip, f->f_bufptr, len); in readahead_get_line_skip() [all …]
|
D | codeobject.c | 22 s = (unsigned char *)PyString_AS_STRING(o); in all_name_chars() 249 PyString_AS_STRING(item), in validate_and_copy_tuple() 374 filename = PyString_AS_STRING(co->co_filename); in code_repr() 376 name = PyString_AS_STRING(co->co_name); in code_repr() 723 p = (unsigned char*)PyString_AS_STRING(co->co_lnotab); in _PyCode_CheckLineNumber()
|
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 …]
|
D | object.c | 1198 return (*tp->tp_getattr)(v, PyString_AS_STRING(name)); in PyObject_GetAttr() 1201 tp->tp_name, PyString_AS_STRING(name)); in PyObject_GetAttr() 1252 err = (*tp->tp_setattr)(v, PyString_AS_STRING(name), value); in PyObject_SetAttr() 1263 PyString_AS_STRING(name)); in PyObject_SetAttr() 1270 PyString_AS_STRING(name)); in PyObject_SetAttr() 1452 tp->tp_name, PyString_AS_STRING(name)); in _PyObject_GenericGetAttrWithDict() 1544 tp->tp_name, PyString_AS_STRING(name)); in _PyObject_GenericSetAttrWithDict() 1550 tp->tp_name, PyString_AS_STRING(name)); in _PyObject_GenericSetAttrWithDict()
|
D | unicodeobject.c | 1017 const char *str = PyString_AS_STRING(*callresult); in PyUnicode_FromFormatV() 1204 s = PyString_AS_STRING(obj); in PyUnicode_FromEncodedObject() 1858 start = out = PyString_AS_STRING(v); in PyUnicode_EncodeUTF7() 2184 p = PyString_AS_STRING(v); in PyUnicode_EncodeUTF8() 2236 nneeded = p - PyString_AS_STRING(v); in PyUnicode_EncodeUTF8() 2479 p = (unsigned char *)PyString_AS_STRING(v); in PyUnicode_EncodeUTF32() 2755 p = (unsigned char *)PyString_AS_STRING(v); in PyUnicode_EncodeUTF16() 3082 p = PyString_AS_STRING(repr); in unicodeescape_string() 3094 ch == (Py_UNICODE) PyString_AS_STRING(repr)[1]) || ch == '\\') { in unicodeescape_string() 3180 *p++ = PyString_AS_STRING(repr)[1]; in unicodeescape_string() [all …]
|
/external/python/cpython2/PC/ |
D | _subprocess.c | 352 p = PyString_AS_STRING(out); in getenvironment() 366 totalsize = (p - PyString_AS_STRING(out)) + ksize + 1 + in getenvironment() 369 int offset = p - PyString_AS_STRING(out); in getenvironment() 372 p = PyString_AS_STRING(out) + offset; in getenvironment() 374 memcpy(p, PyString_AS_STRING(key), ksize); in getenvironment() 377 memcpy(p, PyString_AS_STRING(value), vsize); in getenvironment() 384 _PyString_Resize(&out, p - PyString_AS_STRING(out)); in getenvironment() 470 environment ? PyString_AS_STRING(environment) : NULL, in sp_CreateProcess()
|
/external/python/cpython2/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() 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 | 232 output = PyString_AS_STRING(rval); in ascii_escape_unicode() 257 output = PyString_AS_STRING(rval); in ascii_escape_unicode() 282 input_str = PyString_AS_STRING(pystr); in ascii_escape_str() 328 output = PyString_AS_STRING(rval); in ascii_escape_str() 358 output = PyString_AS_STRING(rval); in ascii_escape_str() 452 char *buf = PyString_AS_STRING(pystr); in scanstring_str() 893 char *str = PyString_AS_STRING(pystr); in _parse_object_str() 900 char *encoding = PyString_AS_STRING(s->encoding); in _parse_object_str() 1147 char *str = PyString_AS_STRING(pystr); in _parse_array_str() 1309 char *str = PyString_AS_STRING(pystr); in _match_number_str() [all …]
|
D | dbmmodule.c | 110 PyString_AS_STRING((PyStringObject *)key)); in dbm_subscript() 142 PyString_AS_STRING((PyStringObject *)v)); in dbm_ass_sub() 308 val.dptr = PyString_AS_STRING(defvalue); in dbm_setdefault()
|
D | gdbmmodule.c | 131 PyString_AS_STRING((PyStringObject *)key)); in dbm_subscript() 158 PyString_AS_STRING((PyStringObject *)v)); in dbm_ass_sub() 197 key.dptr = PyString_AS_STRING(arg); in dbm_contains()
|
D | zlibmodule.c | 550 Py_MEMCPY(PyString_AS_STRING(new_data), in save_unconsumed_input() 551 PyString_AS_STRING(self->unused_data), old_size); in save_unconsumed_input() 552 Py_MEMCPY(PyString_AS_STRING(new_data) + old_size, in save_unconsumed_input() 879 self->zst.next_in = (Byte *)PyString_AS_STRING(self->unconsumed_tail); in PyZlib_unflush() 910 (Byte *)PyString_AS_STRING(self->unconsumed_tail), in PyZlib_unflush()
|
/external/python/cpython2/Mac/Modules/ |
D | _scproxy.c | 33 PyString_AS_STRING(result), in cfstring_to_pystring() 41 strlen(PyString_AS_STRING(result))); in cfstring_to_pystring() 147 PyString_AS_STRING(h), in set_proxy() 151 PyString_AS_STRING(h)); in set_proxy()
|
/external/python/cpython2/Python/ |
D | getargs.c | 845 *p = PyString_AS_STRING(arg)[0]; in convertsimple() 857 PyString_AS_STRING(arg), PyString_GET_SIZE(arg), in convertsimple() 867 PyString_AS_STRING(uarg), PyString_GET_SIZE(uarg), in convertsimple() 887 *p = PyString_AS_STRING(arg); in convertsimple() 896 *p = PyString_AS_STRING(uarg); in convertsimple() 912 *p = PyString_AS_STRING(arg); in convertsimple() 919 *p = PyString_AS_STRING(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() 973 *p = PyString_AS_STRING(arg); in convertsimple() [all …]
|
D | compile.c | 234 buffer = PyString_AS_STRING(ident); in _Py_Mangle() 1231 PyString_AS_STRING(name), in get_ref_type() 1232 PyString_AS_STRING(c->u->u_name), in get_ref_type() 1233 PyString_AS_STRING(PyObject_Repr(c->u->u_ste->ste_id)), in get_ref_type() 1235 PyString_AS_STRING(PyObject_Repr(c->u->u_ste->ste_symbols)), in get_ref_type() 1236 PyString_AS_STRING(PyObject_Repr(c->u->u_varnames)), in get_ref_type() 1237 PyString_AS_STRING(PyObject_Repr(c->u->u_names)) in get_ref_type() 1289 PyString_AS_STRING(PyObject_Repr(name)), in compiler_make_closure() 1290 PyString_AS_STRING(c->u->u_name), in compiler_make_closure() 1292 PyString_AS_STRING(co->co_name), in compiler_make_closure() [all …]
|
D | symtable.c | 91 PyString_AS_STRING(ste->ste_name), in ste_repr() 381 PyString_AS_STRING(name)); in analyze_name() 433 PyString_AS_STRING(name)); in analyze_name() 502 PyString_AS_STRING(ste->ste_name), trailer); in check_unoptimized() 508 PyString_AS_STRING(ste->ste_name), trailer); in check_unoptimized() 514 PyString_AS_STRING(ste->ste_name), trailer); in check_unoptimized() 1142 char *c_name = PyString_AS_STRING(name); in symtable_visit_stmt() 1406 const char *base = PyString_AS_STRING(name); in symtable_visit_alias() 1417 if (strcmp(PyString_AS_STRING(name), "*")) { in symtable_visit_alias()
|
D | marshal.c | 88 p->ptr = PyString_AS_STRING((PyStringObject *)p->str) + size; in w_more() 90 PyString_AS_STRING((PyStringObject *)p->str) + newsize; in w_more() 365 w_pstring(PyString_AS_STRING(utf8), PyString_GET_SIZE(utf8), p); in w_object() 819 if (r_string(PyString_AS_STRING(v), n, p) != n) { in r_object() 1219 wf.ptr = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString() 1228 char *base = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
|
D | import.c | 504 name = PyString_AS_STRING(key); in PyImport_Cleanup() 523 name = PyString_AS_STRING(key); in PyImport_Cleanup() 648 m = PyModule_New(PyString_AS_STRING(name)); in _PyImport_AddModuleObject() 1471 strcpy(buf, PyString_AS_STRING(v)); in find_module() 2387 strcpy(buf, PyString_AS_STRING(pkgname)); in get_parent() 2404 strcpy(buf, PyString_AS_STRING(modname)); in get_parent() 2413 char *start = PyString_AS_STRING(modname); in get_parent() 2600 if (PyString_AS_STRING(item)[0] == '*') { in ensure_fromlist() 2619 char *subname = PyString_AS_STRING(item); in ensure_fromlist() 2800 PyString_AS_STRING(parentname)); in PyImport_ReloadModule()
|
D | future.c | 90 !strcmp(PyString_AS_STRING(modname), "__future__")) { in future_parse()
|
/external/python/cpython2/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() 493 buf.outbuf = (unsigned char *)PyString_AS_STRING(buf.outobj); in multibytecodec_encode() 528 PyString_AS_STRING(buf.outobj)); in multibytecodec_encode() 1283 ctrdata = PyString_AS_STRING(ctr); in mbstreamreader_iread() 1286 PyString_AS_STRING(cres), in mbstreamreader_iread() [all …]
|
/external/python/cpython2/Objects/stringlib/ |
D | stringdefs.h | 21 #define STRINGLIB_STR PyString_AS_STRING
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 7 #define PyBytes_AS_STRING PyString_AS_STRING
|
D | stringobject.h | 91 #define PyString_AS_STRING(op) (((PyStringObject *)(op))->ob_sval) macro
|
/external/python/cpython2/Modules/_sqlite/ |
D | statement.c | 77 sql_cstr = PyString_AS_STRING(sql_str); in pysqlite_statement_create() 148 string = PyString_AS_STRING(parameter); in pysqlite_statement_bind_parameter()
|