MCPcopy
hub / github.com/harness/harness / utf8Scanner

Struct utf8Scanner

git/parser/text.go:37–43  ·  view source on GitHub ↗

utf8Scanner is wrapping the provided scanner with UTF-8 checks and a modifier function.

Source from the content-addressed store, hash-verified

35
36// utf8Scanner is wrapping the provided scanner with UTF-8 checks and a modifier function.
37type utf8Scanner struct {
38 nextLine []byte
39 nextErr error
40
41 modifier func([]byte) []byte
42 scanner Scanner
43}
44
45func (s *utf8Scanner) Scan() bool {
46 scanOut := s.scanner.Scan()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected