MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / titlecase

Function titlecase

crates/opencode-tui/src/components/session.rs:1388–1394  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

1386}
1387
1388fn titlecase(value: &str) -> String {
1389 let mut chars = value.chars();
1390 match chars.next() {
1391 Some(first) => first.to_uppercase().collect::<String>() + chars.as_str(),
1392 None => String::new(),
1393 }
1394}
1395
1396fn format_number(value: u64) -> String {
1397 let digits = value.to_string();

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected