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

Method toRoman

forge-core/src/main/java/forge/util/TextUtil.java:40–46  ·  view source on GitHub ↗
(int number)

Source from the content-addressed store, hash-verified

38 .put(5, "V").put(4, "IV").put(1, "I").build();
39
40 public static String toRoman(int number) {
41 if (number <= 0) {
42 return "";
43 }
44 int l = romanMap.floorKey(number);
45 return romanMap.get(l) + toRoman(number-l);
46 }
47 public static String normalizeText(String text) {
48 if (text == null)
49 return IPaperCard.NO_ARTIST_NAME;

Callers 2

keywordsToTextMethod · 0.95
getAbilityTextMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected