MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / capitaliseWords

Method capitaliseWords

src/main/java/gregapi/util/UT.java:1658–1662  ·  view source on GitHub ↗

toUpperCases the first Character of each Word in the String and returns it

(String aString)

Source from the content-addressed store, hash-verified

1656
1657 /** toUpperCases the first Character of each Word in the String and returns it */
1658 public static String capitaliseWords(String aString) {
1659 StringBuilder rString = new StringBuilder();
1660 for (String tString : aString.split(" ")) if (!tString.isEmpty()) rString.append(capitalise(tString)).append(" ");
1661 return rString.toString().trim();
1662 }
1663
1664 /** @return the opposite facing of this Side of a Block, with a boundary check. */
1665 public static byte opposite(int aSide) {

Callers 2

nameMethod · 0.95
createMethod · 0.80

Calls 3

capitaliseMethod · 0.95
isEmptyMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected