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

Method to

output/java_guava/1.4.19/CaseFormat.java:134–138  ·  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

132
133
134 public final String to(CaseFormat format, String str) {
135 checkNotNull(format);
136 checkNotNull(str);
137 return (format == this) ? str : convert(format, str);
138 }
139
140 /**
141 * 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