/third_party/python/Objects/stringlib/ |
H A D | split.h | 54 STRINGLIB(split_whitespace)(PyObject* str_obj, in split_whitespace() argument 74 if (j == 0 && i == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in split_whitespace() 75 /* No whitespace in str_obj, so just use it as list[0] */ in split_whitespace() 76 Py_INCREF(str_obj); in split_whitespace() 77 PyList_SET_ITEM(list, 0, (PyObject *)str_obj); in split_whitespace() 102 STRINGLIB(split_char)(PyObject* str_obj, in split_char() argument 126 if (count == 0 && STRINGLIB_CHECK_EXACT(str_obj)) { in split_char() 127 /* ch not in str_obj, so just use str_obj as list[0] */ in split_char() 128 Py_INCREF(str_obj); in split_char() 145 split(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, Py_ssize_t maxcount) split() argument 193 rsplit_whitespace(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, Py_ssize_t maxcount) rsplit_whitespace() argument 243 rsplit_char(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR ch, Py_ssize_t maxcount) rsplit_char() argument 287 rsplit(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, Py_ssize_t maxcount) rsplit() argument 336 splitlines(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, int keepends) splitlines() argument [all...] |
H A D | partition.h | 13 STRINGLIB(partition)(PyObject* str_obj, in partition() argument 43 Py_INCREF(str_obj); in partition() 44 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in partition() 70 STRINGLIB(rpartition)(PyObject* str_obj, in rpartition() argument 106 Py_INCREF(str_obj); in rpartition() 107 PyTuple_SET_ITEM(out, 2, (PyObject*) str_obj); in rpartition()
|
/third_party/ltp/testcases/kernel/device-drivers/acpi/ |
H A 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()
|
/third_party/node/deps/v8/src/d8/ |
H A D | d8-console.cc | 20 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()
|
H A D | d8.cc | 2271 Local<String> str_obj; in WriteToFile() local 2277 .ToLocal(&str_obj)) { in WriteToFile() 2282 v8::String::Utf8Value str(args.GetIsolate(), str_obj); in WriteToFile()
|
/third_party/node/src/ |
H A D | node_buffer.cc | 676 Local<String> str_obj; in Fill() local 702 str_obj = args[1]->ToString(env->context()).ToLocalChecked(); in Fill() 708 str_length = str_obj->Utf8Length(env->isolate()); in Fill() 713 str_length = str_obj->Length() * sizeof(uint16_t); in Fill() 725 env->isolate(), ts_obj_data + start, fill_length, str_obj, enc); in Fill()
|
/third_party/python/Objects/ |
H A D | unicodeobject.c | 13192 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_Partition() argument 13199 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_Partition() 13202 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition() 13204 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_Partition() 13208 return PyTuple_Pack(3, str_obj, empty, empty); in PyUnicode_Partition() 13210 buf1 = PyUnicode_DATA(str_obj); in PyUnicode_Partition() 13220 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_Partition() 13221 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition() 13223 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition() 13226 out = ucs2lib_partition(str_obj, buf in PyUnicode_Partition() 13244 PyUnicode_RPartition(PyObject *str_obj, PyObject *sep_obj) PyUnicode_RPartition() argument [all...] |