vendor/golang.org/x/text/unicode/norm/iter.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
   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]