- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for newlineCount (0.15 sec)
-
src/go/scanner/scanner_test.go
var source = func() []byte { var src []byte for _, t := range tokens { src = append(src, t.lit...) src = append(src, whitespace...) } return src }() func newlineCount(s string) int { n := 0 for i := 0; i < len(s); i++ { if s[i] == '\n' { n++ } } return n } func checkPos(t *testing.T, lit string, p token.Pos, expected token.Position) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0)