diff options
Diffstat (limited to 'lldb/source/Utility/RegularExpression.cpp')
| -rw-r--r-- | lldb/source/Utility/RegularExpression.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lldb/source/Utility/RegularExpression.cpp b/lldb/source/Utility/RegularExpression.cpp index 0192e8b8a01..3a774dbee82 100644 --- a/lldb/source/Utility/RegularExpression.cpp +++ b/lldb/source/Utility/RegularExpression.cpp @@ -126,23 +126,6 @@ bool RegularExpression::Match::GetMatchAtIndex( return false; } -bool RegularExpression::Match::GetMatchSpanningIndices( - llvm::StringRef s, uint32_t idx1, uint32_t idx2, - llvm::StringRef &match_str) const { - if (idx1 < m_matches.size() && idx2 < m_matches.size()) { - if (m_matches[idx1].rm_so == m_matches[idx2].rm_eo) { - // Matched the empty string... - match_str = llvm::StringRef(); - return true; - } else if (m_matches[idx1].rm_so < m_matches[idx2].rm_eo) { - match_str = s.substr(m_matches[idx1].rm_so, - m_matches[idx2].rm_eo - m_matches[idx1].rm_so); - return true; - } - } - return false; -} - // Returns true if the regular expression compiled and is ready for execution. bool RegularExpression::IsValid() const { return m_comp_err == 0; } |

