Migrating deprecated aliases for absl::StrSplit, and the corresponding predicates
PiperOrigin-RevId: 317673991 Change-Id: I77569b9f0c18095c9ade9bcf3c306d2db0fb2048
This commit is contained in:
parent
604e993cd0
commit
2afae99d7f
@ -114,7 +114,7 @@ inline bool TryStripSuffixString(absl::string_view str,
|
|||||||
bool Arg<toco::IntList>::Parse(std::string text) {
|
bool Arg<toco::IntList>::Parse(std::string text) {
|
||||||
parsed_value_.elements.clear();
|
parsed_value_.elements.clear();
|
||||||
specified_ = true;
|
specified_ = true;
|
||||||
// strings::Split("") produces {""}, but we need {} on empty input.
|
// absl::StrSplit("") produces {""}, but we need {} on empty input.
|
||||||
// TODO(aselle): Moved this from elsewhere, but ahentz recommends we could
|
// TODO(aselle): Moved this from elsewhere, but ahentz recommends we could
|
||||||
// use absl::SplitLeadingDec32Values(text.c_str(), &parsed_values_.elements)
|
// use absl::SplitLeadingDec32Values(text.c_str(), &parsed_values_.elements)
|
||||||
if (!text.empty()) {
|
if (!text.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user