Home
last modified time | relevance | path

Searched refs:PythonString (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp151 dict.SetItemForKey(PythonString("sys"), m_sys_module); in TEST_F()
229 EXPECT_TRUE(PythonString::Check(py_bytes)); in TEST_F()
232 EXPECT_FALSE(PythonString::Check(py_bytes)); in TEST_F()
265 EXPECT_TRUE(PythonString::Check(py_string)); in TEST_F()
266 PythonString python_string(PyRefType::Owned, py_string); in TEST_F()
273 EXPECT_TRUE(PythonString::Check(py_unicode)); in TEST_F()
274 PythonString python_unicode(PyRefType::Owned, py_unicode); in TEST_F()
281 PythonString constructed_string(test_string2); in TEST_F()
288 PythonString str(GetString); in TEST_F()
291 PythonString str_str = str.Str(); in TEST_F()
[all …]
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp65 auto str = Take<PythonString>(str_obj); in As()
159 if (PythonString::Check(m_py_obj)) in GetObjectType()
178 PythonString PythonObject::Repr() const { in Repr()
180 return PythonString(); in Repr()
183 return PythonString(); in Repr()
184 return PythonString(PyRefType::Owned, repr); in Repr()
187 PythonString PythonObject::Str() const { in Str()
189 return PythonString(); in Str()
192 return PythonString(); in Str()
193 return PythonString(PyRefType::Owned, str); in Str()
[all …]
DPythonDataObjects.h68 class PythonString; variable
285 PythonString Repr() const;
287 PythonString Str() const;
462 class PythonString : public TypedPythonObject<PythonString> {
465 static llvm::Expected<PythonString> FromUTF8(llvm::StringRef string);
467 PythonString() : TypedPythonObject() {} // MSVC requires this for some reason
469 explicit PythonString(llvm::StringRef string); // safe, null on error
DScriptInterpreterPython.cpp689 sys_module_dict.SetItemForKey(PythonString("stdin"), m_saved_stdin); in LeaveSession()
693 sys_module_dict.SetItemForKey(PythonString("stdout"), m_saved_stdout); in LeaveSession()
697 sys_module_dict.SetItemForKey(PythonString("stderr"), m_saved_stderr); in LeaveSession()
727 save_file = sys_module_dict.GetItemForKey(PythonString(py_name)); in SetStdHandle()
729 sys_module_dict.SetItemForKey(PythonString(py_name), new_file.get()); in SetStdHandle()
905 module_dict.GetItemForKey(PythonString("run_one_line")); in GetEmbeddedInterpreterModuleObjects()
907 module_dict.GetItemForKey(PythonString("g_run_one_line_str")); in GetEmbeddedInterpreterModuleObjects()
2585 if (py_return.IsAllocated() && PythonString::Check(py_return.get())) { in GetSyntheticTypeName()
2586 PythonString py_string(PyRefType::Borrowed, py_return.get()); in GetSyntheticTypeName()
2856 .GetItemForKey(PythonString(module_name)) in LoadScriptingModule()
[all …]
/external/llvm-project/lldb/bindings/python/
Dpython-typemaps.swig17 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>();
43 PythonString s = list.GetItemAtIndex(i).AsType<PythonString>();
64 list.SetItemAtIndex(i, PythonString($1[i]));
112 PythonString string("");
117 PythonString string(ref);
143 PythonString string(ref);
154 if (PythonString::Check($input)) {
155 PythonString str(PyRefType::Borrowed, $input);
177 if (PythonString::Check($input)) {
178 PythonString str(PyRefType::Borrowed, $input);
[all …]
Dpython-wrapper.swig705 llvm::Expected<PythonObject> result = pfunc.Call(PythonString(child_name));
838 pfunc(debugger_arg, PythonString(args), cmd_retobj_arg, dict);
840 pfunc(debugger_arg, PythonString(args), exe_ctx_arg, cmd_retobj_arg, dict);
873 pfunc(debugger_arg, PythonString(args), exe_ctx_arg, cmd_retobj_arg);
950 PythonString str(callee_name);
971 auto result = pfunc(target_arg, PythonString(setting));
/external/llvm-project/lldb/bindings/interface/
DSBTarget.i608 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>();