diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-07-31 00:24:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-31 00:24:25 -0500 |
commit | ed2ed9dffb709c9120890f665983abc594bdc0e5 (patch) | |
tree | 7f2df131caa95b5261899a613733587fa4b43482 /src/util/regexp.h | |
parent | 49853e244323fa1964d69621506aa5daf8177a9c (diff) |
Eager conflict detection in strings based on constant prefix/suffix (#3110)
Diffstat (limited to 'src/util/regexp.h')
-rw-r--r-- | src/util/regexp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/regexp.h b/src/util/regexp.h index f7c6fb2ae..d1cb197fb 100644 --- a/src/util/regexp.h +++ b/src/util/regexp.h @@ -142,6 +142,10 @@ class CVC4_PUBLIC String { std::size_t find(const String& y, const std::size_t start = 0) const; std::size_t rfind(const String& y, const std::size_t start = 0) const; + /** Returns true if y is a prefix of this */ + bool hasPrefix(const String& y) const; + /** Returns true if y is a suffix of this */ + bool hasSuffix(const String& y) const; String replace(const String& s, const String& t) const; String substr(std::size_t i) const; |