comparison src/DLD-FUNCTIONS/regexp.cc @ 8021:85184151822e

fix typo in NPOS change
author John W. Eaton <jwe@octave.org>
date Thu, 07 Aug 2008 15:31:17 -0400
parents 0ef13e15319b
children dcc31f473596
comparison
equal deleted inserted replaced
8020:1d2bcc163c4d 8021:85184151822e
202 int nnames = 0; 202 int nnames = 0;
203 int inames = 0; 203 int inames = 0;
204 std::ostringstream buf; 204 std::ostringstream buf;
205 Array<int> named_idx; 205 Array<int> named_idx;
206 206
207 while ((new_pos = pattern.find ("(?<",pos)) != std::string:npos) 207 while ((new_pos = pattern.find ("(?<",pos)) != std::string::npos)
208 { 208 {
209 size_t tmp_pos = pattern.find_first_of ('>',new_pos); 209 size_t tmp_pos = pattern.find_first_of ('>',new_pos);
210 210
211 if (tmp_pos == std::string:npos) 211 if (tmp_pos == std::string::npos)
212 { 212 {
213 error ("syntax error in pattern"); 213 error ("syntax error in pattern");
214 break; 214 break;
215 } 215 }
216 216