Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock EnglishToHebrew(text[])
- {
- new TextString[256];
- for(new iPos, iLen = strlen(text); iPos < iLen; iPos++)
- {
- switch(text[iPos])
- {
- case '.': strcat(TextString, "/");
- case 'ש': strcat(TextString, "a");
- case 'נ': strcat(TextString, "b");
- case 'ב': strcat(TextString, "c");
- case 'ג': strcat(TextString, "d");
- case 'ק': strcat(TextString, "e");
- case 'כ': strcat(TextString, "f");
- case 'ע': strcat(TextString, "g");
- case 'י': strcat(TextString, "h");
- case 'ן': strcat(TextString, "i");
- case 'ח': strcat(TextString, "j");
- case 'ל': strcat(TextString, "k");
- case 'ך': strcat(TextString, "l");
- case 'צ': strcat(TextString, "m");
- case 'מ': strcat(TextString, "n");
- case 'ם': strcat(TextString, "o");
- case 'פ': strcat(TextString, "p");
- case '/': strcat(TextString, "q");
- case 'ר': strcat(TextString, "r");
- case 'ד': strcat(TextString, "s");
- case 'א': strcat(TextString, "t");
- case 'ו': strcat(TextString, "u");
- case 'ה': strcat(TextString, "v");
- case ''': strcat(TextString, "w");
- case 'ס': strcat(TextString, "x");
- case 'ט': strcat(TextString, "y");
- case 'ז': strcat(TextString, "z");
- case ' ', 0..9: strcat(TextString, text[iPos]);
- }
- }
- return TextString;
- }
Add Comment
Please, Sign In to add comment