Code::Blocks
SVN r11506
|
Go to the source code of this file.
Classes | |
struct | Token |
a symbol found in the parsed files, it can be many kinds, such as a variable, a class and so on. More... | |
Functions | |
int | SkipShortenedString (wxString const &str, int pos) |
GDB can shorten the string. More... | |
int | DetectRepeatingSymbols (wxString const &str, int pos) |
bool | GetNextToken (wxString const &str, int pos, Token &token) |
cb::shared_ptr< GDBWatch > | AddChild (cb::shared_ptr< GDBWatch > parent, wxString const &full_value, Token &name) |
cb::shared_ptr< GDBWatch > | AddChild (cb::shared_ptr< GDBWatch > parent, wxString const &str_name) |
bool | ParseGDBWatchValue (cb::shared_ptr< GDBWatch > watch, wxString const &value, int &start, int length) |
wxString | RemoveWarnings (wxString const &input) |
void | RemoveBefore (wxString &str, const wxString &s) |
void | PrepareFortranOutput (wxString &outStr) |
bool | ParseGDBWatchValue (cb::shared_ptr< GDBWatch > watch, wxString const &inputValue) |
bool | ParseCDBWatchValue (cb::shared_ptr< GDBWatch > watch, wxString const &value) |
void | TokenizeGDBLocals (std::vector< GDBLocalVariable > &results, wxString const &value) |
Variables | |
wxRegEx | regexRepeatedChars (wxT("^((\'.{1,6}\')|('.{1,6}'))[ \](<repeats[ \][0-9]+[ \]times>)"), wxRE_ADVANCED) |
wxRegEx | regexRepeatedChar (wxT(".+[ \](<repeats[ \][0-9]+[ \]times>)$")) |
wxRegEx | regexFortranArray (wxT("^\[0-9,]+)$")) |
|
inline |
Definition at line 304 of file parsewatchvalue.cpp.
References cbWatch::AddChild(), and Token::ExtractString().
Referenced by GdbCmd_LocalsFuncArgs::ParseOutput().
|
inline |
Definition at line 320 of file parsewatchvalue.cpp.
References cbWatch::AddChild(), regexFortranArray, regexRepeatedChar, and wxT.
|
inline |
Definition at line 87 of file parsewatchvalue.cpp.
References wxRegEx::GetMatch(), wxString::length(), wxRegEx::Matches(), regexRepeatedChars, Token::start, wxString::substr(), and wxT.
Referenced by GetNextToken().
Definition at line 127 of file parsewatchvalue.cpp.
References _T, Token::CloseBrace, Token::Comma, DetectRepeatingSymbols(), Token::end, Token::Equal, Token::hasRepeatedChar, wxString::length(), Token::OpenBrace, SkipShortenedString(), Token::start, Token::String, Token::Token(), Token::type, and wxT.
Referenced by ParseGDBWatchValue().
Definition at line 847 of file parsewatchvalue.cpp.
References Token::AddChild(), GetArrayFromString(), wxArrayString::GetCount(), wxRegEx::GetMatch(), wxRegEx::IsValid(), wxRegEx::Matches(), NULL, and wxT.
Referenced by CdbCmd_Watch::ParseOutput(), and SUITE().
|
inline |
Definition at line 338 of file parsewatchvalue.cpp.
References Token::AddChild(), Token::CloseBrace, Token::Comma, dl_Cpp, dl_Fortran, wxString::empty(), Token::end, Token::Equal, Token::ExtractString(), wxString::find(), wxString::find_last_of(), wxString::Format(), g_DebugLanguage, GetNextToken(), Token::hasRepeatedChar, wxString::length(), wxRegEx::Matches(), wxString::Mid(), wxString::npos, Token::OpenBrace, wxString::replace(), Token::start, wxString::StartsWith(), Token::String, Token::Trim(), Token::type, Token::Undefined, wxEmptyString, wxIsdigit(), and wxT.
Referenced by ParseGDBWatchValue(), GdbCmd_Watch::ParseOutput(), GdbCmd_TooltipEvaluation::ParseOutput(), GdbCmd_LocalsFuncArgs::ParseOutput(), and SUITE().
Definition at line 770 of file parsewatchvalue.cpp.
References dl_Fortran, wxString::empty(), wxString::EndsWith(), wxString::find(), g_DebugLanguage, wxString::length(), wxString::npos, ParseGDBWatchValue(), PrepareFortranOutput(), wxString::RemoveLast(), RemoveWarnings(), Token::start, wxString::substr(), wxString::Trim(), wxEmptyString, and wxT.
void PrepareFortranOutput | ( | wxString & | outStr | ) |
Definition at line 762 of file parsewatchvalue.cpp.
References wxRegEx::Replace(), wxString::Replace(), and wxT.
Referenced by ParseGDBWatchValue().
Definition at line 752 of file parsewatchvalue.cpp.
References wxString::find(), wxString::length(), wxString::npos, wxString::Remove(), and wxString::Trim().
Definition at line 722 of file parsewatchvalue.cpp.
References wxString::find(), wxString::length(), wxString::npos, wxString::StartsWith(), wxString::substr(), and wxT.
Referenced by ParseGDBWatchValue().
|
inline |
GDB can shorten the string.
Such strings are printed as '"value"...'. This function moves position, so that the dot characters become part of the token.
Definition at line 80 of file parsewatchvalue.cpp.
References wxString::length(), and wxT.
Referenced by GetNextToken().
void TokenizeGDBLocals | ( | std::vector< GDBLocalVariable > & | results, |
wxString const & | value | ||
) |
Definition at line 981 of file parsewatchvalue.cpp.
References wxString::length(), Token::start, and wxT.
Referenced by GdbCmd_LocalsFuncArgs::ParseOutput(), and SUITE().
Referenced by AddChild().
Referenced by AddChild().
wxRegEx regexRepeatedChars(wxT("^((\\'.{1,6}\\')|('.{1,6}'))[ \t](<repeats[ \t][0-9]+[ \t]times>)"), wxRE_ADVANCED) |
Referenced by DetectRepeatingSymbols().