WriteUpper uses caser to upper case the runes in s and writes to b
(b *strings.Builder, caser Caser, s string)
| 164 | |
| 165 | // WriteUpper uses caser to upper case the runes in s and writes to b |
| 166 | func WriteUpper(b *strings.Builder, caser Caser, s string) { |
| 167 | for _, r := range s { |
| 168 | if b.Len() == 0 { |
| 169 | b.WriteRune(caser.ToTitle(r)) |
| 170 | } else { |
| 171 | b.WriteRune(caser.ToUpper(r)) |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | // WriteLower uses caser to lower case the runes in s and writes to b |
| 177 | func WriteLower(b *strings.Builder, caser Caser, s string) { |
searching dependent graphs…