/external/python/cpython2/Mac/Modules/cf/ |
D | pycfbridge.c | 149 if (PyString_Check(src) || PyUnicode_Check(src)) in PyCF_Python2CF() 252 if (PyString_Check(src) || PyUnicode_Check(src)) in PyCF_Python2CF_simple() 291 if (PyUnicode_Check(src)) { in PyCF_Python2CF_string()
|
/external/libmojo/third_party/markupsafe/ |
D | _speedups.c | 141 if (!PyUnicode_Check(text)) { in escape() 174 if (!PyUnicode_Check(s)) in soft_unicode()
|
/external/python/cpython2/Objects/stringlib/ |
D | unicodedefs.h | 25 #define STRINGLIB_CHECK PyUnicode_Check
|
D | string_format.h | 611 assert(PyUnicode_Check(result)); in render_field() 613 assert(PyString_Check(result) || PyUnicode_Check(result)); in render_field()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 474 if (PyUnicode_Check(v)) { in PyString_AsDecodedString() 554 if (PyUnicode_Check(v)) { in PyString_AsEncodedString() 810 if (PyUnicode_Check(obj)) { in PyString_AsStringAndSize() 1022 if (PyUnicode_Check(bb)) in string_concat() 1155 if (PyUnicode_Check(sub_obj)) in string_contains() 1471 else if (PyUnicode_Check(subobj)) in string_split() 1498 else if (PyUnicode_Check(sep_obj)) in string_partition() 1529 else if (PyUnicode_Check(sep_obj)) in string_rpartition() 1570 else if (PyUnicode_Check(subobj)) in string_rsplit() 1628 if (PyUnicode_Check(item)) { in string_join() [all …]
|
D | unicodeobject.c | 424 if (v == NULL || !PyUnicode_Check(v) || Py_REFCNT(v) != 1 || length < 0) { in _PyUnicode_Resize() 831 assert(obj && PyUnicode_Check(obj)); in PyUnicode_FromFormatV() 840 assert(!obj || PyUnicode_Check(obj)); in PyUnicode_FromFormatV() 1154 if (PyUnicode_Check(obj)) { in PyUnicode_FromObject() 1186 if (PyUnicode_Check(obj)) { in PyUnicode_FromEncodedObject() 1195 if (PyUnicode_Check(obj)) { in PyUnicode_FromEncodedObject() 1264 if (!PyUnicode_Check(unicode)) { in PyUnicode_Decode() 1285 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsDecodedObject() 1327 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsEncodedObject() 1351 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsEncodedString() [all …]
|
D | object.c | 385 if (PyUnicode_Check(res)) { in PyObject_Repr() 436 type_ok = type_ok || PyUnicode_Check(res); in _PyObject_Str() 455 if (PyUnicode_Check(res)) { in PyObject_Str() 523 if (PyUnicode_Check(v)) { in PyObject_Unicode() 543 if (!PyUnicode_Check(res)) { in PyObject_Unicode() 1181 if (PyUnicode_Check(name)) { in PyObject_GetAttr() 1228 if (PyUnicode_Check(name)) { in PyObject_SetAttr() 1341 if (PyUnicode_Check(name)) { in _PyObject_GenericGetAttrWithDict() 1479 if (PyUnicode_Check(name)) { in _PyObject_GenericSetAttrWithDict()
|
D | complexobject.c | 917 if (PyUnicode_Check(format_spec)) { in complex__format__() 990 else if (PyUnicode_Check(v)) { in complex_subtype_from_string() 1162 if (PyString_Check(r) || PyUnicode_Check(r)) { in complex_new() 1171 if (i != NULL && (PyString_Check(i) || PyUnicode_Check(i))) { in complex_new()
|
D | fileobject.c | 358 if (PyUnicode_Check(f->f_name)) { in open_the_file() 639 if (PyUnicode_Check(f->f_name)) { in file_repr() 1579 !PyUnicode_Check(result)) { in PyFile_GetLine() 1610 if (n < 0 && result != NULL && PyUnicode_Check(result)) { in PyFile_GetLine() 1826 } else if (PyUnicode_Check(text)) { in file_write() 2567 PyUnicode_Check(v) && enc != Py_None) { in PyFile_WriteObject() 2589 if (PyUnicode_Check(v)) { in PyFile_WriteObject()
|
/external/python/cpython2/Modules/ |
D | _localemodule.c | 296 if (!PyUnicode_Check(os1) && !PyUnicode_Check(os2)) { in PyLocale_strcoll() 300 if (!PyUnicode_Check(os1)) { in PyLocale_strcoll() 306 if (!PyUnicode_Check(os2)) { in PyLocale_strcoll()
|
D | operator.c | 311 if (PyUnicode_Check(a) && PyUnicode_Check(b)) { in compare_digest() 653 if (PyUnicode_Check(attr)) { in dotted_getattr()
|
D | _json.c | 807 else if (PyUnicode_Check(pystr)) { in py_scanstring() 833 else if (PyUnicode_Check(pystr)) { in py_encode_basestring_ascii() 1694 else if (PyUnicode_Check(pystr)) { in scanner_call() 1745 else if (PyUnicode_Check(s->encoding)) { in scanner_init() 2022 else if (PyString_Check(obj) || PyUnicode_Check(obj)) in encoder_listencode_obj() 2167 if (PyString_Check(key) || PyUnicode_Check(key)) { in encoder_listencode_dict()
|
D | _codecsmodule.c | 219 if (PyUnicode_Check(obj)) { in unicode_internal_decode() 646 if (PyUnicode_Check(obj)) { in unicode_internal_encode()
|
/external/python/cpython2/Python/ |
D | getargs.c | 861 else if (PyUnicode_Check(arg)) { in convertsimple() 891 else if (PyUnicode_Check(arg)) { in convertsimple() 914 else if (PyUnicode_Check(arg)) { in convertsimple() 943 else if (PyUnicode_Check(arg)) { in convertsimple() 977 else if (PyUnicode_Check(arg)) { in convertsimple() 1002 else if (PyUnicode_Check(arg)) { in convertsimple() 1205 if (PyUnicode_Check(arg)) { in convertsimple() 1216 if (PyUnicode_Check(arg)) { in convertsimple() 1243 if (PyUnicode_Check(arg)) in convertsimple()
|
D | bltinmodule.c | 257 if (PyUnicode_Check(seq)) in builtin_filter() 546 else if (PyUnicode_Check(cmd)) { in builtin_compile() 682 !PyUnicode_Check(cmd)) { in builtin_eval() 690 if (PyUnicode_Check(cmd)) { in builtin_eval() 836 if (PyUnicode_Check(name)) { in builtin_getattr() 892 if (PyUnicode_Check(name)) { in builtin_hasattr() 1535 } else if (PyUnicode_Check(obj)) { in builtin_ord() 1632 if (PyUnicode_Check(sep)) { in builtin_print() 1645 if (PyUnicode_Check(end)) { in builtin_print() 1658 if (PyUnicode_Check(PyTuple_GET_ITEM(args, i))) { in builtin_print() [all …]
|
/external/python/cpython2/Modules/_io/ |
D | stringio.c | 134 assert(PyUnicode_Check(decoded)); in write_str() 328 if (line && !PyUnicode_Check(line)) { in stringio_iternext() 466 if (!PyUnicode_Check(obj)) { in stringio_write() 572 if (value && value != Py_None && !PyUnicode_Check(value)) { in stringio_init()
|
/external/python/cpython2/Modules/_sqlite/ |
D | statement.c | 67 } else if (PyUnicode_Check(sql)) { in pysqlite_statement_create() 141 } else if (PyUnicode_Check(parameter)) { in pysqlite_statement_bind_parameter()
|
D | cursor.c | 475 if (!PyString_Check(operation) && !PyUnicode_Check(operation)) { in _pysqlite_query_execute() 497 if (!PyString_Check(operation) && !PyUnicode_Check(operation)) { in _pysqlite_query_execute() 801 } else if (PyUnicode_Check(script_obj)) { in pysqlite_cursor_executescript()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 312 !PyUnicode_Check((tobj = PyTuple_GET_ITEM(retobj, 0))) || in multibytecodec_encerror() 432 !PyUnicode_Check((retuni = PyTuple_GET_ITEM(retobj, 0))) || in multibytecodec_decerror() 558 if (PyUnicode_Check(arg)) in MultibyteCodec_Encode() 564 else if (!PyUnicode_Check(arg)) { in MultibyteCodec_Encode() 742 if (PyUnicode_Check(unistr)) in encoder_encode_stateful() 748 else if (!PyUnicode_Check(unistr)) { in encoder_encode_stateful()
|
/external/python/cpython2/Modules/_ctypes/ |
D | cfield.c | 1181 } else if (!PyUnicode_Check(value)) { in u_set() 1256 } else if (!PyUnicode_Check(value)) { in U_set() 1348 } else if (PyUnicode_Check(value)) { in z_set() 1413 } else if (!PyUnicode_Check(value)) { in Z_set() 1499 } else if (PyUnicode_Check(value)) { in BSTR_set()
|
/external/libxml2/python/ |
D | types.c | 629 #ifdef PyUnicode_Check in libxml_xmlXPathObjectPtrConvert() 630 } else if PyUnicode_Check (obj) { in libxml_xmlXPathObjectPtrConvert()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 57 (PyUnicode_Check(ob)? PyUnicode_AsUTF8(ob): PyBytes_AsString(ob)) 111 if (PySequence_Check(arg) && !(PyBytes_Check(arg) || PyUnicode_Check(arg))) { in AssignItem()
|
D | message.cc | 74 #define PyString_Check PyUnicode_Check 81 (PyUnicode_Check(ob)? PyUnicode_AsUTF8(ob): PyBytes_AsString(ob)) 83 (PyUnicode_Check(ob)? \ 658 if (!PyBytes_Check(arg) && !PyUnicode_Check(arg)) { in CheckAndGetInteger() 926 if (PyString_Check(value) || PyUnicode_Check(value)) { in CheckAndGetInteger()
|
D | descriptor_pool.cc | 49 (PyUnicode_Check(ob)? \
|
/external/python/cpython2/Include/ |
D | unicodeobject.h | 65 #define PyUnicode_Check(op) 0 macro 427 #define PyUnicode_Check(op) \ macro
|