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

Method convert

output/java_guava/1.4.19/CaseFormat.java:43–52  ·  view source on GitHub ↗
(CaseFormat format, String s)

Source from the content-addressed store, hash-verified

41 }
42
43 @Override
44 String convert(CaseFormat format, String s) {
45 if (format == LOWER_UNDERSCORE) {
46 return s.replace('-', '_');
47 }
48 if (format == UPPER_UNDERSCORE) {
49 return Ascii.toUpperCase(s.replace('-', '_'));
50 }
51 return super.convert(format, s);
52 }
53 },
54
55 /**

Callers 1

toMethod · 0.95

Calls 9

toUpperCaseMethod · 0.95
toLowerCaseMethod · 0.95
toStringMethod · 0.65
replaceMethod · 0.45
indexInMethod · 0.45
lengthMethod · 0.45
appendMethod · 0.45
normalizeFirstWordMethod · 0.45
normalizeWordMethod · 0.45

Tested by

no test coverage detected