mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-05-09 15:40:40 +00:00
Reduce redundante call to bytes.ToLower and substitute the last call by an home made version doing the conversion in place
Former-commit-id: d9ea22f649d97be352f8dbb37acc1495df830118
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package obiutils
|
||||
|
||||
func InPlaceToLower(data []byte) []byte {
|
||||
for i,l := range data {
|
||||
if l >= 'A' && l <='Z' {
|
||||
data[i]|=32
|
||||
}
|
||||
}
|
||||
|
||||
return data
|
||||
}
|
||||
Reference in New Issue
Block a user