| Index: src/string-stream.cc
|
| diff --git a/src/string-stream.cc b/src/string-stream.cc
|
| index 30519b561046a4012db3260dc96c93f8f2e32953..6b02d7fe596fe9457b0b6086248f622bbaa44be9 100644
|
| --- a/src/string-stream.cc
|
| +++ b/src/string-stream.cc
|
| @@ -311,10 +311,10 @@ bool StringStream::Put(String* str) {
|
|
|
|
|
| bool StringStream::Put(String* str, int start, int end) {
|
| - StringInputBuffer name_buffer(str);
|
| - name_buffer.Seek(start);
|
| - for (int i = start; i < end && name_buffer.has_more(); i++) {
|
| - int c = name_buffer.GetNext();
|
| + ConsStringIteratorOp op;
|
| + StringCharacterStream stream(str, start, &op);
|
| + for (int i = start; i < end && stream.HasMore(); i++) {
|
| + uint16_t c = stream.GetNext();
|
| if (c >= 127 || c < 32) {
|
| c = '?';
|
| }
|
|
|