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

Function capitalize

codegraph-kernel/src/java.rs:1760–1766  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

1758}
1759
1760fn capitalize(name: &str) -> String {
1761 let mut chars = name.chars();
1762 match chars.next() {
1763 Some(c) => c.to_uppercase().collect::<String>() + chars.as_str(),
1764 None => String::new(),
1765 }
1766}
1767
1768/// `\bword\b` matcher (modifier keyword tests in languages/java.ts).
1769fn word_re(word: &'static str) -> &'static Regex {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected