ZiGGi

lower/up sumb

Feb 18th, 2012
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.40 KB | None | 0 0
  1. stock lowersymb(string[],result[])
  2. {
  3.     for (new i=0,j=0,len=strlen(string); i < len; i++)
  4.     {
  5.         switch (string[i])
  6.         {
  7.             case 'а'..'я','a'..'z':
  8.             {
  9.                 result[j++] = string[i];
  10.             }
  11.         }
  12.     }
  13. }
  14.  
  15. stock upsymb(string[],result[])
  16. {
  17.     for (new i=0,j=0,len=strlen(string); i < len; i++)
  18.     {
  19.         switch (string[i])
  20.         {
  21.             case 'А'..'Я','A'..'Z':
  22.             {
  23.                 result[j++] = string[i];
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment