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

Function capitalize

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected