Home
last modified time | relevance | path

Searched refs:PyUnicode_AsUTF8 (Results 1 – 25 of 53) sorted by relevance

123

/external/python/cpython3/Modules/_multiprocessing/
Dposixshmem.c45 const char *name = PyUnicode_AsUTF8(path); in _posixshmem_shm_open_impl()
84 const char *name = PyUnicode_AsUTF8(path); in _posixshmem_shm_unlink_impl()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_util.cc87 strings::StrAppend(out, PyUnicode_AsUTF8(v), "\n"); in TryAppendTraceback()
111 strings::StrAppend(&err, ": ", PyUnicode_AsUTF8(str), "\n"); in PyExceptionFetch()
/external/python/cpython3/Objects/
Dmoduleobject.c256 name = PyUnicode_AsUTF8(nameobj); in PyModule_FromDefAndSpec2()
497 return PyUnicode_AsUTF8(name); in PyModule_GetName()
530 utf8 = PyUnicode_AsUTF8(fileobj); in PyModule_GetFilename()
585 const char *s = PyUnicode_AsUTF8(key); in _PyModule_ClearDict()
606 const char *s = PyUnicode_AsUTF8(key); in _PyModule_ClearDict()
Dobject.c892 const char *name_str = PyUnicode_AsUTF8(name); in PyObject_GetAttr()
930 const char *name_str = PyUnicode_AsUTF8(name); in _PyObject_LookupAttr()
999 const char *name_str = PyUnicode_AsUTF8(name); in PyObject_SetAttr()
/external/python/cpython3/Modules/_io/
Dtextio.c708 return _PyUnicode_AsASCIIString(text, PyUnicode_AsUTF8(self->errors)); in ascii_encode()
715 PyUnicode_AsUTF8(self->errors), 1); in utf16be_encode()
722 PyUnicode_AsUTF8(self->errors), -1); in utf16le_encode()
737 PyUnicode_AsUTF8(self->errors), 0); in utf16_encode()
744 PyUnicode_AsUTF8(self->errors), 1); in utf32be_encode()
751 PyUnicode_AsUTF8(self->errors), -1); in utf32le_encode()
766 PyUnicode_AsUTF8(self->errors), 0); in utf32_encode()
772 return _PyUnicode_AsUTF8String(text, PyUnicode_AsUTF8(self->errors)); in utf8_encode()
778 return _PyUnicode_AsLatin1String(text, PyUnicode_AsUTF8(self->errors)); in latin1_encode()
1182 encoding = PyUnicode_AsUTF8(self->encoding); in _io_TextIOWrapper___init___impl()
[all …]
/external/python/cpython3/Misc/
Dgdbinit43 set $_name = PyUnicode_AsUTF8(PyTuple_GetItem($_names, $_i))
87 set $__fn = PyUnicode_AsUTF8(f->f_code->co_filename)
88 set $__n = PyUnicode_AsUTF8(f->f_code->co_name)
/external/python/cpython3/Modules/
Dsyslogmodule.c142 ident = PyUnicode_AsUTF8(S_ident_o); in syslog_openlog()
173 message = PyUnicode_AsUTF8(message_object); in syslog_syslog()
/external/tensorflow/tensorflow/python/util/
Dstack_trace.cc33 return PyUnicode_AsUTF8(o); in GetPythonString()
Dnest.cc40 std::string str = PyUnicode_AsUTF8(str_o.get()); in PyObject_ToString()
Dfunction_parameter_canonicalizer.cc28 return PyUnicode_AsUTF8(obj); in PyUnicodeAsUtf8Compat()
Dutil.cc71 key = PyUnicode_AsUTF8(name); in RegisterPyObject()
139 string s(PyUnicode_AsUTF8(str)); in PyObjectToString()
/external/python/cpython3/Python/
Dfuture.c25 const char *feature = PyUnicode_AsUTF8(name->name); in future_check_features()
Dimportdl.c159 _Py_PackageContext = PyUnicode_AsUTF8(name_unicode); in _PyImport_LoadDynamicModuleWithSpec()
Dpythonrun.c203 enc = PyUnicode_AsUTF8(oenc); in PyRun_InteractiveOneObjectEx()
214 ps1 = PyUnicode_AsUTF8(v); in PyRun_InteractiveOneObjectEx()
227 ps2 = PyUnicode_AsUTF8(w); in PyRun_InteractiveOneObjectEx()
558 const char *text = PyUnicode_AsUTF8(text_obj); in print_error_text()
Dcompile.c1879 PyUnicode_AsUTF8(name), in get_ref_type()
1880 PyUnicode_AsUTF8(c->u->u_name), in get_ref_type()
1881 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_ste->ste_id)), in get_ref_type()
1882 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_ste->ste_symbols)), in get_ref_type()
1883 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_varnames)), in get_ref_type()
1884 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_names))); in get_ref_type()
1930 PyUnicode_AsUTF8(PyObject_Repr(name)), in compiler_make_closure()
1931 PyUnicode_AsUTF8(c->u->u_name), in compiler_make_closure()
1933 PyUnicode_AsUTF8(co->co_name), in compiler_make_closure()
1934 PyUnicode_AsUTF8(PyObject_Repr(co->co_freevars))); in compiler_make_closure()
[all …]
Dbltinmodule.c2020 stdin_encoding_str = PyUnicode_AsUTF8(stdin_encoding); in builtin_input_impl()
2021 stdin_errors_str = PyUnicode_AsUTF8(stdin_errors); in builtin_input_impl()
2041 stdout_encoding_str = PyUnicode_AsUTF8(stdout_encoding); in builtin_input_impl()
2042 stdout_errors_str = PyUnicode_AsUTF8(stdout_errors); in builtin_input_impl()
Dimport.c1279 namestr = PyUnicode_AsUTF8(name); in _imp_create_builtin()
1769 PyDTrace_IMPORT_FIND_LOAD_START(PyUnicode_AsUTF8(abs_name)); in import_find_and_load()
1776 PyDTrace_IMPORT_FIND_LOAD_DONE(PyUnicode_AsUTF8(abs_name), in import_find_and_load()
1786 import_level*2, "", PyUnicode_AsUTF8(abs_name)); in import_find_and_load()
Dceval.c4971 return PyUnicode_AsUTF8(((PyFunctionObject*)func)->func_name); in PyEval_GetFuncName()
5452 obj_str = PyUnicode_AsUTF8(obj); in format_exc_check_arg()
5622 filename = PyUnicode_AsUTF8(code->co_filename); in dtrace_function_entry()
5623 funcname = PyUnicode_AsUTF8(code->co_name); in dtrace_function_entry()
5637 filename = PyUnicode_AsUTF8(code->co_filename); in dtrace_function_return()
5638 funcname = PyUnicode_AsUTF8(code->co_name); in dtrace_function_return()
5667 co_filename = PyUnicode_AsUTF8(frame->f_code->co_filename); in maybe_dtrace_line()
5670 co_name = PyUnicode_AsUTF8(frame->f_code->co_name); in maybe_dtrace_line()
Dcodecs.c1146 if (!(encoding = PyUnicode_AsUTF8(encode))) { in PyCodec_SurrogatePassErrors()
1225 if (!(encoding = PyUnicode_AsUTF8(encode))) { in PyCodec_SurrogatePassErrors()
Dsysmodule.c485 const char *event = PyUnicode_AsUTF8(auditEvent); in sys_audit()
615 stdout_encoding_str = PyUnicode_AsUTF8(stdout_encoding); in sys_displayhook_unencodable()
3302 utf8 = PyUnicode_AsUTF8(message); in sys_format()
/external/python/cpython3/Include/cpython/
Dunicodeobject.h772 PyAPI_FUNC(const char *) PyUnicode_AsUTF8(PyObject *unicode);
774 #define _PyUnicode_AsString PyUnicode_AsUTF8
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h272 enc = PyUnicode_AsUTF8(encoding); in getcodec()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c1932 switch (PyUnicode_AsUTF8(stgd->proto)[0]) { in c_void_p_from_param()
2050 fmt = PyUnicode_AsUTF8(dict->proto); in PyCSimpleType_paramfunc()
2282 fmt = PyUnicode_AsUTF8(dict->proto); in PyCSimpleType_from_param()
3439 && (strchr("PzZ", PyUnicode_AsUTF8(dict->proto)[0]))) { in _check_outarg_type()
3533 *pname = PyUnicode_AsUTF8(obj); in _get_name()
5599 && (strchr("sPzUZXO", PyUnicode_AsUTF8(dict->proto)[0]))) { in cast_check_pointertype()
/external/python/cpython3/Modules/_sqlite/
Dconnection.c508 const char *str = PyUnicode_AsUTF8(py_val); in _pysqlite_set_result()
1684 uppercase_name_str = PyUnicode_AsUTF8(uppercase_name); in pysqlite_connection_create_collation()
/external/python/cpython3/Parser/pegen/
Dpegen.c145 const char *str = PyUnicode_AsUTF8(line); in byte_offset_to_character_offset()
1371 const char *first_str = PyUnicode_AsUTF8(first_identifier); in _PyPegen_join_names_with_dot()
1375 const char *second_str = PyUnicode_AsUTF8(second_identifier); in _PyPegen_join_names_with_dot()

123