Lines Matching refs:split
18 // defined by a split function of type SplitFunc; the default split
19 // function breaks the input into lines with line termination stripped. Split
22 // client may instead provide a custom split function.
32 split SplitFunc // The function to split the tokens.
34 token []byte // Last token returned by split.
35 buf []byte // Buffer used as argument to split.
44 // SplitFunc is the signature of the split function used to tokenize the
80 // The split function defaults to ScanLines.
84 split: ScanLines,
111 // returned by a Split function to indicate that the token being delivered
126 // Scan panics if the split function returns 100 empty tokens without
136 // If we've run out of data but have an error, give the split function
139 advance, token, err := s.split(s.buf[s.start:s.end], s.err != nil)
264 // Split sets the split function for the Scanner.
265 // The default split function is ScanLines.
267 // Split panics if it is called after scanning has started.
268 func (s *Scanner) Split(split SplitFunc) {
270 panic("Split called after Scan")
272 s.split = split
275 // Split functions
277 // ScanBytes is a split function for a Scanner that returns each byte as a token.
287 // ScanRunes is a split function for a Scanner that returns each
333 // ScanLines is a split function for a Scanner that returns each line of
380 // ScanWords is a split function for a Scanner that returns each