mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
update badge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c939195c10
commit
f381d51c83
5 changed files with 296 additions and 282 deletions
File diff suppressed because it is too large
Load diff
|
@ -205,6 +205,14 @@ zstring& zstring::operator=(zstring const& other) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
zstring zstring::reverse() const {
|
||||
zstring result;
|
||||
for (unsigned i = length(); i-- > 0; ) {
|
||||
result.m_buffer.push_back(m_buffer[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
zstring zstring::replace(zstring const& src, zstring const& dst) const {
|
||||
zstring result;
|
||||
if (length() < src.length()) {
|
||||
|
|
|
@ -126,6 +126,7 @@ public:
|
|||
zstring(unsigned ch);
|
||||
zstring& operator=(zstring const& other);
|
||||
zstring replace(zstring const& src, zstring const& dst) const;
|
||||
zstring reverse() const;
|
||||
std::string encode() const;
|
||||
unsigned length() const { return m_buffer.size(); }
|
||||
unsigned operator[](unsigned i) const { return m_buffer[i]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue