Home
last modified time | relevance | path

Searched refs:PyString_Size (Results 1 – 25 of 44) sorted by relevance

12

/external/python/cpython2/Include/
Dbytesobject.h15 #define PyBytes_Size PyString_Size
Dstringobject.h68 PyAPI_FUNC(Py_ssize_t) PyString_Size(PyObject *);
/external/python/cpython2/Python/
Dmactoolboxglue.c164 if (!PyString_Check(v) || PyString_Size(v) != 4) { in PyMac_GetOSType()
195 if (!PyString_Check(v) || (len = PyString_Size(v)) > 255) { in PyMac_GetStr255()
Dgetargs.c844 if (PyString_Check(arg) && PyString_Size(arg) == 1) in convertsimple()
924 if ((Py_ssize_t)strlen(*p) != PyString_Size(arg)) in convertsimple()
1019 STORE_SIZE(PyString_Size(arg)); in convertsimple()
1024 (Py_ssize_t)strlen(*p) != PyString_Size(arg)) in convertsimple()
Dstructmember.c324 if (PyString_Check(v) && PyString_Size(v) == 1) { in PyMember_SetOne()
D_warnings.c206 len = PyString_Size(filename); in normalize_module()
495 Py_ssize_t len = PyString_Size(*filename); in setup_context()
Dmarshal.c79 size = PyString_Size(p->str); in w_more()
1220 wf.end = wf.ptr + PyString_Size(wf.str); in PyMarshal_WriteObjectToString()
/external/python/cpython2/Modules/
Dmmapmodule.c866 if (PyString_Size(v) != (ihigh - ilow)) { in mmap_ass_slice()
893 if (! (PyString_Check(v) && PyString_Size(v)==1) ) { in mmap_ass_item()
928 if (!PyString_Check(value) || PyString_Size(value) != 1) { in mmap_ass_subscript()
957 if (PyString_Size(value) != slicelen) { in mmap_ass_subscript()
Dzipimport.c444 len = PyString_Size(self->archive); in zipimporter_get_data()
1059 Py_ssize_t size = PyString_Size(data); in unmarshal_code()
1113 buf = (char *)PyMem_Malloc(PyString_Size(source) + 2); in normalize_line_endings()
DcPickle.c715 if ((str_size = PyString_Size(str)) < 0) in readline_other()
1165 if ((size = PyString_Size(repr)) < 0) in save_long()
1236 if ((size = PyString_Size(args)) < 0) in save_string()
1247 if ((len = PyString_Size(repr)) < 0) in save_string()
1415 if ((len = PyString_Size(repr)) < 0) in save_unicode()
1437 if ((size = PyString_Size(repr)) < 0) in save_unicode()
2097 if ((module_size = PyString_Size(module)) < 0 || in save_inst()
2098 (name_size = PyString_Size(name)) < 0) in save_inst()
2197 if ((module_size = PyString_Size(module)) < 0 || in save_global()
2198 (name_size = PyString_Size(global_name)) < 0) in save_global()
[all …]
Dtermios.c186 if (PyString_Check(v) && PyString_Size(v) == 1) in termios_tcsetattr()
D_csv.c807 linelen = PyString_Size(lineobj); in Reader_iternext()
1141 terminator_len = PyString_Size(self->dialect->lineterminator); in join_append_lineterminator()
Dcstubs634 if (!PyString_Check(s) || PyString_Size(s) != pixcount*sizeof(long)) {
750 if (PyString_Size(unpacked) != pixcount*sizeof(long)) {
811 if (PyString_Size(packed) != packedcount) {
Dposixmodule.c3323 len = PyString_Size(key) + PyString_Size(val) + 2; in posix_execve()
3553 len = PyString_Size(key) + PyString_Size(val) + 2; in posix_spawnve()
3786 len = PyString_Size(key) + PyString_Size(val) + 2; in posix_spawnvpe()
/external/libxml2/python/
Dlibxml_wrap.h33 #define PyBytes_Size PyString_Size
/external/python/cpython2/PC/os2vacpp/
Dpython.def370 PyString_Size
/external/python/cpython2/RISCOS/Modules/
Ddrawfmodule.c336 { int m=PyString_Size(value); in DrawF_FontTable()
353 { int m=PyString_Size(value); in DrawF_FontTable()
Dswimodule.c70 { int n=PyString_Size(init); in PyBlock_New()
/external/python/cpython2/Doc/c-api/
Dstring.rst153 .. c:function:: Py_ssize_t PyString_Size(PyObject *string)
164 Macro form of :c:func:`PyString_Size` but without error checking.
/external/python/cpython2/Parser/
Dtokenizer.c1722 int linelen = PyString_Size(lineobj); in PyTokenizer_RestoreEncoding()
1737 *offset = PyString_Size(offsetobj) + 1; in PyTokenizer_RestoreEncoding()
/external/python/cpython2/Modules/_ctypes/
Dcallproc.c1287 name = alloca((PyString_Size(nameobj) + 1) * sizeof(WCHAR)); in load_library()
1298 r = MultiByteToWideChar(CP_ACP, 0, aname, -1, name, PyString_Size(nameobj) + 1); in load_library()
/external/python/cpython2/Objects/
Dcodeobject.c702 int size = PyString_Size(co->co_lnotab) / 2; in PyCode_Addr2Line()
Dclassobject.c351 Py_ssize_t n = PyString_Size(name); in class_setattr()
839 Py_ssize_t n = PyString_Size(name); in instance_setattr()
/external/python/cpython2/PC/os2emx/
Dpython27.def543 "PyString_Size"
/external/python/cpython2/Doc/data/
Drefcounts.dat1297 PyString_Size:int:::
1298 PyString_Size:PyObject*:string:0:

12