CStringExtension extension
Provides a series of asXXX() conversion from a string data type and do non case sensitive compares.
- on
Methods
-
asArray(
) → CArray? - Will attempt to return an array object ir null if it cannot.
-
asBool(
) → bool - Will attempt to convert to a bool from a series of strings that can represent a true value.
-
asDouble(
) → num? - Will attempt to return a double from the string value or null if it cannot.
-
asInt(
) → num? - Will attempt to return a int from the string value or null if it cannot.
-
asObject(
) → CObject? - Will attempt to return Map<String, dynamic> object or null if it cannot.
-
containsIgnoreCase(
String v) → bool - Determines if a string is contained within this string.
-
equalsIgnoreCase(
String v) → bool - Determines if a string is equal to another ignoring case.