src/string.cpp

changeset 237
ec77f6e9a19f
parent 236
b58d35dc5d52
child 247
1a2ca515f683
equal deleted inserted replaced
236:b58d35dc5d52 237:ec77f6e9a19f
175 175
176 // ============================================================================ 176 // ============================================================================
177 int String::first (const char* c, int a) const { 177 int String::first (const char* c, int a) const {
178 unsigned int r = 0; 178 unsigned int r = 0;
179 unsigned int index = 0; 179 unsigned int index = 0;
180 for (; a < len (); a++) { 180 for (; a < (int) len (); a++) {
181 if (m_string[a] == c[r]) { 181 if (m_string[a] == c[r]) {
182 if (r == 0) 182 if (r == 0)
183 index = a; 183 index = a;
184 184
185 r++; 185 r++;

mercurial