Searched refs:PythonString (Results 1 – 8 of 8) sorted by relevance
/llvm-project/lldb/unittests/ScriptInterpreter/Python/ |
H A D | PythonDataObjectsTests.cpp | 161 dict.SetItemForKey(PythonString("sys"), m_sys_module); in TEST_F() 226 EXPECT_FALSE(PythonString::Check(py_bytes)); in TEST_F() 249 // Test that strings behave correctly when wrapped by a PythonString. in TEST_F() 254 // Verify that `PythonString` works correctly when given a PyUnicode object. in TEST_F() 256 EXPECT_TRUE(PythonString::Check(py_unicode)); in TEST_F() 257 PythonString python_unicode(PyRefType::Owned, py_unicode); in TEST_F() 261 // Test that creating a `PythonString` object works correctly with the in TEST_F() 263 PythonString constructed_string(test_string2); in TEST_F() 270 PythonString str(GetString); in TEST_F() 273 PythonString str_st in TEST_F() [all...] |
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
H A D | PythonDataObjects.cpp | 66 auto str = Take<PythonString>(str_obj); in As() 165 if (PythonString::Check(m_py_obj)) in GetObjectType() 182 PythonString PythonObject::Repr() const { in GetObjectType() 184 return PythonString(); in Repr() 187 return PythonString(); in Repr() 188 return PythonString(PyRefType::Owned, repr); in Repr() 191 PythonString PythonObject::Str() const { in Repr() 193 return PythonString(); in Str() 196 return PythonString(); in Str() 197 return PythonString(PyRefTyp in Str() 392 PythonString::PythonString(llvm::StringRef string) { SetString(string); } PythonString() function in PythonString [all...] |
H A D | PythonDataObjects.h | 68 class PythonString; variable 278 PythonString Repr() const; 280 PythonString Str() const; 459 class PythonString : public TypedPythonObject<PythonString> { 462 static llvm::Expected<PythonString> FromUTF8(llvm::StringRef string); 464 PythonString() : TypedPythonObject() {} // MSVC requires this for some reason 466 explicit PythonString(llvm::StringRef string); // safe, null on error
|
H A D | ScriptInterpreterPython.cpp | 294 As<PythonDictionary>(get_info(PythonString(python_dir_spec.GetPath()), 295 PythonString(python_exe_relative_path)))); 587 sys_module_dict.SetItemForKey(PythonString("stdin"), m_saved_stdin); in CreateInstance() 591 sys_module_dict.SetItemForKey(PythonString("stdout"), m_saved_stdout); in LeaveSession() 595 sys_module_dict.SetItemForKey(PythonString("stderr"), m_saved_stderr); in LeaveSession() 625 save_file = sys_module_dict.GetItemForKey(PythonString(py_name)); in SetStdHandle() 627 sys_module_dict.SetItemForKey(PythonString(py_name), new_file.get()); in SetStdHandle() 801 module_dict.GetItemForKey(PythonString("run_one_line")); in GenerateUniqueName() 803 module_dict.GetItemForKey(PythonString("g_run_one_line_str")); in GenerateUniqueName() 2167 if (!py_return.IsAllocated() || !PythonString in GetSyntheticValue() [all...] |
/llvm-project/lldb/bindings/python/ |
H A D | python-typemaps.swig | 23 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>(); 48 PythonString s = list.GetItemAtIndex(i).AsType<PythonString>(); 151 list.SetItemAtIndex(i, PythonString($1[i])); 199 PythonString string(""); 204 PythonString string(ref); 230 PythonString string(ref); 241 if (PythonString::Check($input)) { 242 PythonString str(PyRefType::Borrowed, $input); 262 if (PythonString::Check($input)) { 263 PythonString str(PyRefType::Borrowed, $input); [all …]
|
H A D | python-wrapper.swig | 397 llvm::Expected<PythonObject> result = pfunc.Call(PythonString(child_name)); 619 pfunc(debugger_arg, PythonString(args), cmd_retobj_arg.obj(), dict); 621 pfunc(debugger_arg, PythonString(args), 642 pfunc(SWIGBridge::ToSWIGWrapper(std::move(debugger)), PythonString(args), 659 PythonString command_str(command); 684 args_list.AppendItem(PythonString(elem)); 714 PythonObject result = pfunc(PythonString(long_option), PythonInteger(pos_in_arg)); 811 PythonString str(callee_name); 823 PythonString str(callee_name); 845 auto result = pfunc(SWIGBridge::ToSWIGWrapper(target_sp), PythonString(settin [all...] |
/llvm-project/lldb/bindings/interface/ |
H A D | SBTargetExtensions.i | 11 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>();
|
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ |
H A D | ScriptedPythonInterface.h | 229 PythonString obj_class_name = in ExtractValueFromPythonObject() 230 obj_class.GetAttributeValue("__name__").AsType<PythonString>();
|