Home
last modified time | relevance | path

Searched refs:str_obj (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dsplit.h57 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 …]
Dpartition.h11 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/python/cpython3/Objects/stringlib/
Dsplit.h54 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 …]
Dpartition.h8 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/autotest/client/bin/
Dpartition_unittest.py28 str_obj = str(partition.FsOptions('abc', 'def', 'ghi', 'jkl'))
29 self.assert_('FsOptions' in str_obj)
30 self.assert_('abc' in str_obj)
31 self.assert_('def' in str_obj)
32 self.assert_('ghi' in str_obj)
33 self.assert_('jkl' in str_obj)
/external/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi_cmds.c81 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/
Dcpdf_filespec_unittest.cpp74 auto str_obj = pdfium::MakeUnique<CPDF_String>(nullptr, test_data.input); in TEST() local
75 CPDF_FileSpec file_spec(str_obj.get()); in TEST()
140 auto str_obj = pdfium::MakeUnique<CPDF_String>(nullptr, L"babababa"); in TEST() local
141 CPDF_FileSpec file_spec1(str_obj.get()); in TEST()
144 EXPECT_STREQ(test_data.expected, str_obj->GetUnicodeText().c_str()); in TEST()
/external/v8/src/
Dd8-console.cc20 Local<String> str_obj; in WriteToFile() local
23 if (!arg->ToString(isolate->GetCurrentContext()).ToLocal(&str_obj)) return; in WriteToFile()
25 v8::String::Utf8Value str(isolate, str_obj); in WriteToFile()
Dd8.cc1264 Local<String> str_obj; in WriteToFile() local
1270 .ToLocal(&str_obj)) { in WriteToFile()
1275 v8::String::Utf8Value str(args.GetIsolate(), str_obj); in WriteToFile()
/external/python/cpython2/Objects/
Dunicodeobject.c5380 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 …]
Dstringobject.c1157 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/
Dunicodeobject.c12905 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_Partition() argument
12912 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_Partition()
12915 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition()
12917 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_Partition()
12924 out = PyTuple_Pack(3, str_obj, unicode_empty, unicode_empty); in PyUnicode_Partition()
12929 buf1 = PyUnicode_DATA(str_obj); in PyUnicode_Partition()
12939 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_Partition()
12940 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
12942 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
12945 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_object_unittest.cpp722 CPDF_String* str_obj = in TEST() local
727 str_obj, name_obj, null_obj}; in TEST()