sources/mystring.cpp

changeset 14
33b8f428bacb
parent 12
8d0d1b368de0
child 66
bd28a5730fd0
equal deleted inserted replaced
13:09dcaeaa216b 14:33b8f428bacb
61 String copy (m_string); 61 String copy (m_string);
62 62
63 for (char c : unwanted) 63 for (char c : unwanted)
64 { 64 {
65 for (int pos = 0; (pos = copy.find (String (c))) != -1;) 65 for (int pos = 0; (pos = copy.find (String (c))) != -1;)
66 copy.remove (pos--); 66 copy.remove_at (pos--);
67 } 67 }
68 68
69 return copy; 69 return copy;
70 } 70 }
71 71

mercurial