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++; |