LLDB mainline
|
#include <StringLexer.h>
Public Types | |
typedef std::string::size_type | Position |
typedef std::string::size_type | Size |
typedef std::string::value_type | Character |
Public Member Functions | |
StringLexer (std::string s) | |
Character | Peek () |
bool | NextIf (Character c) |
std::pair< bool, Character > | NextIf (std::initializer_list< Character > cs) |
bool | AdvanceIf (const std::string &token) |
Character | Next () |
bool | HasAtLeast (Size s) |
std::string | GetUnlexed () |
void | PutBack (Size s) |
StringLexer & | operator= (const StringLexer &rhs) |
Private Member Functions | |
void | Consume () |
Private Attributes | |
std::string | m_data |
Position | m_position |
Definition at line 18 of file StringLexer.h.
typedef std::string::value_type lldb_private::StringLexer::Character |
Definition at line 23 of file StringLexer.h.
typedef std::string::size_type lldb_private::StringLexer::Position |
Definition at line 20 of file StringLexer.h.
typedef std::string::size_type lldb_private::StringLexer::Size |
Definition at line 21 of file StringLexer.h.
StringLexer::StringLexer | ( | std::string | s | ) |
Definition at line 17 of file StringLexer.cpp.
bool StringLexer::AdvanceIf | ( | const std::string & | token | ) |
Definition at line 42 of file StringLexer.cpp.
References m_position, and NextIf().
Referenced by lldb_private::TypeMatcher::StripTypeName().
|
private |
std::string StringLexer::GetUnlexed | ( | ) |
Definition at line 73 of file StringLexer.cpp.
References m_data, and m_position.
Referenced by lldb_private::TypeMatcher::StripTypeName().
bool StringLexer::HasAtLeast | ( | Size | s | ) |
Definition at line 64 of file StringLexer.cpp.
References m_data, and m_position.
Referenced by lldb_private::AppleObjCTypeEncodingParser::BuildAggregate(), lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType(), lldb_private::AppleObjCTypeEncodingParser::BuildType(), lldb_private::AppleObjCTypeEncodingParser::ReadNumber(), lldb_private::AppleObjCTypeEncodingParser::ReadQuotedString(), and lldb_private::AppleObjCTypeEncodingParser::ReadStructName().
StringLexer::Character StringLexer::Next | ( | ) |
Definition at line 58 of file StringLexer.cpp.
References Consume(), and Peek().
Referenced by lldb_private::AppleObjCTypeEncodingParser::BuildType(), NextIf(), lldb_private::AppleObjCTypeEncodingParser::ReadNumber(), lldb_private::AppleObjCTypeEncodingParser::ReadQuotedString(), and lldb_private::AppleObjCTypeEncodingParser::ReadStructName().
bool StringLexer::NextIf | ( | Character | c | ) |
Definition at line 21 of file StringLexer.cpp.
References Next(), and Peek().
Referenced by AdvanceIf(), lldb_private::AppleObjCTypeEncodingParser::BuildAggregate(), lldb_private::AppleObjCTypeEncodingParser::BuildArray(), lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType(), lldb_private::AppleObjCTypeEncodingParser::BuildType(), lldb_private::AppleObjCTypeEncodingParser::ReadStructElement(), and lldb_private::TypeMatcher::StripTypeName().
std::pair< bool, StringLexer::Character > StringLexer::NextIf | ( | std::initializer_list< Character > | cs | ) |
Definition at line 31 of file StringLexer.cpp.
StringLexer & StringLexer::operator= | ( | const StringLexer & | rhs | ) |
Definition at line 79 of file StringLexer.cpp.
References m_data, and m_position.
StringLexer::Character StringLexer::Peek | ( | ) |
Definition at line 19 of file StringLexer.cpp.
References m_data, and m_position.
Referenced by lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType(), lldb_private::AppleObjCTypeEncodingParser::BuildType(), Next(), NextIf(), lldb_private::AppleObjCTypeEncodingParser::ReadNumber(), lldb_private::AppleObjCTypeEncodingParser::ReadQuotedString(), and lldb_private::AppleObjCTypeEncodingParser::ReadStructName().
void StringLexer::PutBack | ( | Size | s | ) |
Definition at line 68 of file StringLexer.cpp.
References m_position.
Referenced by lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType(), and lldb_private::AppleObjCTypeEncodingParser::BuildType().
|
private |
Definition at line 48 of file StringLexer.h.
Referenced by GetUnlexed(), HasAtLeast(), operator=(), and Peek().
|
private |
Definition at line 49 of file StringLexer.h.
Referenced by AdvanceIf(), Consume(), GetUnlexed(), HasAtLeast(), operator=(), Peek(), and PutBack().