MCPcopy Create free account
hub / github.com/apache/fory / countUppers

Function countUppers

go/fory/meta/meta_string_encoder.go:265–273  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

263}
264
265func countUppers(str string) int {
266 cnt := 0
267 for i := 0; i < len(str); i++ {
268 if str[i] >= 'A' && str[i] <= 'Z' {
269 cnt++
270 }
271 }
272 return cnt
273}
274
275func (e *Encoder) charToValueLowerSpecial(c byte) (val byte, err error) {
276 if c >= 'a' && c <= 'z' {

Callers 2

calcTotalBytesFunction · 0.85

Calls

no outgoing calls

Tested by 1

calcTotalBytesFunction · 0.68