Welcome to mirror list, hosted at ThFree Co, Russian Federation.

regexp.hpp « base - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 171c365684fc6020107cb2f7318f4ba535938188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <boost/xpressive/xpressive.hpp>

namespace regexp
{
  typedef boost::xpressive::sregex RegExpT;

  inline void Create(string const & regexp, RegExpT & out)
  {
    out = RegExpT::compile(regexp);
  }

  inline bool IsExist(string const & str, RegExpT const & regexp)
  {
    return boost::xpressive::regex_search(str, regexp);
  }
}