equal
deleted
inserted
replaced
126 } |
126 } |
127 |
127 |
128 func nextASCIIBytes(i *Iter) []byte { |
128 func nextASCIIBytes(i *Iter) []byte { |
129 p := i.p + 1 |
129 p := i.p + 1 |
130 if p >= i.rb.nsrc { |
130 if p >= i.rb.nsrc { |
131 i.setDone() |
131 p0 := i.p |
132 return i.rb.src.bytes[i.p:p] |
132 i.setDone() |
|
133 return i.rb.src.bytes[p0:p] |
133 } |
134 } |
134 if i.rb.src.bytes[p] < utf8.RuneSelf { |
135 if i.rb.src.bytes[p] < utf8.RuneSelf { |
135 p0 := i.p |
136 p0 := i.p |
136 i.p = p |
137 i.p = p |
137 return i.rb.src.bytes[p0:p] |
138 return i.rb.src.bytes[p0:p] |