Home | History | Annotate | Download | only in ops

Lines Matching refs:result

61   string result(absl::AsciiStrToLower(absl::string_view(input.str, input.len)));
62 absl::StripAsciiWhitespace(&result);
65 RE2::GlobalReplace(&result, kPunctuationsRegex, "");
66 RE2::GlobalReplace(&result, "\\s('t|'nt|n't|'d|'ll|'s|'m|'ve|'re)([\\s,;:/])",
68 RE2::GlobalReplace(&result, "\\s('t|'nt|n't|'d|'ll|'s|'m|'ve|'re)$", "\\1");
71 RE2::GlobalReplace(&result, iter->first, iter->second);
75 RE2::GlobalReplace(&result, "([?])+", "\\1");
76 RE2::GlobalReplace(&result, "([!])+", "\\1");
77 RE2::GlobalReplace(&result, "([^?!]+)([?!])", "\\1 \\2 ");
78 RE2::GlobalReplace(&result, "([?!])([?!])", "\\1 \\2");
80 RE2::GlobalReplace(&result, "[\\s,:;\\-&'\"]+$", "");
81 RE2::GlobalReplace(&result, "^[\\s,:;\\-&'\"]+", "");
82 absl::StripAsciiWhitespace(&result);
86 if (result.length() <= kMaxInputChars) {
87 absl::StrAppend(&result, " ", kEndToken);
89 result = result.substr(0, kMaxInputChars);
91 result = absl::StrCat(kStartToken, " ", result);
94 buf.AddString(result.data(), result.length());