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

Method to

corpus/java/training/guava/base/CaseFormat.java:131–135  ·  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

129 * the behavior of this method is undefined but we make a reasonable effort at converting anyway.
130 */
131 public final String to(CaseFormat format, String str) {
132 checkNotNull(format);
133 checkNotNull(str);
134 return (format == this) ? str : convert(format, str);
135 }
136
137 /**
138 * 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