Searched refs:titleCase (Results 1 – 2 of 2) sorted by relevance
/cts/tests/mediapc/requirements/ |
D | templatefns_test.go | 23 input, kebabCase, snakeCase, titleCase, upperCamelCase, lowerCamelCase string 27 kebabCase: "", snakeCase: "", titleCase: "", upperCamelCase: "", lowerCamelCase: ""}, 30 kebabCase: "f", snakeCase: "f", titleCase: "F", upperCamelCase: "F", lowerCamelCase: "f"}, 33 …kebabCase: "foo", snakeCase: "foo", titleCase: "Foo", upperCamelCase: "Foo", lowerCamelCase: "foo"… 36 …kebabCase: "foo-bar", snakeCase: "foo_bar", titleCase: "Foo Bar", upperCamelCase: "FooBar", lowerC… 39 …kebabCase: "foo-bar", snakeCase: "foo_bar", titleCase: "Foo Bar", upperCamelCase: "FooBar", lowerC… 42 …kebabCase: "foo-bar", snakeCase: "foo_bar", titleCase: "Foo Bar", upperCamelCase: "FooBar", lowerC… 45 …kebabCase: "foo-bar", snakeCase: "foo_bar", titleCase: "Foo Bar", upperCamelCase: "FooBar", lowerC… 48 …kebabCase: "http-status-code", snakeCase: "http_status_code", titleCase: "HTTP Status Code", upper… 51 …kebabCase: "foo-many-spaces", snakeCase: "foo_many_spaces", titleCase: "Foo Many Spaces", upperCam… [all …]
|
D | templatefns.go | 37 "TitleCase": titleCase, 63 func titleCase(s string) string { func 89 return strings.ReplaceAll(strings.ToLower(titleCase(s)), " ", "_") 94 return strings.ReplaceAll(strings.ToLower(titleCase(s)), " ", "-") 99 return strings.ReplaceAll(titleCase(s), " ", "")
|