Awkl
Loading...
Searching...
No Matches
type.awk File Reference

Namespaces

namespace  type
 

Functions

number type::isNumber (any x)
 Check if variable is of type number
 
number type::isString (any x)
 Check if variable is of type string
 
number type::isBool (any x)
 Check if variable is of type number|bool
 
number type::isStrnum (any x)
 Check if variable is of type strnum
 
number type::isRegexp (any x)
 Check if variable is of type regexp
 
number type::isArray (any x)
 Check if variable is of type array
 
number type::isScalar (any x)
 Check if variable is of a primitive scalar type i.e. number, regexp, string, strnum, unassigned, number|bool
 
number type::isNumbery (any x)
 Check if variable is of type number, strnum or number|bool
 
number type::isNumeric (any x)
 Check if variable is of type number, strnum, number|bool or string that looks numeric.
 
number type::isStringy (any x)
 Check if variable is of type string or strnum
 
number type::isChar (any x)
 Check if variable is of type string and of length 1.
 
number type::isChary (any x)
 Check if variable is of type string or strnum and of length 1.
 
number type::isIndexedArray (any x, number i0=1)
 Check if variable is an array with numerical correlative numbers as keys.
 
number type::is (any x, string t)
 Check if string is of a certain type. Either a gawk builtin type or that has a boolean function type::is*
 
number type::isType (string t)
 Check if string is one of gawk's builtin types or that has a type::is* function.
 
number type::isPrimitiveType (string x)
 Check if string is one of gawk's builtin types i.e. array, number, regexp, string, strnum, unassigned, untyped, number|bool
 
number type::isArrayOf (any A, string type)
 Check if variable is an array of elements of a specific type.
 
auto type::areComparable (x, y)
 
number type::number (scalar x)
 Convert variable to a number
 
string type::string (scalar x)
 Convert variable to a string
 
regexp type::regexp (scalar x)
 Convert variable to a regexp
 
auto type::bool (scalar x) -> number|bool
 Convert variable to a number|bool
 
strnum type::strnum (scalar x)
 Convert variable to a strnum