MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / capFirst

Function capFirst

src/resolution/swift-objc-bridge.ts:42–44  ·  view source on GitHub ↗

* Capitalize the first character of a string. Used for the "With"-prefix * form on the first selector keyword when the Swift declaration has an * explicit first-parameter label (e.g. `func play(song:)` → `playWithSong:`).

(s: string)

Source from the content-addressed store, hash-verified

40 * explicit first-parameter label (e.g. `func play(song:)` → `playWithSong:`).
41 */
42function capFirst(s: string): string {
43 return s.length > 0 ? s.charAt(0).toUpperCase() + s.slice(1) : s;
44}
45
46/**
47 * Lowercase the first character. Used in reverse: `setName:` setter ↔

Callers 3

objcSelectorForSwiftInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected