#include "pagespeed/kernel/base/string_util.h"
#include "third_party/re2/src/re2/re2.h"
Go to the source code of this file.
|
const RE2::CannedOptions | re2::posix_syntax = RE2::POSIX |
|
re2::StringPiece StringPieceToRe2 |
( |
StringPiece |
sp | ) |
|
|
inline |
Converts a Google StringPiece into an RE2 StringPiece. These are of course the same basic thing but are declared in distinct namespaces and as far as C++ type-checking is concerned they are incompatible.
- Todo:
- TODO(jmarantz): In the re2 code itself there are no references to re2::StringPiece, always just plain StringPiece, so if we can arrange to get the right definition #included we should be all set. We could somehow rewrite '#include "re2/stringpiece.h"' to #include Chromium's stringpiece then everything would just work.