Up |
strtotab
Create an ascii array from a string. Don't use mktab before to create the array, the array is automatically created by strtotab.
Prototype :
fun [S] tab I
- S : any string.
Return : tab I a new ascii array or nil if an error occurs.
See also :
Example :
typeof tab = tab I;;
fun ftab (char, index)=
if (char == 'z) then
set tab.index = 'e
else
0;;
fun main ()=
_showconsole;
set tab = strtotab "Hzllo World";
forTab @ftab tab;
_fooS tabtostr tab; // Hello World
0;;