- Timestamp:
- 08/28/07 12:47:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataPhrase.cc
r8704 r8717 143 143 while (1) 144 144 { 145 // \\A: matches the beginning of the string like ^ does 146 // \\Z: matches the end of the string like $ does 145 147 // \\W: matches any non-word character [^a-zA-Z_0-9] 146 TPRegexp reg(Form(" \\W\\[0*%d\\]\\W", idx));148 TPRegexp reg(Form("(\\A|\\W)\\[0*%d\\](\\W|\\Z)", idx)); 147 149 if (reg.Match(phrase, mods, 0, 130, &pos)==0) 148 150 break; … … 268 270 269 271 // Also hex-numbers and floats fullfill our condition... 272 // FIXME: WHY HEX NUMBERS? 270 273 if (!expr(ishex).IsNull() || expr.IsFloat()) 271 274 {
Note:
See TracChangeset
for help on using the changeset viewer.