MCPcopy Create free account
hub / github.com/baidu/tera / IsValidColumnFamilyName

Function IsValidColumnFamilyName

src/utils/string_util.cc:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160bool IsValidColumnFamilyName(const std::string& str) {
161 if ((64 * 1024 - 1) < str.size()) { // [0, 64KB)
162 return false;
163 }
164 for (size_t i = 0; i < str.size(); ++i) {
165 char c = str[i];
166 if (!isprint(c)) {
167 return false;
168 }
169 }
170 return true;
171}
172
173std::string RoundNumberToNDecimalPlaces(double n, int d) {
174 if (d < 0 || 9 < d) {

Callers 2

TESTFunction · 0.85
CheckTableDescrptorFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68