Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
Pseudo_QC_Int.dox.h
1 namespace Qore {
4 
5 class <int> : public <value> {
6 
7 public:
9 
23 int abs();
24 
25 public:
27 
43 binary encodeLsb(int size = 4);
44 
45 public:
47 
63 binary encodeMsb(int size = 4);
64 
65 public:
67 
90 string format(string fmt);
91 
92 public:
94 
105 bool intp();
106 
107 public:
109 
121 int sign();
122 
123 public:
125 
136 bool strp();
137 
138 public:
140 
154 string toUnicode();
155 
156 public:
158 
172 int typeCode();
173 
174 public:
176 
190 bool val();
191 };
192 };
bool strp()
Returns True because integer values can be converted to strings.
int typeCode()
Returns Qore::NT_INT.
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:5
Methods in this pseudo-class can be executed on integer values.
Definition: Pseudo_QC_Int.dox.h:5
string toUnicode()
Returns a single character string in UTF-8 encoding for the integer value treated as a unicode value...
binary binary()
Always returns an empty binary object (of zero length)
binary encodeLsb(int size=4)
returns a binary object with the integer encoded in the given number of bytes in least significant by...
string format(string fmt)
Returns a string of a formatted number according to a format string.
int sign()
Returns -1 if the number is negative, 0 if it is zero, or 1 if it is positive.
binary encodeMsb(int size=4)
returns a binary object with the integer encoded in the given number of bytes in most significant byt...
bool val()
Returns True if the int is non-zero, False if zero.
bool intp()
Returns True by default.
int abs()
Returns the absolute value of the number.
int size()
Returns zero; this method will be reimplemented in container types where it may return a non-zero val...