aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2021-06-24 11:06:42 +0300
committerMartin Storsjö <martin@martin.st>2021-06-25 00:22:01 +0300
commite50f9c419a84d1e58c38aa660c445395ad8056e6 (patch)
tree72909edae0f294900d1f18af4d33d0c930df9de0 /lldb/source/Interpreter/CommandObject.cpp
parent3c6f8ca7c9ac99f1606fd0fdd21487675bf3f715 (diff)
downloadllvm-e50f9c419a84d1e58c38aa660c445395ad8056e6.zip
llvm-e50f9c419a84d1e58c38aa660c445395ad8056e6.tar.gz
llvm-e50f9c419a84d1e58c38aa660c445395ad8056e6.tar.bz2
[lldb] Rename StringRef _lower() method calls to _insensitive()
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 5fa8468..a7dcd56 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -316,11 +316,11 @@ bool CommandObject::HelpTextContainsWord(llvm::StringRef search_word,
llvm::StringRef long_help = GetHelpLong();
llvm::StringRef syntax_help = GetSyntax();
- if (search_short_help && short_help.contains_lower(search_word))
+ if (search_short_help && short_help.contains_insensitive(search_word))
found_word = true;
- else if (search_long_help && long_help.contains_lower(search_word))
+ else if (search_long_help && long_help.contains_insensitive(search_word))
found_word = true;
- else if (search_syntax && syntax_help.contains_lower(search_word))
+ else if (search_syntax && syntax_help.contains_insensitive(search_word))
found_word = true;
if (!found_word && search_options && GetOptions() != nullptr) {
@@ -330,7 +330,7 @@ bool CommandObject::HelpTextContainsWord(llvm::StringRef search_word,
GetCommandInterpreter().GetDebugger().GetTerminalWidth());
if (!usage_help.Empty()) {
llvm::StringRef usage_text = usage_help.GetString();
- if (usage_text.contains_lower(search_word))
+ if (usage_text.contains_insensitive(search_word))
found_word = true;
}
}