mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
seq bug fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
924f03c6de
commit
345f6e87bd
4 changed files with 329 additions and 162 deletions
|
@ -143,11 +143,15 @@ zstring zstring::replace(zstring const& src, zstring const& dst) const {
|
|||
if (eq) {
|
||||
result.m_buffer.append(dst.m_buffer);
|
||||
found = true;
|
||||
i += src.length() - 1;
|
||||
}
|
||||
else {
|
||||
result.m_buffer.push_back(m_buffer[i]);
|
||||
}
|
||||
}
|
||||
for (unsigned i = length() - src.length() + 1; i < length(); ++i) {
|
||||
result.m_buffer.push_back(m_buffer[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue