Page Speed Optimization Libraries  1.4.26.1
Functions
net/instaweb/util/public/re2.h File Reference
#include "net/instaweb/util/public/string_util.h"
#include "third_party/re2/src/re2/re2.h"

Go to the source code of this file.

Functions

re2::StringPiece StringPieceToRe2 (StringPiece sp)
 NET_INSTAWEB_UTIL_PUBLIC_RE2_H_.

Detailed Description


Function Documentation

re2::StringPiece StringPieceToRe2 ( StringPiece  sp) [inline]

NET_INSTAWEB_UTIL_PUBLIC_RE2_H_.

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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines