| Qore Programming Language Reference Manual 1.0.8

ql_type.dox.h
1
3 namespace Qore {
6
8
26 auto auto_cast(auto val);
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 {
379 namespace Type {
383
385 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 }
Qore::Type::Date
const Date
Gives the type for the date values.
Definition: ql_type.dox.h:394
Qore::Type::Hash
const Hash
Gives the type for hash values.
Definition: ql_type.dox.h:398
Qore::Type::String
const String
Gives the type for string values.
Definition: ql_type.dox.h:412
Qore::Type::NullType
const NullType
Gives the type for SQL null values.
Definition: ql_type.dox.h:406
Qore::int
int int(string str, int base=10)
Converts the string to an integer value with respect to the base.
Qore::number
number number(softnumber n)
Converts the argument to a number value.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::Type::List
const List
Gives the type for list values.
Definition: ql_type.dox.h:402
Qore::Type::NothingType
const NothingType
Gives the type when no value is available.
Definition: ql_type.dox.h:404
Qore::Type::Float
const Float
Gives the type for float values.
Definition: ql_type.dox.h:396
Qore::Type::Boolean
const Boolean
Gives the type for boolean values.
Definition: ql_type.dox.h:388
Qore::Type::Binary
const Binary
Gives the type for binary values.
Definition: ql_type.dox.h:386
Qore::list
list< auto > list(...)
Returns a list of the arguments passed at the top level.
Qore::float
float float(softfloat f)
Converts the argument to a floating-point (float) value.
Qore::Type::CallReference
const CallReference
Gives the type for call references.
Definition: ql_type.dox.h:390
Qore::type
string type(auto arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
Qore::hash
hash< auto > hash(object obj)
Returns a hash of an object&#39;s members.
Qore::Type::Int
const Int
Gives the type for integer values.
Definition: ql_type.dox.h:400
Qore::string
string string(softstring str, *string enc)
Converts the argument to a string.
Qore::binary_to_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...
Qore::Type::Closure
const Closure
Gives the type for closures.
Definition: ql_type.dox.h:392
Qore::auto_cast
auto auto_cast(auto val)
Returns complex types converted to the most specific types possible using internal type folding...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::Type::Object
const Object
Gives the type for object values.
Definition: ql_type.dox.h:410
Qore::Type::Number
const Number
Gives the type for number values.
Definition: ql_type.dox.h:408
Qore::boolean
bool boolean(any arg)
Converts the argument to a boolean value.