MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / StringPiece

Method StringPiece

extern/re2/re2/stringpiece.h:58–59  ·  view source on GitHub ↗

We provide non-explicit singleton constructors so users can pass in a "const char*" or a "string" wherever a "StringPiece" is expected.

Source from the content-addressed store, hash-verified

56 // in a "const char*" or a "string" wherever a "StringPiece" is
57 // expected.
58 StringPiece()
59 : data_(NULL), size_(0) {}
60#if __has_include(<string_view>) && __cplusplus >= 201703L
61 StringPiece(const std::string_view& str)
62 : data_(str.data()), size_(str.size()) {}

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected