mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
parent
83d25c61e4
commit
291b1b4dcf
@ -369,8 +369,6 @@ func Fields(s string) []string {
|
||||
// FieldsFunc splits the string s at each run of Unicode code points c satisfying f(c)
|
||||
// and returns an array of slices of s. If all code points in s satisfy f(c) or the
|
||||
// string is empty, an empty slice is returned.
|
||||
// FieldsFunc makes no guarantees about the order in which it calls f(c).
|
||||
// If f does not return consistent results for a given c, FieldsFunc may crash.
|
||||
func FieldsFunc(s string, f func(rune) bool) []string {
|
||||
// A span is used to record a slice of s of the form s[start:end].
|
||||
// The start index is inclusive and the end index is exclusive.
|
||||
|
Loading…
Reference in New Issue
Block a user