Guest User

Untitled

a guest
Jul 30th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.55 KB | None | 0 0
  1. stock EnglishToHebrew(text[])
  2. {
  3.     new TextString[256];
  4.     for(new iPos, iLen = strlen(text); iPos < iLen; iPos++)
  5.     {
  6.         switch(text[iPos])
  7.         {
  8.             case '.': strcat(TextString, "/");
  9.             case 'ש': strcat(TextString, "a");
  10.             case 'נ': strcat(TextString, "b");
  11.             case 'ב': strcat(TextString, "c");
  12.             case 'ג': strcat(TextString, "d");
  13.             case 'ק': strcat(TextString, "e");
  14.             case 'כ': strcat(TextString, "f");
  15.             case 'ע': strcat(TextString, "g");
  16.             case 'י': strcat(TextString, "h");
  17.             case 'ן': strcat(TextString, "i");
  18.             case 'ח': strcat(TextString, "j");
  19.             case 'ל': strcat(TextString, "k");
  20.             case 'ך': strcat(TextString, "l");
  21.             case 'צ': strcat(TextString, "m");
  22.             case 'מ': strcat(TextString, "n");
  23.             case 'ם': strcat(TextString, "o");
  24.             case 'פ': strcat(TextString, "p");
  25.             case '/': strcat(TextString, "q");
  26.             case 'ר': strcat(TextString, "r");
  27.             case 'ד': strcat(TextString, "s");
  28.             case 'א': strcat(TextString, "t");
  29.             case 'ו': strcat(TextString, "u");
  30.             case 'ה': strcat(TextString, "v");
  31.             case ''': strcat(TextString, "w");
  32.            case 'ס': strcat(TextString, "x");
  33.            case 'ט': strcat(TextString, "y");
  34.            case 'ז': strcat(TextString, "z");
  35.            case ' ', 0..9: strcat(TextString, text[iPos]);
  36.        }
  37.    }
  38.    return TextString;
  39. }
Add Comment
Please, Sign In to add comment