Home
last modified time | relevance | path

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

1234567891011

/aosp_15_r20/external/python/cpython3/Modules/clinic/
D_codecsmodule.c.h47 if (!PyUnicode_Check(arg)) { in _codecs_lookup()
106 if (!PyUnicode_Check(args[1])) { in _codecs_encode()
123 if (!PyUnicode_Check(args[2])) { in _codecs_encode()
183 if (!PyUnicode_Check(args[1])) { in _codecs_decode()
200 if (!PyUnicode_Check(args[2])) { in _codecs_decode()
242 if (PyUnicode_Check(args[0])) { in _codecs_escape_decode()
265 else if (PyUnicode_Check(args[1])) { in _codecs_escape_decode()
325 else if (PyUnicode_Check(args[1])) { in _codecs_escape_encode()
383 else if (PyUnicode_Check(args[1])) { in _codecs_utf_7_decode()
453 else if (PyUnicode_Check(args[1])) { in _codecs_utf_8_decode()
[all …]
Dunicodedata.c.h32 if (!PyUnicode_Check(args[0])) { in unicodedata_UCD_decimal()
81 if (!PyUnicode_Check(args[0])) { in unicodedata_UCD_digit()
131 if (!PyUnicode_Check(args[0])) { in unicodedata_UCD_numeric()
172 if (!PyUnicode_Check(arg)) { in unicodedata_UCD_category()
210 if (!PyUnicode_Check(arg)) { in unicodedata_UCD_bidirectional()
249 if (!PyUnicode_Check(arg)) { in unicodedata_UCD_combining()
293 if (!PyUnicode_Check(arg)) { in unicodedata_UCD_mirrored()
333 if (!PyUnicode_Check(arg)) { in unicodedata_UCD_east_asian_width()
371 if (!PyUnicode_Check(arg)) { in unicodedata_UCD_decomposition()
414 if (!PyUnicode_Check(args[0])) { in unicodedata_UCD_is_normalized()
[all …]
D_localemodule.c.h37 else if (PyUnicode_Check(args[1])) { in _locale_setlocale()
101 if (!PyUnicode_Check(args[0])) { in _locale_strcoll()
109 if (!PyUnicode_Check(args[1])) { in _locale_strcoll()
145 if (!PyUnicode_Check(arg)) { in _locale_strxfrm()
236 if (!PyUnicode_Check(arg)) { in _locale_gettext()
286 else if (PyUnicode_Check(args[0])) { in _locale_dgettext()
301 if (!PyUnicode_Check(args[1])) { in _locale_dgettext()
351 else if (PyUnicode_Check(args[0])) { in _locale_dcgettext()
366 if (!PyUnicode_Check(args[1])) { in _locale_dcgettext()
414 else if (PyUnicode_Check(arg)) { in _locale_textdomain()
[all …]
D_tkinter.c.h22 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_eval()
58 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_evalfile()
94 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_record()
130 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_adderrorinfo()
190 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_exprstring()
226 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_exprlong()
262 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_exprdouble()
298 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_exprboolean()
347 if (!PyUnicode_Check(args[0])) { in _tkinter_tkapp_createcommand()
384 if (!PyUnicode_Check(arg)) { in _tkinter_tkapp_deletecommand()
[all …]
Dpyexpat.c.h100 if (!PyUnicode_Check(arg)) { in pyexpat_xmlparser_SetBase()
191 else if (PyUnicode_Check(args[0])) { in pyexpat_xmlparser_ExternalEntityParserCreate()
209 if (!PyUnicode_Check(args[1])) { in pyexpat_xmlparser_ExternalEntityParserCreate()
347 else if (PyUnicode_Check(args[0])) { in pyexpat_ParserCreate()
370 else if (PyUnicode_Check(args[1])) { in pyexpat_ParserCreate()
D_pickle.c.h359 if (!PyUnicode_Check(fastargs[2])) { in _pickle_Unpickler___init__()
377 if (!PyUnicode_Check(fastargs[3])) { in _pickle_Unpickler___init__()
694 if (!PyUnicode_Check(args[2])) { in _pickle_load()
712 if (!PyUnicode_Check(args[3])) { in _pickle_load()
797 if (!PyUnicode_Check(args[2])) { in _pickle_loads()
815 if (!PyUnicode_Check(args[3])) { in _pickle_loads()
D_cryptmodule.c.h32 if (!PyUnicode_Check(args[0])) { in crypt_crypt()
45 if (!PyUnicode_Check(args[1])) { in crypt_crypt()
/aosp_15_r20/external/python/cpython3/Modules/_sqlite/clinic/
Dconnection.c.h185 if (!PyUnicode_Check(args[0])) { in blobopen()
198 if (!PyUnicode_Check(args[1])) { in blobopen()
226 if (!PyUnicode_Check(args[4])) { in blobopen()
338 if (!PyUnicode_Check(args[0])) { in pysqlite_connection_create_function()
410 if (!PyUnicode_Check(args[0])) { in create_window_function()
466 if (!PyUnicode_Check(args[0])) { in pysqlite_connection_create_aggregate()
651 if (!PyUnicode_Check(arg)) { in pysqlite_connection_load_extension()
695 if (!PyUnicode_Check(args[0])) { in pysqlite_connection_execute()
737 if (!PyUnicode_Check(args[0])) { in pysqlite_connection_executemany()
855 if (!PyUnicode_Check(args[3])) { in pysqlite_connection_backup()
[all …]
Dcursor.c.h57 if (!PyUnicode_Check(args[0])) { in pysqlite_cursor_execute()
99 if (!PyUnicode_Check(args[0])) { in pysqlite_cursor_executemany()
133 if (!PyUnicode_Check(arg)) { in pysqlite_cursor_executescript()
/aosp_15_r20/external/python/cpython3/Python/clinic/
Dimport.c.h99 if (!PyUnicode_Check(args[1])) { in _imp__fix_co_filename()
158 if (!PyUnicode_Check(arg)) { in _imp_init_frozen()
207 if (!PyUnicode_Check(args[0])) { in _imp_find_frozen()
252 if (!PyUnicode_Check(args[0])) { in _imp_get_frozen_object()
289 if (!PyUnicode_Check(arg)) { in _imp_is_frozen_package()
321 if (!PyUnicode_Check(arg)) { in _imp_is_builtin()
353 if (!PyUnicode_Check(arg)) { in _imp_is_frozen()
/aosp_15_r20/external/python/cpython3/Modules/_io/clinic/
D_iomodule.c.h158 if (!PyUnicode_Check(args[1])) { in _io_open()
188 else if (PyUnicode_Check(args[3])) { in _io_open()
211 else if (PyUnicode_Check(args[4])) { in _io_open()
234 else if (PyUnicode_Check(args[5])) { in _io_open()
345 if (!PyUnicode_Check(args[0])) { in _io_open_code()
/aosp_15_r20/external/python/cpython3/Objects/clinic/
Dunicodeobject.c.h172 if (!PyUnicode_Check(args[0])) { in unicode_encode()
189 if (!PyUnicode_Check(args[1])) { in unicode_encode()
717 if (!PyUnicode_Check(args[0])) { in unicode_replace()
725 if (!PyUnicode_Check(args[1])) { in unicode_replace()
776 if (!PyUnicode_Check(arg)) { in unicode_removeprefix()
812 if (!PyUnicode_Check(arg)) { in unicode_removesuffix()
1139 if (!PyUnicode_Check(args[1])) { in unicode_maketrans()
1150 if (!PyUnicode_Check(args[2])) { in unicode_maketrans()
1256 if (!PyUnicode_Check(arg)) { in unicode___format__()
1320 if (!PyUnicode_Check(fastargs[1])) { in unicode_new()
[all …]
Dcodeobject.c.h98 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 10))) { in code_new()
106 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 11))) { in code_new()
114 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 12))) { in code_new()
343 if (!PyUnicode_Check(args[13])) { in code_replace()
356 if (!PyUnicode_Check(args[14])) { in code_replace()
369 if (!PyUnicode_Check(args[15])) { in code_replace()
Dbytesobject.c.h652 if (!PyUnicode_Check(args[0])) { in bytes_decode()
669 if (!PyUnicode_Check(args[1])) { in bytes_decode()
753 if (!PyUnicode_Check(arg)) { in bytes_fromhex()
863 if (!PyUnicode_Check(fastargs[1])) { in bytes_new()
880 if (!PyUnicode_Check(fastargs[2])) { in bytes_new()
Dlongobject.c.h76 if (!PyUnicode_Check(arg)) { in int___format__()
293 if (!PyUnicode_Check(args[1])) { in int_to_bytes()
368 if (!PyUnicode_Check(args[1])) { in int_from_bytes()
/aosp_15_r20/external/python/cpython3/PC/clinic/
Dwinreg.c.h161 else if (PyUnicode_Check(args[0])) { in winreg_ConnectRegistry()
235 else if (PyUnicode_Check(args[1])) { in winreg_CreateKey()
365 if (!PyUnicode_Check(args[1])) { in winreg_DeleteKey()
483 else if (PyUnicode_Check(args[1])) { in winreg_DeleteValue()
624 if (!PyUnicode_Check(arg)) { in winreg_ExpandEnvironmentStrings()
736 if (!PyUnicode_Check(args[1])) { in winreg_LoadKey()
748 if (!PyUnicode_Check(args[2])) { in winreg_LoadKey()
967 else if (PyUnicode_Check(args[1])) { in winreg_QueryValue()
1030 else if (PyUnicode_Check(args[1])) { in winreg_QueryValueEx()
1095 if (!PyUnicode_Check(args[1])) { in winreg_SaveKey()
D_msi.c.h51 if (!PyUnicode_Check(args[0])) { in _msi_FCICreate()
207 if (!PyUnicode_Check(args[1])) { in _msi_Record_SetString()
256 if (!PyUnicode_Check(args[1])) { in _msi_Record_SetStream()
560 if (!PyUnicode_Check(arg)) { in _msi_Database_OpenView()
659 if (!PyUnicode_Check(args[0])) { in _msi_OpenDatabase()
/aosp_15_r20/external/python/cpython3/Objects/
Dunicodeobject.c111 # define _PyUnicode_CHECK(op) PyUnicode_Check(op)
507 CHECK(PyUnicode_Check(op)); in _PyUnicode_CheckConsistency()
905 if (!PyUnicode_Check(obj)) { in ensure_unicode()
1540 assert(PyUnicode_Check(from)); in _copy_characters()
1544 assert(PyUnicode_Check(to)); in _copy_characters()
1685 if (!PyUnicode_Check(from) || !PyUnicode_Check(to)) { in PyUnicode_CopyCharacters()
2007 assert(PyUnicode_Check(unicode)); in unicode_resize()
2050 if (unicode == NULL || !PyUnicode_Check(unicode) || length < 0) in PyUnicode_Resize()
2580 if (!PyUnicode_Check(unicode)) { in _PyUnicode_Copy()
3262 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsWideChar()
[all …]
/aosp_15_r20/external/pytorch/torch/csrc/utils/
H A Dpython_strings.h15 return PyBytes_Check(obj) || PyUnicode_Check(obj); in THPUtils_checkString()
26 if (PyUnicode_Check(obj)) { in THPUtils_unpackString()
50 if (PyUnicode_Check(obj)) { in THPUtils_unpackStringView()
/aosp_15_r20/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 …]
/aosp_15_r20/external/python/cpython3/Modules/_sqlite/
Drow.c106 if (!PyUnicode_Check(left) || !PyUnicode_Check(right)) { in equal_ignore_case()
142 } else if (PyUnicode_Check(idx)) { in pysqlite_row_subscript()
/aosp_15_r20/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()
/aosp_15_r20/external/python/cpython3/Objects/stringlib/
Deq.h9 assert(PyUnicode_Check(aa)); in unicode_eq()
10 assert(PyUnicode_Check(bb)); in unicode_eq()
/aosp_15_r20/external/python/cpython3/Modules/_io/
Dstringio.c202 assert(PyUnicode_Check(decoded)); in write_str()
413 if (line && !PyUnicode_Check(line)) { in stringio_iternext()
540 if (!PyUnicode_Check(obj)) { in _io_StringIO_write()
662 if (!PyUnicode_Check(newline_obj)) { in _io_StringIO___init___impl()
681 if (value && value != Py_None && !PyUnicode_Check(value)) { in _io_StringIO___init___impl()

1234567891011