Qore Programming Language Reference Manual  0.9.3
ql_type.dox.h
1 
3 namespace Qore {
7 
9 
26 auto auto_cast(auto v);
27 
29 
38 binary binary();
39 
41 
48 binary binary(null x);
49 
51 
63 binary binary(softstring str);
64 
66 
71 binary binary(binary bin);
72 
74 
87 string binary_to_string(binary b, *string encoding);
88 
90 
104 bool boolean(any arg);
105 
107 
119 float float(softfloat f);
120 
122 
129 float float();
130 
132 
146 hash<auto> hash(object obj);
147 
149 
161 hash<auto> hash(list<auto> l);
162 
164 
179 hash<auto> hash(list<softstring> keys, list<auto> values);
180 
182 
197 hash hash(hash h);
198 
200 
205 hash<auto> hash();
206 
208 
239 int int(string str, int base = 10);
240 
242 
254 int int(softint i);
255 
257 
264 int int();
265 
267 
279 list<auto> list( ...);
280 
282 
294 number number(softnumber n);
295 
297 
304 number number();
305 
307 
322 string string(softstring str, *string enc);
323 
325 
332 string string();
333 
335 
353 string type(auto arg);
354 
356 
372 string typename(auto arg);
373 
375 };
377 namespace Qore::Type {
382 
384  const Binary = "binary";
386  const Boolean = "bool";
388  const CallReference = "call reference";
390  const Closure = "closure";
392  const Date = "date";
394  const Float = "float";
396  const Hash = "hash";
398  const Int = "integer";
400  const List = "list";
402  const NothingType = "nothing";
404  const NullType = "NULL";
406  const Number = "number";
408  const Object = "object";
410  const String = "string";
412 };
const Date
Gives the type for the date values.
Definition: ql_type.dox.h:392
const Hash
Gives the type for hash values.
Definition: ql_type.dox.h:396
const String
Gives the type for string values.
Definition: ql_type.dox.h:410
const NullType
Gives the type for SQL null values.
Definition: ql_type.dox.h:404
int int(string str, int base=10)
Converts the string to an integer value with respect to the base.
number number(softnumber n)
Converts the argument to a number value.
binary binary()
Always returns an empty binary object (of zero length)
const List
Gives the type for list values.
Definition: ql_type.dox.h:400
auto auto_cast(auto v)
Returns complex types converted to the most specific types possible using internal type folding.
const NothingType
Gives the type when no value is available.
Definition: ql_type.dox.h:402
const Float
Gives the type for float values.
Definition: ql_type.dox.h:394
const Boolean
Gives the type for boolean values.
Definition: ql_type.dox.h:386
const Binary
Gives the type for binary values.
Definition: ql_type.dox.h:384
list< auto > list(...)
Returns a list of the arguments passed at the top level.
float float(softfloat f)
Converts the argument to a floating-point (float) value.
const CallReference
Gives the type for call references.
Definition: ql_type.dox.h:388
string type(auto arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
hash< auto > hash(object obj)
Returns a hash of an object's members.
const Int
Gives the type for integer values.
Definition: ql_type.dox.h:398
string string(softstring str, *string enc)
Converts the argument to a string.
string binary_to_string(binary b, *string encoding)
Returns a string created from the binary data passed, taking an optional second argument giving the s...
const Closure
Gives the type for closures.
Definition: ql_type.dox.h:390
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
const Object
Gives the type for object values.
Definition: ql_type.dox.h:408
const Number
Gives the type for number values.
Definition: ql_type.dox.h:406
bool boolean(any arg)
Converts the argument to a boolean value.