MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RemoveTrailingWhitespace

Function RemoveTrailingWhitespace

tensorflow/core/platform/str_util.cc:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49size_t RemoveTrailingWhitespace(StringPiece* text) {
50 absl::string_view new_text = absl::StripTrailingAsciiWhitespace(*text);
51 size_t count = text->size() - new_text.size();
52 *text = new_text;
53 return count;
54}
55
56size_t RemoveWhitespaceContext(StringPiece* text) {
57 absl::string_view new_text = absl::StripAsciiWhitespace(*text);

Callers 2

ParseAttrValueFunction · 0.85
TESTFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68