MCPcopy Create free account
hub / github.com/aboSamoor/pycld2 / StringPiece

Method StringPiece

cld2/internal/stringpiece.h:39–39  ·  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

37 // in a "const char*" or a "string" wherever a "StringPiece" is
38 // expected.
39 StringPiece() : ptr_(NULL), length_(0) {}
40
41 StringPiece(const char* str) // NOLINT(runtime/explicit)
42 : ptr_(str), length_(0) {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected