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

Method to

output/java_guava/1.4.13/CaseFormat.java:132–136  ·  view source on GitHub ↗

Converts the specified String str from this format to the specified format. A "best effort" approach is taken; if str does not conform to the assumed format, then the behavior of this method is undefined but we make a reasonable effort at converting anyway.

(CaseFormat format, String str)

Source from the content-addressed store, hash-verified

130
131
132 public final String to(CaseFormat format, String str) {
133 checkNotNull(format);
134 checkNotNull(str);
135 return (format == this) ? str : convert(format, str);
136 }
137
138 /**
139 * Enum values can override for performance reasons.

Callers 2

doForwardMethod · 0.45
doBackwardMethod · 0.45

Calls 2

convertMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected