MCPcopy Create free account
hub / github.com/Card-Forge/forge / capitalize

Method capitalize

forge-gui-android/src/forge/app/Main.java:1045–1055  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

1043 }
1044
1045 private String capitalize(String s) {
1046 if (s == null || s.length() == 0) {
1047 return "";
1048 }
1049 char first = s.charAt(0);
1050 if (Character.isUpperCase(first)) {
1051 return s;
1052 } else {
1053 return Character.toUpperCase(first) + s.substring(1);
1054 }
1055 }
1056}

Callers 5

getCpuNameMethod · 0.95
getDeviceNameMethod · 0.95
buildMenuMethod · 0.45
getTabsMethod · 0.45
getZoneLabelTextMethod · 0.45

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected