MCPcopy Create free account
hub / github.com/chanced/caps / WriteSplitLowerRunes

Function WriteSplitLowerRunes

token/token.go:119–126  ·  view source on GitHub ↗

WriteSplitUpper writes all runes in elems separated by sep and written as lower case

(b *strings.Builder, caser Caser, sep string, s []rune)

Source from the content-addressed store, hash-verified

117
118// WriteSplitUpper writes all runes in elems separated by sep and written as lower case
119func WriteSplitLowerRunes(b *strings.Builder, caser Caser, sep string, s []rune) {
120 for _, r := range s {
121 if b.Len() > 0 && len(sep) > 0 {
122 b.WriteString(sep)
123 }
124 b.WriteRune(caser.ToLower(r))
125 }
126}
127
128// WriteSplitUpper writes all strings in elems separated by sep and written as upper case
129func WriteSplitUpper(b *strings.Builder, caser Caser, sep string, elems ...string) {

Callers 1

writeReplaceSplitMethod · 0.92

Calls 2

ToLowerMethod · 0.65
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…