MCPcopy Create free account
hub / github.com/google/gapid / SplitPascalCase

Method SplitPascalCase

gapil/template/strings.go:131–137  ·  view source on GitHub ↗

SplitPascalCase slices each string segment at each transition from an letter rune to a upper-case letter rune.

(v ...interface{})

Source from the content-addressed store, hash-verified

129// SplitPascalCase slices each string segment at each transition from an letter
130// rune to a upper-case letter rune.
131func (Functions) SplitPascalCase(v ...interface{}) stringList {
132 out := stringList{}
133 for _, s := range stringify(v...) {
134 out = append(out, cases.Pascal(s)...)
135 }
136 return out
137}
138
139// Title capitalizes each letter of each string segment.
140func (Functions) Title(v ...interface{}) stringList {

Callers 2

TestSplitPascalCaseFunction · 0.80

Calls 1

stringifyFunction · 0.85

Tested by 2

TestSplitPascalCaseFunction · 0.64