MCPcopy Create free account
hub / github.com/apache/fory / capitalize

Method capitalize

javascript/packages/core/lib/meta/MetaString.ts:202–207  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

200 }
201
202 capitalize(str: string) {
203 if (typeof str !== "string" || str.length === 0) {
204 return str; // If not a string or empty, return the original value
205 }
206 return str.charAt(0).toUpperCase() + str.slice(1);
207 }
208
209 private decodeRepFirstLowerSpecial(data: Uint8Array) {
210 const str = this.decodeLowerSpecial(data);

Callers 15

_snake_to_camelFunction · 0.45
compile_fileFunction · 0.45
to_pascal_caseMethod · 0.45
_to_pascal_caseFunction · 0.45
_pascal_identifier_partFunction · 0.45
_to_pascal_caseFunction · 0.45
write_reportFunction · 0.45
benchmark_nameFunction · 0.45
micro_benchmarkFunction · 0.45
generate_markdown_reportFunction · 0.45

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected