Go to the source code of this file.
◆ EBool
◆ AsciiToString()
proto string AsciiToString |
( |
| ) |
|
Converts ASCII code to string.
- Parameters
-
ascii | ASCII code for convert to string . |
- Returns
string
- Converted int
. int ascii_code = 77;
string str = ascii_code.AsciiToString();
>> str = 'M'
◆ InRange()
Check whether integer falls into an inclusive range.
- Parameters
-
min | int low end of range |
max | int high end of range |
- Returns
bool
True if this value is withing the set range int num = 123;
bool test = num.InRange( 100, 150 );
>> s = true
Definition at line 84 of file enconvert.c.
◆ ToString()
◆ ToStringLen()
Integer to string with fixed length, padded with zeroes.
- Parameters
-
num | int integer to convert |
len | int fixed length |
- Returns
vector
Converted s as vector int num = 123;
string s = num.ToStringLen(5);
>> s = '00123'
Definition at line 59 of file enconvert.c.
◆ MAX
const int MAX = 2147483647 |
◆ MIN
const int MIN = -2147483648 |
◆ ZERO_PAD_SIZE
enum EBool ZERO_PAD_SIZE = 8 |