Home
last modified time | relevance | path

Searched refs:PyUnicode_Check (Results 1 – 25 of 168) sorted by relevance

1234567

/external/python/cpython3/Include/
Dunicodeobject.h362 #define PyUnicode_Check(op) \ macro
380 (assert(PyUnicode_Check(op)), \
398 (assert(PyUnicode_Check(op)), \
421 (assert(PyUnicode_Check(op)), \
457 (assert(PyUnicode_Check(op)), \
472 (assert(PyUnicode_Check(op)), \
520 (assert(PyUnicode_Check(unicode)), \
535 (assert(PyUnicode_Check(op)), \
550 (assert(PyUnicode_Check(op)), \
2317 #define _PyUnicode_CheckConsistency(op, check_content) PyUnicode_Check(op)
/external/python/cpython3/Objects/
Dmoduleobject.c498 !PyUnicode_Check(name)) in PyModule_GetNameObject()
530 !PyUnicode_Check(fileobj)) in PyModule_GetFilenameObject()
596 if (value != Py_None && PyUnicode_Check(key)) { in _PyModule_ClearDict()
615 if (value != Py_None && PyUnicode_Check(key)) { in _PyModule_ClearDict()
718 if (mod_name && PyUnicode_Check(mod_name)) { in module_getattro()
Dunicodeobject.c90 # define _PyUnicode_CHECK(op) PyUnicode_Check(op)
414 assert(PyUnicode_Check(op)); in _PyUnicode_CheckConsistency()
814 if (!PyUnicode_Check(obj)) { in ensure_unicode()
1437 assert(PyUnicode_Check(from)); in _copy_characters()
1441 assert(PyUnicode_Check(to)); in _copy_characters()
1582 if (!PyUnicode_Check(from) || !PyUnicode_Check(to)) { in PyUnicode_CopyCharacters()
1884 assert(PyUnicode_Check(unicode)); in unicode_resize()
1929 if (unicode == NULL || !PyUnicode_Check(unicode) || length < 0) in PyUnicode_Resize()
2385 if (!PyUnicode_Check(unicode)) { in _PyUnicode_Copy()
3068 if (PyUnicode_Check(obj)) { in PyUnicode_FromObject()
[all …]
Dobject.c376 else if (PyUnicode_Check(s)) { in PyObject_Print()
514 if (!PyUnicode_Check(res)) { in PyObject_Repr()
568 if (!PyUnicode_Check(res)) { in PyObject_Str()
905 if (!PyUnicode_Check(name)) { in PyObject_GetAttr()
930 if (!PyUnicode_Check(name)) { in _PyObject_LookupAttr()
1006 if (!PyUnicode_Check(name)) { in PyObject_SetAttr()
1136 || !PyUnicode_Check(name)) { in _PyObject_GetMethod()
1215 if (!PyUnicode_Check(name)){ in _PyObject_GenericGetAttrWithDict()
1319 if (!PyUnicode_Check(name)){ in _PyObject_GenericSetAttrWithDict()
/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.c149 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/python/cpython3/Doc/includes/
Dcustom3.c87 if (!PyUnicode_Check(value)) { in Custom_setfirst()
114 if (!PyUnicode_Check(value)) { in Custom_setlast()
Dcustom4.c102 if (!PyUnicode_Check(value)) { in Custom_setfirst()
127 if (!PyUnicode_Check(value)) { in Custom_setlast()
/external/libchrome/third_party/markupsafe/
D_speedups.c141 if (!PyUnicode_Check(text)) { in escape()
174 if (!PyUnicode_Check(s)) in soft_unicode()
/external/python/cpython2/Objects/
Dstringobject.c474 if (PyUnicode_Check(v)) { in PyString_AsDecodedString()
554 if (PyUnicode_Check(v)) { in PyString_AsEncodedString()
816 if (PyUnicode_Check(obj)) { in PyString_AsStringAndSize()
1028 if (PyUnicode_Check(bb)) in string_concat()
1161 if (PyUnicode_Check(sub_obj)) in string_contains()
1477 else if (PyUnicode_Check(subobj)) in string_split()
1504 else if (PyUnicode_Check(sep_obj)) in string_partition()
1535 else if (PyUnicode_Check(sep_obj)) in string_rpartition()
1576 else if (PyUnicode_Check(subobj)) in string_rsplit()
1634 if (PyUnicode_Check(item)) { in string_join()
[all …]
Dunicodeobject.c424 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 …]
/external/python/cpython3/Modules/_io/
Dstringio.c201 assert(PyUnicode_Check(decoded)); in write_str()
412 if (line && !PyUnicode_Check(line)) { in stringio_iternext()
539 if (!PyUnicode_Check(obj)) { in _io_StringIO_write()
661 if (!PyUnicode_Check(newline_obj)) { in _io_StringIO___init___impl()
680 if (value && value != Py_None && !PyUnicode_Check(value)) { in _io_StringIO___init___impl()
/external/python/cpython3/Python/
Dtraceback.c325 if (!PyUnicode_Check(v)) in _Py_FindSourceFile()
448 if (!lineobj || !PyUnicode_Check(lineobj)) { in _Py_DisplaySourceLine()
680 if (!PyUnicode_Check(text)) in _Py_DumpASCII()
752 && PyUnicode_Check(code->co_filename)) in dump_frame()
773 && PyUnicode_Check(code->co_name)) { in dump_frame()
Dbltinmodule.c147 if (!PyUnicode_Check(name)) { in builtin___build_class__()
731 if (PyUnicode_Check(cmd)) { in source_as_string()
1115 if (!PyUnicode_Check(name)) { in builtin_getattr()
1179 if (!PyUnicode_Check(name)) { in builtin_hasattr_impl()
1795 else if (PyUnicode_Check(c)) { in builtin_ord()
1879 else if (sep && !PyUnicode_Check(sep)) { in builtin_print()
1888 else if (end && !PyUnicode_Check(end)) { in builtin_print()
2040 !PyUnicode_Check(stdin_encoding) || in builtin_input_impl()
2041 !PyUnicode_Check(stdin_errors)) { in builtin_input_impl()
2061 !PyUnicode_Check(stdout_encoding) || in builtin_input_impl()
[all …]
Dgetargs.c905 if (!PyUnicode_Check(arg)) in convertsimple()
975 else if (PyUnicode_Check(arg)) { in convertsimple()
1003 else if (PyUnicode_Check(arg)) { in convertsimple()
1029 else if (PyUnicode_Check(arg)) { in convertsimple()
1060 else if (PyUnicode_Check(arg)) { in convertsimple()
1075 else if (PyUnicode_Check(arg)) { in convertsimple()
1136 else if (PyUnicode_Check(arg)) { in convertsimple()
1270 if (PyUnicode_Check(arg)) { in convertsimple()
1836 if (!PyUnicode_Check(key)) { in vgetargskeywords()
2008 if (!PyUnicode_Check(kwname)) { in find_keyword()
[all …]
/external/python/cpython2/Modules/
D_localemodule.c296 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()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c87 assert(PyUnicode_Check(errors)); in call_error_callback()
140 if (!PyUnicode_Check(value)) { in codecctx_errors_set()
304 (!PyUnicode_Check((tobj = PyTuple_GET_ITEM(retobj, 0))) && !PyBytes_Check(tobj)) || in multibytecodec_encerror()
312 if (PyUnicode_Check(tobj)) { in multibytecodec_encerror()
430 !PyUnicode_Check((retuni = PyTuple_GET_ITEM(retobj, 0))) || in multibytecodec_decerror()
571 if (PyUnicode_Check(input)) in _multibytecodec_MultibyteCodec_encode_impl()
577 else if (!PyUnicode_Check(input)) { in _multibytecodec_MultibyteCodec_encode_impl()
756 if (PyUnicode_Check(unistr)) in encoder_encode_stateful()
762 else if (!PyUnicode_Check(unistr)) { in encoder_encode_stateful()
/external/python/cpython2/Python/
Dgetargs.c861 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()
/external/python/cpython3/Objects/stringlib/
Ducs2lib.h22 #define STRINGLIB_CHECK PyUnicode_Check
Ducs4lib.h22 #define STRINGLIB_CHECK PyUnicode_Check
Ducs1lib.h22 #define STRINGLIB_CHECK PyUnicode_Check
Dunicodedefs.h24 #define STRINGLIB_CHECK PyUnicode_Check
Dasciilib.h22 #define STRINGLIB_CHECK PyUnicode_Check
/external/python/cpython2/Objects/stringlib/
Dunicodedefs.h25 #define STRINGLIB_CHECK PyUnicode_Check
/external/python/cpython2/Modules/_io/
Dstringio.c134 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/cpython3/Modules/
Dhashlib.h9 if (PyUnicode_Check((obj))) { \

1234567