MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / capitalise

Method capitalise

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

toUpperCases the first Character of the String and returns it

(String aString)

Source from the content-addressed store, hash-verified

1651
1652 /** toUpperCases the first Character of the String and returns it */
1653 public static String capitalise(String aString) {
1654 return aString == null ? "" : aString.length() <= 1 ? aString.toUpperCase() : aString.substring(0, 1).toUpperCase() + aString.substring(1);
1655 }
1656
1657 /** toUpperCases the first Character of each Word in the String and returns it */
1658 public static String capitaliseWords(String aString) {

Callers 6

scanMethod · 0.95
nameMethod · 0.95
capitaliseWordsMethod · 0.95
createMaterialMethod · 0.80
sanitizeMethod · 0.80
getToolTipHarvestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected