Lines Matching refs:PyUnicode_Check
90 # 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()
3102 if (PyUnicode_Check(obj)) { in PyUnicode_FromEncodedObject()
3240 if (!PyUnicode_Check(unicode)) { in PyUnicode_Decode()
3262 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsDecodedObject()
3286 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsDecodedUnicode()
3303 if (!PyUnicode_Check(v)) { in PyUnicode_AsDecodedUnicode()
3341 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsEncodedObject()
3479 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsEncodedString()
3574 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsEncodedUnicode()
3591 if (!PyUnicode_Check(v)) { in PyUnicode_AsEncodedUnicode()
3762 if (PyUnicode_Check(path)) { in PyUnicode_FSDecoder()
3818 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsUTF8AndSize()
3868 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsUnicodeAndSize()
3995 if (!PyUnicode_Check(unicode)) { in PyUnicode_GetSize()
4012 if (!PyUnicode_Check(unicode)) { in PyUnicode_GetLength()
4027 if (!PyUnicode_Check(unicode)) { in PyUnicode_ReadChar()
4046 if (!PyUnicode_Check(unicode) || !PyUnicode_IS_COMPACT(unicode)) { in PyUnicode_WriteChar()
5181 if (!PyUnicode_Check(unicode)) { in _PyUnicode_AsUTF8String()
5409 if (!PyUnicode_Check(str)) { in _PyUnicode_EncodeUTF32()
5480 assert(PyUnicode_Check(rep)); in _PyUnicode_EncodeUTF32()
5744 if (!PyUnicode_Check(str)) { in _PyUnicode_EncodeUTF16()
5832 assert(PyUnicode_Check(rep)); in _PyUnicode_EncodeUTF16()
6179 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsUnicodeEscapeString()
6425 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsRawUnicodeEscapeString()
6706 if (!PyUnicode_Check(resunicode) && !PyBytes_Check(resunicode)) { in unicode_encode_call_errorhandler()
6850 assert(PyUnicode_Check(rep)); in unicode_encode_ucs1()
6912 if (!PyUnicode_Check(unicode)) { in _PyUnicode_AsLatin1String()
7053 if (!PyUnicode_Check(unicode)) { in _PyUnicode_AsASCIIString()
7712 if (!PyUnicode_Check(unicode)) { in encode_code_page()
7970 else if (PyUnicode_Check(item)) { in charmap_decode_mapping()
8143 if (!PyUnicode_Check(string) || !PyUnicode_GET_LENGTH(string)) { in PyUnicode_BuildEncodingMap()
8629 if (!PyUnicode_Check(unicode) || mapping == NULL) { in PyUnicode_AsCharmapString()
8755 else if (PyUnicode_Check(x)) { in charmaptranslate_lookup()
8805 if (!PyUnicode_Check(item)) { in charmaptranslate_output()
8850 else if (PyUnicode_Check(item)) { in unicode_fast_translate_lookup()
9078 if (!PyUnicode_Check(unicode)) { in _PyUnicode_TransformDecimalAndSpaceToASCII()
9958 if (!PyUnicode_Check(separator)) { in _PyUnicode_JoinArray()
9991 if (!PyUnicode_Check(item)) { in _PyUnicode_JoinArray()
10108 if (!PyUnicode_Check(unicode)) { in PyUnicode_Fill()
10783 if (!PyUnicode_Check(obj)) { in convert_uc()
10973 if (PyUnicode_Check(left) && PyUnicode_Check(right)) { in PyUnicode_Compare()
11142 if (!PyUnicode_Check(left) || !PyUnicode_Check(right)) in PyUnicode_RichCompare()
11190 if (!PyUnicode_Check(substr)) { in PyUnicode_Contains()
11254 if (!PyUnicode_Check(right)) { in PyUnicode_Concat()
11306 || !PyUnicode_Check(left) || !PyUnicode_Check(right)) { in PyUnicode_Append()
11618 if (!PyUnicode_Check(self)) { in unicode_getitem()
12435 if (PyUnicode_Check(sep)) in do_argstrip()
12895 if (PyUnicode_Check(sep)) in unicode_split_impl()
13083 if (PyUnicode_Check(sep)) in unicode_rsplit_impl()
13171 if (!PyUnicode_Check(x)) { in unicode_maketrans_impl()
13227 if (PyUnicode_Check(key)) { in unicode_maketrans_impl()
13380 if (!PyUnicode_Check(substring)) { in unicode_startswith()
13397 if (!PyUnicode_Check(subobj)) { in unicode_startswith()
13434 if (!PyUnicode_Check(substring)) { in unicode_endswith()
13450 if (!PyUnicode_Check(subobj)) { in unicode_endswith()
13941 if (!PyUnicode_Check(v)) in unicode_mod()
14259 if (!PyUnicode_Check(result) in _PyUnicode_FormatLong()
14381 if (PyUnicode_Check(v)) { in formatchar()
14714 assert (PyUnicode_Check(*p_str)); in unicode_format_arg_format()
14951 if (PyMapping_Check(args) && !PyTuple_Check(args) && !PyUnicode_Check(args)) in PyUnicode_Format()
15256 if (s == NULL || !PyUnicode_Check(s)) in PyUnicode_InternInPlace()
15507 if (!PyUnicode_Check(seq)) { in unicode_iter()
15617 if (!PyUnicode_Check(unicode)) { in PyUnicode_AsUnicodeCopy()