Qore Programming Language Reference Manual  0.8.13.6
ql_type.dox.h
1 
3 namespace Qore {
7 
9 
18 binary binary();
19 
21 
28 binary binary(null x);
29 
31 
41 binary binary(softstring str);
42 
44 
49 binary binary(binary bin);
50 
52 
65 string binary_to_string(binary b, *string encoding);
66 
68 
82 bool boolean(any arg);
83 
85 
97 float float(softfloat f);
98 
100 
107 float float();
108 
110 
124 hash hash(object obj);
125 
127 
139 hash hash(list l);
140 
142 
157 hash hash(list keys, list values);
158 
160 
178 hash hash(hash h);
179 
181 
186 hash hash();
187 
189 
220 int int(string str, int base = 10);
221 
223 
235 int int(softint i);
236 
238 
245 int int();
246 
248 
262 list list( ...);
263 
265 
277 number number(softnumber n);
278 
280 
287 number number();
288 
290 
305 string string(softstring str, *string enc);
306 
308 
315 string string();
316 
318 
336 string type(auto arg);
337 
339 
355 string typename(auto arg);
356 
358 };
360 namespace Qore::Type {
365 
367  const Binary = "binary";
369  const Boolean = "bool";
371  const CallReference = "call reference";
373  const Closure = "closure";
375  const Date = "date";
377  const Float = "float";
379  const Hash = "hash";
381  const Int = "integer";
383  const List = "list";
385  const NothingType = "nothing";
387  const NullType = "NULL";
389  const Number = "number";
391  const Object = "object";
393  const String = "string";
395 };
const Date
Gives the type for the date values.
Definition: ql_type.dox.h:375
const Hash
Gives the type for hash values.
Definition: ql_type.dox.h:379
const String
Gives the type for string values.
Definition: ql_type.dox.h:393
const NullType
Gives the type for SQL null values.
Definition: ql_type.dox.h:387
int int(string str, int base=10)
Converts the string to an integer value with respect to the base.
Qore::Type namespace.
Definition: ql_type.dox.h:360
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:383
const NothingType
Gives the type when no value is available.
Definition: ql_type.dox.h:385
list list(...)
Returns an untyped list of the arguments passed at the top level.
const Float
Gives the type for float values.
Definition: ql_type.dox.h:377
const Boolean
Gives the type for boolean values.
Definition: ql_type.dox.h:369
const Binary
Gives the type for binary values.
Definition: ql_type.dox.h:367
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:371
string type(auto arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
const Int
Gives the type for integer values.
Definition: ql_type.dox.h:381
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:373
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
const Object
Gives the type for object values.
Definition: ql_type.dox.h:391
hash hash(object obj)
Returns a hash of an object's members.
const Number
Gives the type for number values.
Definition: ql_type.dox.h:389
bool boolean(any arg)
Converts the argument to a boolean value.