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

Function RemoveLeadingWhitespace

tensorflow/core/platform/str_util.cc:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42size_t RemoveLeadingWhitespace(StringPiece* text) {
43 absl::string_view new_text = absl::StripLeadingAsciiWhitespace(*text);
44 size_t count = text->size() - new_text.size();
45 *text = new_text;
46 return count;
47}
48
49size_t RemoveTrailingWhitespace(StringPiece* text) {
50 absl::string_view new_text = absl::StripTrailingAsciiWhitespace(*text);

Callers 6

ComputeMethod · 0.85
ParseAttrValueFunction · 0.85
FinalizeAttrFunction · 0.85
ScanWordFunction · 0.85
SplitV2Function · 0.85
TESTFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68