- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SplitSeq (0.18 sec)
-
src/bytes/iter.go
for len(s) > 0 { _, size := utf8.DecodeRune(s) if !yield(s[:size:size]) { return } s = s[size:] } } } // splitSeq is SplitSeq or SplitAfterSeq, configured by how many // bytes of sep to include in the results (none or all). func splitSeq(s, sep []byte, sepSave int) iter.Seq[[]byte] { if len(sep) == 0 { return explodeSeq(s) } return func(yield func([]byte) bool) { for {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:23:13 UTC 2024 - 3.7K bytes - Viewed (0) -
api/next/61901.txt
pkg bytes, func SplitSeq([]uint8, []uint8) iter.Seq[[]uint8] #61901 pkg strings, func FieldsFuncSeq(string, func(int32) bool) iter.Seq[string] #61901 pkg strings, func FieldsSeq(string) iter.Seq[string] #61901 pkg strings, func Lines(string) iter.Seq[string] #61901 pkg strings, func SplitAfterSeq(string, string) iter.Seq[string] #61901
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:23:13 UTC 2024 - 676 bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/strings/61901.md
The [strings] package adds several functions that work with iterators: - [Lines] returns an iterator over the newline-terminated lines in the string s. - [SplitSeq] returns an iterator over all substrings of s separated by sep. - [SplitAfterSeq] returns an iterator over substrings of s split after each instance of sep. - [FieldsSeq] returns an iterator over substrings of s split around runs of whitespace characters, as defined by unicode.IsSpace.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:23:13 UTC 2024 - 580 bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/bytes/61901.md
The [bytes] package adds several functions that work with iterators: - [Lines] returns an iterator over the newline-terminated lines in the byte slice s. - [SplitSeq] returns an iterator over all substrings of s separated by sep. - [SplitAfterSeq] returns an iterator over substrings of s split after each instance of sep. - [FieldsSeq] returns an iterator over substrings of s split around runs of whitespace characters, as defined by unicode.IsSpace.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:23:13 UTC 2024 - 582 bytes - Viewed (0)