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

Function trunc

extern/re2/re2/re2.cc:107–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static std::string trunc(const StringPiece& pattern) {
108 if (pattern.size() < 100)
109 return std::string(pattern);
110 return std::string(pattern.substr(0, 100)) + "...";
111}
112
113
114RE2::RE2(const char* pattern) {

Callers 3

InitMethod · 0.70
ReverseProgMethod · 0.70
MakeUint128FromFloatFunction · 0.50

Calls 2

sizeMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected