Home
last modified time | relevance | path

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

/llvm-project-15.0.7/lldb/unittests/ScriptInterpreter/Python/
H A DPythonDataObjectsTests.cpp260 PythonString str(GetString); in TEST_F()
263 PythonString str_str = str.Str(); in TEST_F()
380 PythonString string_value("Test"); in TEST_F()
394 PythonString string_value("Test"); in TEST_F()
406 PythonString string_value("Test"); in TEST_F()
443 py_keys[0] = PythonString(key_0); in TEST_F()
480 PythonString keys[dict_entries]; in TEST_F()
483 keys[0] = PythonString(key_0); in TEST_F()
484 keys[1] = PythonString(key_1); in TEST_F()
515 dict.SetItemForKey(PythonString(string_key0), PythonString(string_value0)); in TEST_F()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp66 auto str = Take<PythonString>(str_obj); in As()
164 if (PythonString::Check(m_py_obj)) in GetObjectType()
183 return PythonString(); in Repr()
186 return PythonString(); in Repr()
192 return PythonString(); in Str()
195 return PythonString(); in Str()
246 PythonString py_attr(attr); in HasAttribute()
254 PythonString py_attr(attr); in GetAttributeValue()
376 Expected<PythonString> PythonString::FromUTF8(llvm::StringRef string) { in FromUTF8()
380 return Take<PythonString>(str); in FromUTF8()
[all …]
H A DPythonDataObjects.h68 class PythonString; variable
263 PythonString Repr() const;
265 PythonString Str() const;
435 class PythonString : public TypedPythonObject<PythonString> {
438 static llvm::Expected<PythonString> FromUTF8(llvm::StringRef string);
440 PythonString() : TypedPythonObject() {} // MSVC requires this for some reason
442 explicit PythonString(llvm::StringRef string); // safe, null on error
H A DScriptInterpreterPython.cpp292 As<PythonDictionary>(get_info(PythonString(python_dir_spec.GetPath()), in GetInterpreterInfo()
627 save_file = sys_module_dict.GetItemForKey(PythonString(py_name)); in SetStdHandle()
629 sys_module_dict.SetItemForKey(PythonString(py_name), new_file.get()); in SetStdHandle()
805 module_dict.GetItemForKey(PythonString("run_one_line")); in GetEmbeddedInterpreterModuleObjects()
807 module_dict.GetItemForKey(PythonString("g_run_one_line_str")); in GetEmbeddedInterpreterModuleObjects()
2479 if (py_return.IsAllocated() && PythonString::Check(py_return.get())) { in GetSyntheticTypeName()
2480 PythonString py_string(PyRefType::Borrowed, py_return.get()); in GetSyntheticTypeName()
2767 .GetItemForKey(PythonString(module_name)) in LoadScriptingModule()
3021 if (py_return.IsAllocated() && PythonString::Check(py_return.get())) { in GetShortHelpForCommandObject()
3022 PythonString py_string(PyRefType::Borrowed, py_return.get()); in GetShortHelpForCommandObject()
[all …]
/llvm-project-15.0.7/lldb/bindings/python/
H A Dpython-typemaps.swig17 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>();
43 PythonString s = list.GetItemAtIndex(i).AsType<PythonString>();
65 list.SetItemAtIndex(i, PythonString($1[i]));
113 PythonString string("");
118 PythonString string(ref);
144 PythonString string(ref);
155 if (PythonString::Check($input)) {
156 PythonString str(PyRefType::Borrowed, $input);
175 if (PythonString::Check($input)) {
176 PythonString str(PyRefType::Borrowed, $input);
[all …]
H A Dpython-wrapper.swig647 llvm::Expected<PythonObject> result = pfunc.Call(PythonString(child_name));
796 pfunc(debugger_arg, PythonString(args), cmd_retobj_arg.obj(), dict);
798 pfunc(debugger_arg, PythonString(args),
819 pfunc(ToSWIGWrapper(std::move(debugger)), PythonString(args),
870 PythonString str(callee_name);
888 auto result = pfunc(ToSWIGWrapper(target_sp), PythonString(setting));
/llvm-project-15.0.7/lldb/bindings/interface/
H A DSBTarget.i602 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>();