diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-09-16 21:12:35 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-09-16 21:12:35 -0300 |
| commit | 2f96f49c2d2c8679841c790e9dd7d9f1b6f3fed1 (patch) | |
| tree | 23cfb315743bbb5c1c8fa749e75aba8a54e3a2f7 /base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java | |
| parent | 92c56c5918a0858aad32cc9ee0fb3eee99ebd007 (diff) | |
Large update
A large update, this contains much debugging of the CL FORMAT routines,
as well as a few other minor changes.
Diffstat (limited to 'base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java b/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java index 0625ff8..68127b6 100644 --- a/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java +++ b/base/src/main/java/bjc/utils/ioutils/format/CLModifiers.java @@ -15,6 +15,14 @@ public class CLModifiers { * Whether the colon mod is on. */ public final boolean colonMod; + /** + * Whether the dollar mod is on. + */ + public final boolean dollarMod; + /** + * Whether the star mod is on. + */ + public final boolean starMod; /** * Create a new set of CL modifiers. @@ -23,10 +31,14 @@ public class CLModifiers { * The state of the at mod. * @param colon * The state of the colon mod. + * @param dollar + * The state of the dollar mod. */ - public CLModifiers(boolean at, boolean colon) { - atMod = at; - colonMod = colon; + public CLModifiers(boolean at, boolean colon, boolean dollar, boolean star) { + atMod = at; + colonMod = colon; + dollarMod = dollar; + starMod = star; } /** @@ -37,13 +49,18 @@ public class CLModifiers { * @return A set of modifiers matching the string. */ public static CLModifiers fromString(String modString) { - boolean atMod = false; - boolean colonMod = false; + boolean atMod = false; + boolean colonMod = false; + boolean dollarMod = false; + boolean starMod = false; + if(modString != null) { - atMod = modString.contains("@"); - colonMod = modString.contains(":"); + atMod = modString.contains("@"); + colonMod = modString.contains(":"); + dollarMod = modString.contains("$"); + starMod = modString.contains("*"); } - return new CLModifiers(atMod, colonMod); + return new CLModifiers(atMod, colonMod, dollarMod, starMod); } -}
\ No newline at end of file +} |
