Home
last modified time | relevance | path

Searched refs:pystr (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
D_json.c84 ascii_escape_unicode(PyObject *pystr);
86 ascii_escape_str(PyObject *pystr);
88 py_encode_basestring_ascii(PyObject* self UNUSED, PyObject *pystr);
91 scan_once_str(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
93 scan_once_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
194 ascii_escape_unicode(PyObject *pystr) in ascii_escape_unicode() argument
207 input_chars = PyUnicode_GET_SIZE(pystr); in ascii_escape_unicode()
208 input_unicode = PyUnicode_AS_UNICODE(pystr); in ascii_escape_unicode()
264 ascii_escape_str(PyObject *pystr) in ascii_escape_str() argument
277 input_chars = PyString_GET_SIZE(pystr); in ascii_escape_str()
[all …]
/external/python/cpython3/Modules/
D_json.c89 ascii_escape_unicode(PyObject *pystr);
91 py_encode_basestring_ascii(PyObject* self UNUSED, PyObject *pystr);
94 scan_once_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr);
164 ascii_escape_unicode(PyObject *pystr) in ascii_escape_unicode() argument
176 if (PyUnicode_READY(pystr) == -1) in ascii_escape_unicode()
179 input_chars = PyUnicode_GET_LENGTH(pystr); in ascii_escape_unicode()
180 input = PyUnicode_DATA(pystr); in ascii_escape_unicode()
181 kind = PyUnicode_KIND(pystr); in ascii_escape_unicode()
230 escape_unicode(PyObject *pystr) in escape_unicode() argument
242 if (PyUnicode_READY(pystr) == -1) in escape_unicode()
[all …]
/external/tensorflow/tensorflow/python/platform/
Dbase.i26 bool _PyObjAs(PyObject *pystr, T* cstr) { in _PyObjAs() argument
39 bool _PyObjAs(PyObject *pystr, ::string* cstr) { in _PyObjAs() argument
42 if (PyBytes_AsStringAndSize(pystr, &buf, &len) == -1) return false; in _PyObjAs()
48 bool _PyObjAs(PyObject *pystr, std::string* cstr) { in _PyObjAs() argument
51 if (PyBytes_AsStringAndSize(pystr, &buf, &len) == -1) return false; in _PyObjAs()