Home
last modified time | relevance | path

Searched refs:PyString_Size (Results 1 – 25 of 48) 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.c212 len = PyString_Size(filename); in normalize_module()
501 Py_ssize_t len = PyString_Size(*filename); in setup_context()
Dmarshal.c79 size = PyString_Size(p->str); in w_more()
1226 wf.end = wf.ptr + PyString_Size(wf.str); in PyMarshal_WriteObjectToString()
/external/python/cpython2/Modules/
Dmmapmodule.c848 if (PyString_Size(v) != (ihigh - ilow)) { in mmap_ass_slice()
875 if (! (PyString_Check(v) && PyString_Size(v)==1) ) { in mmap_ass_item()
910 if (!PyString_Check(value) || PyString_Size(value) != 1) { in mmap_ass_subscript()
938 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()
1175 if ((size = PyString_Size(repr)) < 0) in save_long()
1246 if ((size = PyString_Size(args)) < 0) in save_string()
1257 if ((len = PyString_Size(repr)) < 0) in save_string()
1428 if ((len = PyString_Size(repr)) < 0) in save_unicode()
1450 if ((size = PyString_Size(repr)) < 0) in save_unicode()
2113 if ((module_size = PyString_Size(module)) < 0 || in save_inst()
2114 (name_size = PyString_Size(name)) < 0) in save_inst()
2213 if ((module_size = PyString_Size(module)) < 0 || in save_global()
2214 (name_size = PyString_Size(global_name)) < 0) in save_global()
[all …]
D_csv.c810 linelen = PyString_Size(lineobj); in Reader_iternext()
1137 terminator_len = PyString_Size(self->dialect->lineterminator); in join_append_lineterminator()
Dtermios.c186 if (PyString_Check(v) && PyString_Size(v) == 1) in termios_tcsetattr()
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.c3335 len = PyString_Size(key) + PyString_Size(val) + 2; in posix_execve()
3571 len = PyString_Size(key) + PyString_Size(val) + 2; in posix_spawnve()
3810 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.c1729 int linelen = PyString_Size(lineobj); in PyTokenizer_RestoreEncoding()
1744 *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.c701 int size = PyString_Size(co->co_lnotab) / 2; in PyCode_Addr2Line()
/external/python/cpython2/PC/os2emx/
Dpython27.def543 "PyString_Size"
/external/python/pybind11/include/pybind11/detail/
Dcommon.h203 #define PYBIND11_BYTES_SIZE PyString_Size
/external/python/cpython2/Doc/data/
Drefcounts.dat1297 PyString_Size:int:::
1298 PyString_Size:PyObject*:string:0:

12