Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs | Functions | Variables
re2.h File Reference
#include "pagespeed/kernel/base/string_util.h"
#include "third_party/re2/src/re2/re2.h"

Go to the source code of this file.

Typedefs

typedef re2::StringPiece Re2StringPiece
 namespace re2
 

Functions

re2::StringPiece StringPieceToRe2 (StringPiece sp)
 
StringPiece Re2ToStringPiece (re2::StringPiece sp)
 PAGESPEED_KERNEL_UTIL_RE2_H_.
 

Variables

const RE2::CannedOptions re2::posix_syntax = RE2::POSIX
 

Function Documentation

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.