"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/golang.org/x/text/unicode/norm/iter.go" between
etcd-3.4.12.tar.gz and etcd-3.4.13.tar.gz

About: etcd is a distributed reliable key-value store for the most critical data of a distributed system (written in "Go").

iter.go  (etcd-3.4.12):iter.go  (etcd-3.4.13)
skipping to change at line 131 skipping to change at line 131
// to Next will return the same segments. // to Next will return the same segments.
// Modifying runes are grouped together with the preceding starter, if such a st arter exists. // Modifying runes are grouped together with the preceding starter, if such a st arter exists.
// Although not guaranteed, n will typically be the smallest possible n. // Although not guaranteed, n will typically be the smallest possible n.
func (i *Iter) Next() []byte { func (i *Iter) Next() []byte {
return i.next(i) return i.next(i)
} }
func nextASCIIBytes(i *Iter) []byte { func nextASCIIBytes(i *Iter) []byte {
p := i.p + 1 p := i.p + 1
if p >= i.rb.nsrc { if p >= i.rb.nsrc {
p0 := i.p
i.setDone() i.setDone()
return i.rb.src.bytes[i.p:p] return i.rb.src.bytes[p0:p]
} }
if i.rb.src.bytes[p] < utf8.RuneSelf { if i.rb.src.bytes[p] < utf8.RuneSelf {
p0 := i.p p0 := i.p
i.p = p i.p = p
return i.rb.src.bytes[p0:p] return i.rb.src.bytes[p0:p]
} }
i.info = i.rb.f.info(i.rb.src, i.p) i.info = i.rb.f.info(i.rb.src, i.p)
i.next = i.rb.f.nextMain i.next = i.rb.f.nextMain
return i.next(i) return i.next(i)
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)