MCPcopy Create free account
hub / github.com/antlr/codebuff / firstCharOnlyToUpper

Method firstCharOnlyToUpper

output/java_guava/1.4.19/CaseFormat.java:229–233  ·  view source on GitHub ↗
(String word)

Source from the content-addressed store, hash-verified

227
228
229 private static String firstCharOnlyToUpper(String word) {
230 return (word.isEmpty())
231 ? word
232 : new StringBuilder(word.length()).append(Ascii.toUpperCase(word.charAt(0))).append(Ascii.toLowerCase(word.substring(1))).toString();
233 }
234}

Callers 1

normalizeWordMethod · 0.95

Calls 6

toUpperCaseMethod · 0.95
toLowerCaseMethod · 0.95
isEmptyMethod · 0.65
toStringMethod · 0.65
appendMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected