summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/StringExtractor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Utility/StringExtractor.h')
-rw-r--r--lldb/source/Utility/StringExtractor.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Utility/StringExtractor.h b/lldb/source/Utility/StringExtractor.h
index 49dfe99bd35..0f2dbb166be 100644
--- a/lldb/source/Utility/StringExtractor.h
+++ b/lldb/source/Utility/StringExtractor.h
@@ -67,6 +67,9 @@ public:
m_index = 0;
}
+ void
+ SkipSpaces ();
+
std::string &
GetStringRef ()
{
@@ -96,6 +99,15 @@ public:
char
GetChar (char fail_value = '\0');
+ char
+ PeekChar (char fail_value = '\0')
+ {
+ const char *cstr = Peek();
+ if (cstr)
+ return cstr[0];
+ return fail_value;
+ }
+
int
DecodeHexU8();
OpenPOWER on IntegriCloud