+ /**\r
+ * Checks if the {@link CharSequence} is a prefix of a valid number, and returns the NumberType it is a prefix of. If a String is a\r
+ * prefix of multiple different {@link NumberType}s, the one with the smallest radix is returned. If no valid {@link NumberType} is\r
+ * found, {@link NumberType#NONE} is returned.\r
+ * \r
+ * @param cs The potential prefix\r
+ * @return The type the {@link CharSequence} is a prefix of\r
+ */\r
+ public static NumberType prefixOfType(CharSequence cs)\r
+ {\r
+ if (isPrefix(cs, numberBin))\r
+ return NumberType.BINARY;\r
+ if (isPrefix(cs, numberOct))\r
+ return NumberType.OCTAL;\r
+ if (isPrefix(cs, numberDec))\r
+ return NumberType.DECIMAL;\r
+ if (isPrefix(cs, numberHex))\r
+ return NumberType.HEXADECIMAL;\r
+ if (isPrefix(cs, numberFloat))\r
+ return NumberType.FLOATINGPOINT;\r
+ return NumberType.NONE;\r
+ }\r
+\r