Commit e234de556c3696758f2139ae2d2ad208ffa69b26
1 parent
7b54032a
move to_String(Int32) from basis.anubis to convert.anubis
Showing
2 changed files
with
15 additions
and
8 deletions
Show diff stats
anubis_dev/library/system/convert.anubis
| ... | ... | @@ -19,6 +19,13 @@ read system/string.anubis |
| 19 | 19 | |
| 20 | 20 | public define ByteArray reverse(ByteArray source). |
| 21 | 21 | |
| 22 | + | |
| 23 | +public define ByteArray to_ByteArray(Bool value). | |
| 24 | +public define ByteArray to_ByteArray(Int8 value). | |
| 25 | + | |
| 26 | +public define String to_String(Int32 value). | |
| 27 | + | |
| 28 | + | |
| 22 | 29 | public define ByteArray |
| 23 | 30 | to_ByteArray |
| 24 | 31 | ( |
| ... | ... | @@ -173,3 +180,11 @@ public define ByteArray |
| 173 | 180 | dest = constant_byte_array(len,0), |
| 174 | 181 | reverse(source, dest, len - 1, 0). |
| 175 | 182 | |
| 183 | + /************** to_String part *************/ | |
| 184 | + | |
| 185 | +public define String | |
| 186 | + to_String | |
| 187 | + ( | |
| 188 | + Int32 v | |
| 189 | + )= | |
| 190 | + integer_to_string(v). | ... | ... |
anubis_dev/library/tools/basis.anubis