go/src/strings
Illirgway e7c56fe994 strings: adding micro-optimization for TrimSpace
replace for string's end trimming TrimFunc -> TrimRightFunc

strings.TrimSpace string's end trimming should use more specific TrimRightFunc instead of common TrimFunc (because start has already trimmed before)

Change-Id: I827f1a25c141e61edfe1f8b11f6e8cd685f8b384
GitHub-Last-Rev: 040607a831
GitHub-Pull-Request: golang/go#46862
Reviewed-on: https://go-review.googlesource.com/c/go/+/329731
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-04-29 02:01:27 +00:00
..
builder.go all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
builder_test.go bufio, bytes, strings: handle negative runes in WriteRune 2021-02-24 04:01:25 +00:00
clone.go strings: align Clone output with string([]byte("")) 2021-11-01 14:45:28 +00:00
clone_test.go strings: align Clone output with string([]byte("")) 2021-11-01 14:45:28 +00:00
compare.go net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
compare_test.go
example_test.go strings: document the use of simple case-folding in EqualFold 2022-04-02 06:48:45 +00:00
export_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
reader.go strings: complete Reader doc string 2020-10-30 00:23:50 +00:00
reader_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
replace.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
replace_test.go
search.go
search_test.go
strings.go strings: adding micro-optimization for TrimSpace 2022-04-29 02:01:27 +00:00
strings_test.go strings: limits allocation size for SplitN 2022-03-31 05:24:51 +00:00