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

Function WriteLower

token/token.go:177–181  ·  view source on GitHub ↗

WriteLower uses caser to lower case the runes in s and writes to b

(b *strings.Builder, caser Caser, s string)

Source from the content-addressed store, hash-verified

175
176// WriteLower uses caser to lower case the runes in s and writes to b
177func WriteLower(b *strings.Builder, caser Caser, s string) {
178 for _, r := range s {
179 b.WriteRune(caser.ToLower(r))
180 }
181}
182
183// WriteRune writes the runes to the b.
184func WriteRune(b *strings.Builder, caser Caser, r rune) {

Callers 2

writeTokenMethod · 0.92
TestWriteLowerFunction · 0.92

Calls 1

ToLowerMethod · 0.65

Tested by 1

TestWriteLowerFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…