MCPcopy Index your code
hub / github.com/github/copilot-sdk / toPascalCase

Function toPascalCase

java/scripts/codegen/java.ts:116–118  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

114}
115
116function toPascalCase(name: string): string {
117 return fixBrandCasing(name.split(/[-_.]/).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(""));
118}
119
120function toJavaClassName(typeName: string): string {
121 return fixBrandCasing(typeName.split(/[._]/).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(""));

Callers 4

toCamelCaseFunction · 0.70
schemaTypeToJavaFunction · 0.70

Calls 2

joinMethod · 0.80
fixBrandCasingFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…