Java Reference
In-Depth Information
Returns
true
if the String represents an Integer. The following example out-
puts
true
.
log
('0'.matchInteger(0).repr());
matchFloat
String
::matchFloat (f:
Float
) :
Boolean
Returns
true
if the String represents a Float. The following example outputs
true
.
log
('0.117'.matchFloat(0.117).repr());
matchIdentifier
String
::matchIdentifier(s:
String
) :
Boolean
Returns
true
if the String represents an alphanumeric word. The following
example returns
false
.
log
('a8s(c'.matchIdentifier('').repr());
asBoolean
String
::asBoolean() :
Boolean
Returns a Boolean value if the String can be interpreted as a Boolean and
null
otherwise. The following returns
false
.
log
('0'.asBoolean().repr());
asInteger
String
::asInteger() :
Integer
Search WWH ::
Custom Search