Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RastiZodi ( string eilute, string skyrikliai, string duotZod, int & pradzia )
- {
- int temp=0;
- pradzia=0;
- while (temp != -1) {
- temp = eilute.find(duotZod, pradzia);
- if (temp != -1) {
- int tmp = temp+duotZod.length() + 2;
- if((eilute.find_first_of(skyrikliai, temp-1) != -1) && (eilute.find_first_of(skyrikliai, temp+duotZod.length()) <= temp+duotZod.length()+2)) { pradzia = temp; temp=-1; }
- else { pradzia = temp+duotZod.length(); }
- }
- }
- }
Add Comment
Please, Sign In to add comment