MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / pascalCase

Function pascalCase

Extension/src/Utility/Text/identifiers.ts:30–34  ·  view source on GitHub ↗
(identifier: string | string[])

Source from the content-addressed store, hash-verified

28
29/** reformat an identifier to pascal case */
30export function pascalCase(identifier: string | string[]): string {
31 return deconstruct(identifier)
32 .map((each) => each.charAt(0).toUpperCase() + each.slice(1))
33 .join('');
34}
35
36/** reformat an identifier to camel case */
37export function camelCase(identifier: string | string[]): string {

Callers

nothing calls this directly

Calls 1

deconstructFunction · 0.85

Tested by

no test coverage detected