/external/python/cpython3/Objects/stringlib/ |
D | split.h | 54 STRINGLIB(split_whitespace)(PyObject* str_obj, in STRINGLIB() 74 if (j == 0 && i == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in STRINGLIB() 76 Py_INCREF(str_obj); in STRINGLIB() 77 PyList_SET_ITEM(list, 0, (PyObject *)str_obj); in STRINGLIB() 102 STRINGLIB(split_char)(PyObject* str_obj, in STRINGLIB() 126 if (count == 0 && STRINGLIB_CHECK_EXACT(str_obj)) { in STRINGLIB() 128 Py_INCREF(str_obj); in STRINGLIB() 129 PyList_SET_ITEM(list, 0, (PyObject *)str_obj); in STRINGLIB() 145 STRINGLIB(split)(PyObject* str_obj, in STRINGLIB() 158 return STRINGLIB(split_char)(str_obj, str, str_len, sep[0], maxcount); in STRINGLIB() [all …]
|
D | partition.h | 8 STRINGLIB(partition)(PyObject* str_obj, in STRINGLIB() 38 Py_INCREF(str_obj); in STRINGLIB() 39 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in STRINGLIB() 63 STRINGLIB(rpartition)(PyObject* str_obj, in STRINGLIB() 97 Py_INCREF(str_obj); in STRINGLIB() 98 PyTuple_SET_ITEM(out, 2, (PyObject*) str_obj); in STRINGLIB()
|
/external/python/cpython2/Objects/stringlib/ |
D | split.h | 57 stringlib_split_whitespace(PyObject* str_obj, in stringlib_split_whitespace() argument 77 if (j == 0 && i == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in stringlib_split_whitespace() 79 Py_INCREF(str_obj); in stringlib_split_whitespace() 80 PyList_SET_ITEM(list, 0, (PyObject *)str_obj); in stringlib_split_whitespace() 105 stringlib_split_char(PyObject* str_obj, in stringlib_split_char() argument 129 if (count == 0 && STRINGLIB_CHECK_EXACT(str_obj)) { in stringlib_split_char() 131 Py_INCREF(str_obj); in stringlib_split_char() 132 PyList_SET_ITEM(list, 0, (PyObject *)str_obj); in stringlib_split_char() 148 stringlib_split(PyObject* str_obj, in stringlib_split() argument 161 return stringlib_split_char(str_obj, str, str_len, sep[0], maxcount); in stringlib_split() [all …]
|
D | partition.h | 11 stringlib_partition(PyObject* str_obj, in stringlib_partition() argument 36 Py_INCREF(str_obj); in stringlib_partition() 37 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in stringlib_partition() 61 stringlib_rpartition(PyObject* str_obj, in stringlib_rpartition() argument 90 Py_INCREF(str_obj); in stringlib_rpartition() 91 PyTuple_SET_ITEM(out, 2, (PyObject*) str_obj); in stringlib_rpartition()
|
/external/autotest/client/bin/ |
D | partition_unittest.py | 33 str_obj = str(partition.FsOptions('abc', 'def', 'ghi', 'jkl')) 34 self.assert_('FsOptions' in str_obj) 35 self.assert_('abc' in str_obj) 36 self.assert_('def' in str_obj) 37 self.assert_('ghi' in str_obj) 38 self.assert_('jkl' in str_obj)
|
/external/ltp/testcases/kernel/device-drivers/acpi/ |
D | ltp_acpi_cmds.c | 81 union acpi_object *str_obj; in get_str_object() local 91 str_obj = buffer.pointer; in get_str_object() 93 buf = kmalloc(str_obj->buffer.length / 2, GFP_KERNEL); in get_str_object() 95 kfree(str_obj); in get_str_object() 99 res = utf16s_to_utf8s((wchar_t *)str_obj->buffer.pointer, in get_str_object() 100 str_obj->buffer.length, UTF16_LITTLE_ENDIAN, buf, in get_str_object() 101 str_obj->buffer.length / 2); in get_str_object() 107 kfree(str_obj); in get_str_object()
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_filespec_unittest.cpp | 76 auto str_obj = pdfium::MakeRetain<CPDF_String>(nullptr, test_data.input); in TEST() local 77 CPDF_FileSpec file_spec(str_obj.Get()); in TEST() 153 auto str_obj = pdfium::MakeRetain<CPDF_String>(nullptr, L"babababa"); in TEST() local 154 CPDF_FileSpec file_spec1(str_obj.Get()); in TEST() 157 EXPECT_STREQ(test_data.expected, str_obj->GetUnicodeText().c_str()); in TEST()
|
/external/python/cpython2/Objects/ |
D | unicodeobject.c | 5380 PyUnicodeObject* str_obj; in PyUnicode_Count() local 5383 str_obj = (PyUnicodeObject*) PyUnicode_FromObject(str); in PyUnicode_Count() 5384 if (!str_obj) in PyUnicode_Count() 5388 Py_DECREF(str_obj); in PyUnicode_Count() 5392 ADJUST_INDICES(start, end, str_obj->length); in PyUnicode_Count() 5394 str_obj->str + start, end - start, sub_obj->str, sub_obj->length, in PyUnicode_Count() 5399 Py_DECREF(str_obj); in PyUnicode_Count() 7503 PyObject* str_obj; in PyUnicode_Partition() local 7507 str_obj = PyUnicode_FromObject(str_in); in PyUnicode_Partition() 7508 if (!str_obj) in PyUnicode_Partition() [all …]
|
D | stringobject.c | 1157 string_contains(PyObject *str_obj, PyObject *sub_obj) in string_contains() argument 1162 return PyUnicode_Contains(str_obj, sub_obj); in string_contains() 1172 return stringlib_contains_obj(str_obj, sub_obj); in string_contains()
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 13235 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_Partition() argument 13242 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_Partition() 13245 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition() 13247 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_Partition() 13254 out = PyTuple_Pack(3, str_obj, unicode_empty, unicode_empty); in PyUnicode_Partition() 13259 buf1 = PyUnicode_DATA(str_obj); in PyUnicode_Partition() 13269 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_Partition() 13270 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition() 13272 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition() 13275 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition() [all …]
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_object_unittest.cpp | 740 auto str_obj = in TEST() local 745 str_obj, name_obj, null_obj}; in TEST()
|
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
D | PythonDataObjects.cpp | 62 PyObject *str_obj = PyObject_Str(obj.get().get()); in As() local 65 auto str = Take<PythonString>(str_obj); in As()
|