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

Method firstCharOnlyToUpper

output/java_guava/1.4.13/CaseFormat.java:223–227  ·  view source on GitHub ↗
(String word)

Source from the content-addressed store, hash-verified

221 }
222
223 private static String firstCharOnlyToUpper(String word) {
224 return (word.isEmpty())
225 ? word
226 : new StringBuilder(word.length()).append(Ascii.toUpperCase(word.charAt(0))).append(Ascii.toLowerCase(word.substring(1))).toString();
227 }
228}

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