Lines Matching +defs:string +defs:h

9 #include "lldb/Core/IOHandlerCursesGUI.h"
10 #include "lldb/Host/Config.h"
14 #include <ncurses/curses.h>
15 #include <ncurses/panel.h>
17 #include <curses.h>
18 #include <panel.h>
25 #include <string>
27 #include "lldb/Core/Debugger.h"
28 #include "lldb/Core/ValueObjectUpdater.h"
29 #include "lldb/Host/File.h"
30 #include "lldb/Utility/AnsiTerminal.h"
31 #include "lldb/Utility/Predicate.h"
32 #include "lldb/Utility/Status.h"
33 #include "lldb/Utility/StreamString.h"
34 #include "lldb/Utility/StringList.h"
35 #include "lldb/lldb-forward.h"
37 #include "lldb/Interpreter/CommandCompletions.h"
38 #include "lldb/Interpreter/CommandInterpreter.h"
39 #include "lldb/Interpreter/OptionGroupPlatform.h"
42 #include "lldb/Breakpoint/BreakpointLocation.h"
43 #include "lldb/Core/Module.h"
44 #include "lldb/Core/PluginManager.h"
45 #include "lldb/Core/ValueObject.h"
46 #include "lldb/Core/ValueObjectRegister.h"
47 #include "lldb/Symbol/Block.h"
48 #include "lldb/Symbol/CompileUnit.h"
49 #include "lldb/Symbol/Function.h"
50 #include "lldb/Symbol/Symbol.h"
51 #include "lldb/Symbol/VariableList.h"
52 #include "lldb/Target/Process.h"
53 #include "lldb/Target/RegisterContext.h"
54 #include "lldb/Target/StackFrame.h"
55 #include "lldb/Target/StopInfo.h"
56 #include "lldb/Target/Target.h"
57 #include "lldb/Target/Thread.h"
58 #include "lldb/Utility/State.h"
61 #include "llvm/ADT/StringRef.h"
64 #include "lldb/Host/windows/windows.h"
112 type summary add -s "w=${var.width}, h=${var.height}" curses::Size
147 Size(int w = 0, int h = 0) : width(w), height(h) {}
154 void Dump() { printf("(w=%i, h=%i)\n", width, height); }
179 printf("(x=%i, y=%i), w=%i, h=%i)\n", origin.x, origin.y, size.width,
183 void Inset(int w, int h) {
188 if (size.height > h * 2)
189 size.height -= h * 2;
190 origin.y += h;
489 bool OutputColoredStringTruncated(int right_pad, StringRef string,
498 while (!string.empty()) {
499 size_t esc_pos = string.find(ANSI_ESC_START);
501 string = string.substr(skip_first_count);
502 if (!string.empty()) {
503 PutCStringTruncated(right_pad, string.data(), string.size());
511 string = string.substr(skip);
516 PutCStringTruncated(right_pad, string.data(), esc_pos);
518 string = string.drop_front(esc_pos);
521 bool consumed = string.consume_front(ANSI_ESC_START);
530 if (!!string.consumeInteger(10, value) || // Returns false on success.
536 if (!string.consume_front(ANSI_ESC_END)) {
642 void Resize(int w, int h) { ::wresize(m_window, h, w); }
968 std::string m_name;
1180 // The cursor is allowed to move one character past the string.
1308 const std::string &GetError() { return m_error; }
1312 const std::string &GetText() { return m_content; }
1323 std::string m_label;
1326 std::string m_content;
1327 // The cursor position in the content string itself. Can be in the range
1333 std::string m_error;
1385 const std::string &GetPath() { return m_content; }
1428 const std::string &GetPath() { return m_content; }
1448 const std::string &GetArchString() { return m_content; }
1510 std::string m_label;
1517 std::vector<std::string> choices)
1607 // Returns the content of the choice as a string.
1608 std::string GetChoiceContent() { return m_choices[m_choice]; }
1623 std::string m_label;
1625 std::vector<std::string> m_choices;
1641 std::vector<std::string> GetPossiblePluginNames() {
1642 std::vector<std::string> names;
1651 std::string GetPluginName() {
1652 std::string plugin_name = GetChoiceContent();
1662 std::vector<std::string> GetPossiblePluginNames() {
1663 std::vector<std::string> names;
1673 std::string GetPluginName() {
1674 std::string plugin_name = GetChoiceContent();
1689 std::vector<std::string> GetPossibleOptions(const char *calculate_label) {
1690 std::vector<std::string> options;
1698 std::string choice = GetChoiceContent();
2010 std::string m_label;
2208 const std::string &GetName() { return m_content; }
2220 const std::string &GetName() { return GetKeyField().GetName(); }
2222 const std::string &GetValue() { return GetValueField().GetText(); }
2278 const std::string &GetLabel() { return m_label; }
2281 std::string m_label;
2291 virtual std::string GetName() = 0;
2311 const std::string &GetError() { return m_error; }
2387 std::vector<std::string> choices) {
2462 std::string m_error;
2881 std::string GetName() override { return "Detach/Kill Process"; }
2910 std::vector<std::string> types;
2911 types.push_back(std::string("Name"));
2912 types.push_back(std::string("PID"));
2927 std::string GetName() override { return "Attach Process"; }
2950 // Get the basename of the target's main executable if available, empty string
2952 std::string GetDefaultProcessName() {
3094 std::string GetName() override { return "Create Target"; }
3114 std::vector<std::string> GetLoadDependentFilesChoices() {
3115 std::vector<std::string> load_dependents_options;
3123 std::string choice = m_load_dependent_files_field->GetChoiceContent();
3300 std::string GetName() override { return "Launch Process"; }
3375 std::string GetDefaultWorkingDirectory() {
3655 // Get the string that will be displayed for the match at the input index.
3656 virtual const std::string &GetMatchTextAtIndex(int index) = 0;
3660 virtual void UpdateMatches(const std::string &text) = 0;
3822 // callbacks. The callbacks are only given the match string. The completion_mask
3826 typedef std::function<void(const std::string &)> CallbackType;
3835 const std::string &GetMatchTextAtIndex(int index) override {
3839 void UpdateMatches(const std::string &text) override {
3857 // the callback as a string.
3942 std::string &GetName() { return m_name; }
3953 std::string m_name;
3954 std::string m_key_name;
4042 if (pos != std::string::npos) {
4544 // "symbol" UTF8 string below
4629 std::string m_text;
4733 // "symbol" UTF8 string below
4829 const std::string &GetText() const { return m_text; }
4914 {'h', "Show help dialog"},
5001 case 'h':
5607 {'h', "Show help dialog"},
5611 {'s', "Format as C string"},
5711 case 'h':
6362 case 'h':
6378 "Each view has its own keyboard shortcuts, press 'h' to open a "
6387 {'h', "Show help dialog with view specific key bindings"},
6807 {'h', "Show help dialog"},
7453 case 'h':
7617 "Halt", nullptr, 'h', ApplicationDelegate::eMenuID_ProcessHalt)));