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

Function capitalize

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

Source from the content-addressed store, hash-verified

1699}
1700
1701fn capitalize(name: &str) -> String {
1702 let mut chars = name.chars();
1703 match chars.next() {
1704 Some(c) => c.to_uppercase().collect::<String>() + chars.as_str(),
1705 None => String::new(),
1706 }
1707}
1708
1709/// `\bword\b` matcher (modifier keyword tests in languages/java.ts).
1710fn word_re(word: &'static str) -> &'static Regex {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected