diff options
Diffstat (limited to 'src/string-builder.h')
-rw-r--r-- | src/string-builder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string-builder.h b/src/string-builder.h index edc6476a..c8c13291 100644 --- a/src/string-builder.h +++ b/src/string-builder.h @@ -310,6 +310,8 @@ class IncrementalStringBuilder { INLINE(bool HasOverflowed()) const { return overflowed_; } + INLINE(int Length()) const { return accumulator_->length() + current_index_; } + // Change encoding to two-byte. void ChangeEncoding() { DCHECK_EQ(String::ONE_BYTE_ENCODING, encoding_); |