MCPcopy Create free account
hub / github.com/apache/impala / TrimWhiteSpace

Function TrimWhiteSpace

be/src/util/string-util.cc:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::string_view TrimWhiteSpace(std::string_view value) {
96 while (!value.empty()
97 && isspace(static_cast<unsigned char>(value.front())) != 0) {
98 value.remove_prefix(1);
99 }
100 while (!value.empty() && isspace(static_cast<unsigned char>(value.back())) != 0) {
101 value.remove_suffix(1);
102 }
103 return value;
104}
105
106bool IsAllDigits(std::string_view text) {
107 return std::all_of(text.begin(), text.end(),

Callers 4

GetQueryOptionsMethod · 0.85
GetTablesQueriedMethod · 0.85
GetResourceEstimatesMethod · 0.85
GetAnalyzedQueryMethod · 0.85

Calls 4

frontMethod · 0.80
remove_prefixMethod · 0.80
remove_suffixMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected