summaryrefslogtreecommitdiff
path: root/src/expr/sequence.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-07-13 00:43:45 -0500
committerGitHub <noreply@github.com>2020-07-12 22:43:45 -0700
commitc7ec792a2086c5b92c4a96d18f7cedb293712dfd (patch)
treec88ebf889cb2f6aa6678154e1984bbe60a5b92b9 /src/expr/sequence.h
parent090d8bc3c31404140856e51d2cc5a5aa1335b3b3 (diff)
Add support for string/sequence update (#4725)
This adds basic support for string/sequence updating, which has a semantics that is length preserving.
Diffstat (limited to 'src/expr/sequence.h')
-rw-r--r--src/expr/sequence.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr/sequence.h b/src/expr/sequence.h
index c3b710592..5a037752f 100644
--- a/src/expr/sequence.h
+++ b/src/expr/sequence.h
@@ -83,6 +83,8 @@ class Sequence
bool hasPrefix(const Sequence& y) const;
/** Returns true if y is a suffix of this */
bool hasSuffix(const Sequence& y) const;
+ /** Replace the character at index i in this sequence with t */
+ Sequence update(size_t i, const Sequence& t) const;
/** Replace the first occurrence of s in this sequence with t */
Sequence replace(const Sequence& s, const Sequence& t) const;
/** Return the subsequence of this sequence starting at index i */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback