Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
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
174 hash hash(hash h);
175
177
182 hash hash();
183
185
202 int int(string str, softint base);
203
205
217 int int(softint i);
218
220
227 int int();
228
230
242 list list( ...);
243
245
257 number number(softnumber n);
258
260
267 number number();
268
270
282 string string(softstring str);
283
285
292 string string();
293
295
313 string type(any arg);
314
316
332 string typename(any arg);
333
335 };
337 namespace Qore::Type {
342
344 const Binary = "binary";
346 const Boolean = "bool";
348 const CallReference = "call reference";
350 const Closure = "closure";
352 const Date = "date";
354 const Float = "float";
356 const Hash = "hash";
358 const Int = "integer";
360 const List = "list";
362 const NothingType = "nothing";
364 const NullType = "NULL";
366 const Number = "number";
368 const Object = "object";
370 const String = "string";
372 };
Qore::Type::Date
const Date
Gives the type for the date values.
Definition: ql_type.dox.h:352
Qore::Type::Hash
const Hash
Gives the type for hash values.
Definition: ql_type.dox.h:356
Qore::Type::String
const String
Gives the type for string values.
Definition: ql_type.dox.h:370
Qore::Type::NullType
const NullType
Gives the type for SQL null values.
Definition: ql_type.dox.h:364
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:360
Qore::Type::NothingType
const NothingType
Gives the type when no value is available.
Definition: ql_type.dox.h:362
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
Qore::Type::Float
const Float
Gives the type for float values.
Definition: ql_type.dox.h:354
Qore::Type::Boolean
const Boolean
Gives the type for boolean values.
Definition: ql_type.dox.h:346
Qore::Type::Binary
const Binary
Gives the type for binary values.
Definition: ql_type.dox.h:344
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:348
Qore::type
string type(any arg)
Returns a string giving the data type of the argument passed; see String Type Constants for the value...
Qore::string
string string(softstring str)
Converts the argument to a string.
Qore::Type::Int
const Int
Gives the type for integer values.
Definition: ql_type.dox.h:358
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:350
Qore::int
int int(string str, softint base)
Converts the argument to an integer value.
Qore::Type::Object
const Object
Gives the type for object values.
Definition: ql_type.dox.h:368
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::Type::Number
const Number
Gives the type for number values.
Definition: ql_type.dox.h:366
Qore::boolean
bool boolean(any arg)
Converts the argument to a boolean value.