Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. string WritePL(string tmpstr)
  2.   {
  3.     string aRet;
  4.     string complete;
  5.     string chrset[18] = "ąćęłńóśżźĄĆĘŁŃÓŚŻŹ";
  6.     string repl[18] = "\245\206\251\210\344\242\230\276\253\244\217\250\235\343\340\227\275\215";
  7.     int count;
  8.     for(count = 0; count <= 17; count++)
  9.     {
  10.         std::replace( tmpstr.begin(), tmpstr.end(), chrset[count], repl[count]);
  11.     }
  12.     return tmpstr;
  13.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement