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

Function toCamelCase

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

Source from the content-addressed store, hash-verified

134]);
135
136function toCamelCase(name: string): string {
137 const pascal = toPascalCase(name);
138 let result = pascal.charAt(0).toLowerCase() + pascal.slice(1);
139 if (JAVA_RESERVED_IDENTIFIERS.has(result)) {
140 result = result + "_";
141 }
142 return result;
143}
144
145function toEnumConstant(value: string): string {
146 return value.toUpperCase().replace(/[-. /:]/g, "_").replace(/^_+/, "").replace(/_+/g, "_");

Callers 4

renderNestedTypeFunction · 0.85
generateRpcClassFunction · 0.85

Calls 1

toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…