perkeep/pkg/strutil
Tamás Gulácsi c9027c2c7f pkg/strutil: think in runes in Has{Pre,Suf}fixFold
Remove assumption that both strings have the same byte length.
Add the Kelvin sign to the tests.

BenchmarkHasSuffixFoldToLower-4  3000000  482 ns/op  2 allocs/op
BenchmarkHasSuffixFold-4        10000000  130 ns/op  0 allocs/op

The same holds for HasPrefixFold:

BenchmarkHasPrefixFoldToLower-4  2000000  599 ns/op  2 allocs/op
BenchmarkHasPrefixFold-4        10000000  139 ns/op  0 allocs/op

Change-Id: I613f86b59285ccf177d3e3be597202551a0aa64c
2015-08-01 10:40:14 +02:00
..
intern.go Change strutil.StringFromBytes to depend on Go 1.3. 2014-08-14 12:59:54 -07:00
strconv.go strutil: add StringFromBytes 2013-12-04 23:53:00 +04:00
strutil.go pkg/strutil: think in runes in Has{Pre,Suf}fixFold 2015-08-01 10:40:14 +02:00
strutil_test.go pkg/strutil: think in runes in Has{Pre,Suf}fixFold 2015-08-01 10:40:14 +02:00