Changeset 4394


Ignore:
Timestamp:
Jan 3, 2015, 6:34:04 AM (4 years ago)
Author:
cameron
Message:

Implement \w, \s as \p{whitespace}, \p{word}.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r4377 r4394  
    364364
    365365RE * makeDigitSet() {
    366   return makeName("Nd", Name::Type::UnicodeProperty);
     366    return makeName("Nd", Name::Type::UnicodeProperty);
    367367}
    368368
    369369RE * makeWhitespaceSet() {
    370   throw ParseFailure("\\s not implemented.");
     370    return makeName("Whitespace", Name::Type::UnicodeProperty);
    371371}
    372372
    373373RE * makeWordSet() {
    374   throw ParseFailure("\\w not implemented.");
     374    return makeName("word", Name::Type::UnicodeProperty);
    375375}
    376376
Note: See TracChangeset for help on using the changeset viewer.