Home
last modified time | relevance | path

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

/third_party/python/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.h13 STRINGLIB(partition)(PyObject* str_obj, in STRINGLIB()
43 Py_INCREF(str_obj); in STRINGLIB()
44 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in STRINGLIB()
70 STRINGLIB(rpartition)(PyObject* str_obj, in STRINGLIB()
106 Py_INCREF(str_obj); in STRINGLIB()
107 PyTuple_SET_ITEM(out, 2, (PyObject*) str_obj); in STRINGLIB()
/third_party/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()
/third_party/node/src/
Dnode_buffer.cc575 Local<String> str_obj; in Fill() local
601 str_obj = args[1]->ToString(env->context()).ToLocalChecked(); in Fill()
607 str_length = str_obj->Utf8Length(env->isolate()); in Fill()
612 str_length = str_obj->Length() * sizeof(uint16_t); in Fill()
626 str_obj, in Fill()
/third_party/ejdb/src/jbl/tests/
Djbl_test_binn1.c625 char *str_obj = "test object"; in _test2() local
707 CU_ASSERT(binn_object_set_str(obj, "text", str_obj) == TRUE); in _test2()
888 CU_ASSERT(value.size == strlen(str_obj)); in _test2()
889 CU_ASSERT(strcmp(value.ptr, str_obj) == 0); in _test2()
979 CU_ASSERT(strcmp(pstr, str_obj) == 0); in _test2()
1035 CU_ASSERT(strcmp(pstr, str_obj) == 0); in _test2()
/third_party/python/Objects/
Dunicodeobject.c13507 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_Partition() argument
13514 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_Partition()
13517 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition()
13519 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_Partition()
13523 return PyTuple_Pack(3, str_obj, empty, empty); in PyUnicode_Partition()
13525 buf1 = PyUnicode_DATA(str_obj); in PyUnicode_Partition()
13535 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_Partition()
13536 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13538 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13541 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
[all …]