| inline bool Char_IsNum( |
| ) |
Check if a given character is numeric (0-9)
| chr c8 | The character to check |
FALSE if the given character is not a numeric.
| inline bool Char_IsAlpha( |
| ) |
Check if a given character is alphabetic (A-Za-z)
| chr c8 | The character to check |
FALSE if the given character is not a alphabetic.
| inline bool Char_IsAlphaNum( |
| ) |
Check if a given character is alphanumeric (alphabet letter and numbers)
| chr c8 | The character to check |
FALSE if the given character is not a alphabetic or numeric.
| inline u8 String_Length( |
| ) |
Get the length of a given string
| str const c8* | The string to check |
String length.
| inline void String_Copy( |
| ) |
Copy a source string to a destination buffer
| dst c8* | Destination string (buffer must be large enough to fit the source string size) |
| src const c8* | Source string |
| void String_FromUInt8ZT( |
| ) |
Create a zero-terminated string from a 8-bits unsigned integer String buffer must be at least 4 bytes length (will be padded with '0')
| value u8 | Integer value to convert |
| string c8* | Destination string |
| void String_FromUInt8( |
| ) |
Create a string from a 8-bits unsigned integer (string is not zero-terminated) String buffer must be at least 3 bytes length (will be padded with '0') Original version derived from Galandros work (https://wikiti.brandonw.net/index.php?title=Z80_Routines:Other:DispA)
| value u8 | Integer value to convert |
| string c8* | Destination string |
| void String_FromUInt16ZT( |
| ) |
Create a zero-terminated string from a 16-bits unsigned integer String buffer must be at least 6 bytes length (will be padded with '0')
| value u16 | Integer value to convert |
| string c8* | Destination string |
| void String_FromUInt16( |
| ) |
Create a string from a 16-bits unsigned integer (string is not zero-terminated) String buffer must be at least 5 bytes length (will be padded with '0') Original version by Milos "baze" Bazelides (http://map.grauw.nl/sources/external/z80bits.html#5.1)
| value u16 | Integer value to convert |
| string c8* | Destination string |
| void String_Format( |
| ) |
Build a zero-terminated string
Data format: %[0]<padding><type>
Type: i 16 bits signed integer
d (same)
I 32 bits signed integer (need STRING_USE_INT32 flag)
D (same)
x 16 bits hexadecimal
X 32 bits hexadecimal (need STRING_USE_INT32 flag)
c 8 bits character
s Zero-terminated string
Padding: Padding for integer and hexadecimal
[0] Padding with 0 (otherwise padding with space)
| dest c8* | Destination string buffer (must big enough to contain the whole string) |
| format const c8* | Formating string |
| ... | Variable number of parameter (must match the Formating string) |