Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index 30519b561046a4012db3260dc96c93f8f2e32953..7d89bcf15f4c2b9aa743c0c7ab8f0febc31137ad 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, &op, start); |
+ for (int i = start; i < end && stream.HasMore(); i++) { |
+ uint16_t c = stream.GetNext(); |
if (c >= 127 || c < 32) { |
c = '?'; |
} |