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