From cdf20caa491f59c0a35a8d8fbec0d948e4bc7e4c Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 27 Sep 2017 10:50:48 -0700 Subject: Changes imported from Abseil "staging" branch: - 43853019b439efb32c79d5d50e24508588e1bbe0 Undo the not applying qualifications to absl types in enc... by Derek Mauro - 06d62a10621c9864279ee57097069cfe3cb7b42a fix capitalization by Abseil Team - 22adbfee340bb452ba38b68975ade6f072859c4a Fix indices in str_split.h comments. by Derek Mauro - ae5143a559ad8633a78cd76620e30a781006d088 Fix the inconsistent licenses directives in the BUILD fil... by Derek Mauro - 0a76a3653b2ecfdad433d3e2f5b651c4ecdcf74b Remove strip.cc, fastmem.h, and fastmem_test.cc from the ... by Derek Mauro - 77908cfce5927aabca1f8d62481106f22cfc1936 Internal change. by Derek Mauro - d3277b4171f37e22ab346becb5e295c36c7a0219 Be consistent in (not) applying qualifications for enclos... by Abseil Team - 9ec7f8164e7d6a5f64288a7360a346628393cc50 Add std:: qualification to isnan and isinf in duration_te... by Derek Mauro - 9f7c87d7764ddba05286fabca1f4f15285f3250a Fix typos in string_view comments. by Abseil Team - 281860804f8053143d969b99876e3dbc6deb1236 Fix typo in container.h docs. by Abseil Team - 0b0a9388c7a9d7f72349d44b5b46132f45bde56c Add bazel-* symlinks to gitignore. by Michael Pratt GitOrigin-RevId: 43853019b439efb32c79d5d50e24508588e1bbe0 Change-Id: I9e74a5430816a34ecf1acb86486ed3b0bd12a1d6 --- absl/strings/str_split.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'absl/strings/str_split.h') diff --git a/absl/strings/str_split.h b/absl/strings/str_split.h index a7b48b18..5b3d6a8a 100644 --- a/absl/strings/str_split.h +++ b/absl/strings/str_split.h @@ -118,7 +118,7 @@ namespace absl { // using absl::ByString; // std::vector v2 = absl::StrSplit("a, b, c", // ByString(", ")); -// // v[0] == "a", v[1] == "b", v[3] == "c" +// // v[0] == "a", v[1] == "b", v[2] == "c" class ByString { public: explicit ByString(absl::string_view sp); @@ -141,7 +141,7 @@ class ByString { // std::vector v1 = absl::StrSplit("a,b,c", ','); // using absl::ByChar; // std::vector v2 = absl::StrSplit("a,b,c", ByChar(',')); -// // v[0] == "a", v[1] == "b", v[3] == "c" +// // v[0] == "a", v[1] == "b", v[2] == "c" // // `ByChar` is also the default delimiter if a single character is given // as the delimiter to `StrSplit()`. For example, the following calls are @@ -173,7 +173,7 @@ class ByChar { // // using absl::ByAnyChar; // std::vector v = absl::StrSplit("a,b=c", ByAnyChar(",=")); -// // v[0] == "a", v[1] == "b", v[3] == "c" +// // v[0] == "a", v[1] == "b", v[2] == "c" // // If `ByAnyChar` is given the empty std::string, it behaves exactly like // `ByString` and matches each individual character in the input std::string. @@ -390,7 +390,7 @@ struct SkipWhitespace { // // using absl::ByAnyChar; // std::vector v = absl::StrSplit("a,b=c", ByAnyChar(",=")); -// // v[0] == "a", v[1] == "b", v[3] == "c" +// // v[0] == "a", v[1] == "b", v[2] == "c" // // See above for more information on delimiters. // -- cgit v1.2.3