summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/StringExtractor.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-04-07 00:42:53 +0000
committerGreg Clayton <gclayton@apple.com>2012-04-07 00:42:53 +0000
commit7b70be397031a9d4a9686fa3f2b8823f8ab92faf (patch)
tree995ff547a15dd0631dadf87a773c24c3f6b687e1 /lldb/source/Utility/StringExtractor.h
parent0235f684f018b54360641cb504980b724d146b7a (diff)
downloadbcm5719-llvm-7b70be397031a9d4a9686fa3f2b8823f8ab92faf.tar.gz
bcm5719-llvm-7b70be397031a9d4a9686fa3f2b8823f8ab92faf.zip
Removed redundant isxdigit checks and added the ability to GetHexU8() so it can extract an 8 bit hex value if one is available. It will set EOF if "set_eof_on_fail" is true or if out of data. This allows a string decoder to grab a string without losing the last part of the packet with a packet like "414243,abc" (it can extract "ABC" and leave the file position set to the comma).
llvm-svn: 154239
Diffstat (limited to 'lldb/source/Utility/StringExtractor.h')
-rw-r--r--lldb/source/Utility/StringExtractor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/StringExtractor.h b/lldb/source/Utility/StringExtractor.h
index e58eae19707..520119c7d93 100644
--- a/lldb/source/Utility/StringExtractor.h
+++ b/lldb/source/Utility/StringExtractor.h
@@ -93,7 +93,7 @@ public:
GetHexS8 (int8_t fail_value = 0);
uint8_t
- GetHexU8 (uint8_t fail_value = 0);
+ GetHexU8 (uint8_t fail_value = 0, bool set_eof_on_fail = true);
bool
GetNameColonValue (std::string &name, std::string &value);
OpenPOWER on IntegriCloud