MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / capitalizeWords

Method capitalizeWords

src/main/java/com/volmit/adapt/util/Form.java:110–118  ·  view source on GitHub ↗

Capitalize all words in the string @param s the string @return the capitalized string

(String s)

Source from the content-addressed store, hash-verified

108 * @return the capitalized string
109 */
110 public static String capitalizeWords(String s) {
111 String rollx = "";
112
113 for (String i : s.trim().split(" ")) {
114 rollx += " " + capitalize(i.trim());
115 }
116
117 return rollx.substring(1);
118 }
119
120 /**
121 * Hard word wrap

Callers 2

onApplyMetaMethod · 0.95
onApplyMetaMethod · 0.95

Calls 3

capitalizeMethod · 0.95
trimMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected