\Gishiki\Algorithms\StringsSimpleLexer

The lexical analyzer without lexer support used to validate input.

Summary

Methods
Properties
Constants
isEmail()
isString()
isFloat()
isUnsignedInteger()
isSignedInteger()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

isEmail()

isEmail(string  $str) : boolean

Check if the given string can be validates as a valid email address.

Parameters

string $str

the string to be validated

Returns

boolean —

true if the given string is a valid email address, false otherwise

isString()

isString(string  $str) : boolean

Check if the given parameter is a valid PHP string.

Parameters

string $str

the parameter to be validated

Returns

boolean —

true if and only if the given parameter is a valid string

isFloat()

isFloat(string  $str) : boolean

Check if the given string can be evaluated in a valid floating point number.

Parameters

string $str

the string to be validated

Returns

boolean —

true if the given string is a valid float, false otherwise

isUnsignedInteger()

isUnsignedInteger(string  $str) : boolean

Check if the given string can be evaluated in a valid unsigned integer number.

Parameters

string $str

the string to be validated

Returns

boolean —

true if the given string is a valid unsigned integer, false otherwise

isSignedInteger()

isSignedInteger(string  $str) : boolean

Check if the given string can be evaluated in a valid signed integer number.

Parameters

string $str

the string to be validated

Returns

boolean —

true if the given string is a valid signed integer, false otherwise