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

Function snakeToCamelCase

scripts/codegen/rust.ts:143–145  ·  view source on GitHub ↗

Convert snake_case back to camelCase (matches serde's rename_all = "camelCase").

(snake: string)

Source from the content-addressed store, hash-verified

141
142/** Convert snake_case back to camelCase (matches serde's rename_all = "camelCase"). */
143function snakeToCamelCase(snake: string): string {
144 return snake.replace(/_([a-z0-9])/g, (_, c: string) => c.toUpperCase());
145}
146
147/**
148 * Rust reserved keywords that need raw identifier syntax (r#).

Callers 1

emitRustStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…