Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string WritePL(string tmpstr)
- {
- string aRet;
- string complete;
- string chrset[18] = "ąćęłńóśżźĄĆĘŁŃÓŚŻŹ";
- string repl[18] = "\245\206\251\210\344\242\230\276\253\244\217\250\235\343\340\227\275\215";
- if(tmpstr != "")
- {
- int len;
- for(len = 0; len <= tmpstr.size() - 1; len++)
- {
- complete = "no";
- int parse;
- for(parse = 0; parse <= 17; parse++)
- {
- if(tmpstr.substr(len,1) == chrset[parse])
- {
- aRet = aRet + repl[parse];
- complete = "yes";
- break;
- }
- }
- if(complete == "no")
- {
- aRet = aRet + tmpstr.substr(len,1);
- }
- }
- return aRet;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement