tvl-depot/absl/strings
Abseil Team 93d155bc44 Export of internal Abseil changes.
--
3d20ce6cd6541579abecaba169d4b8716d511272 by Jon Cohen <cohenjon@google.com>:

Only use LSAN for clang version >= 3.5.  This should fix https://github.com/abseil/abseil-cpp/issues/244

PiperOrigin-RevId: 234675129

--
e15bd4ec7a81aa95cc3d09fa1e0e81d58ae478fb by Conrad Parker <conradparker@google.com>:

Fix errors in apply() sample code

The following changes are made:
 * Make the example method public.
 * Give the two user functions different names to avoid confusion about
   whether apply() can select the correct overload of a function based
   on its tuple argument (it can't).
 * Pass tuple2 to the second example apply() invocation, instead of
   passing its contents individually.
 * Fix a s/tuple/tuple3/ typo in the third example apply() invocation.

PiperOrigin-RevId: 234223407

--
de0ed71e21bc76ddf9fe715fdbaef74cd0df95c7 by Abseil Team <absl-team@google.com>:

First test if a macro is defined to avoid -Wundef.

ABSL clients may need to compile their code with the -Wundef warning
flag. It will be helpful if ABSL header files can be compiled without
the -Wundef warning.

How to avoid the -Wundef warning: If a macro may be undefined, we need
to first test whether the macro is defined before testing its value. We
can't rely on the C preprocessor rule that an undefined macro has the
value 0L.

PiperOrigin-RevId: 234201123

--
fa484ad7dae0cac21140a96662809ecb0ec8eb5d by Abseil Team <absl-team@google.com>:

Internal change.

PiperOrigin-RevId: 234185697

--
d69b1baef681e27954b065375ecf9c2320463b2b by Samuel Benzaquen <sbenza@google.com>:

Mix pointers more thoroughly.
Some pointer alignments interact badly with the mixing constant. By mixing twice we reduce this problem.

PiperOrigin-RevId: 234178401

--
1041d0e474610f3a8fea0db90958857327d6da1c by Samuel Benzaquen <sbenza@google.com>:

Record rehashes in the hashtablez struct.
Only recording the probe length on insertion causes a huge overestimation of
the total probe length at any given time.

With natural growth, elements are inserted when the load factor is between
(max load/2, max load). However, after a rehash the majority of elements are
actually inserted when the load factor is less than max/2 and have a much lower
average probe length.

Also reset some values when the table is cleared.

PiperOrigin-RevId: 234013580

--
299205caf3c89c47339f7409bc831746602cea84 by Mark Barolak <mbar@google.com>:

Fix a sample code snippet that assumes `absl::string_view::const_iterator` is `const char*`.  This is generally true, however in C++17 builds, absl::string_view is an alias for std::string_view and on MSVC, the std::string_view::const_iterator is an object instead of just a pointer.

PiperOrigin-RevId: 233844595

--
af6c6370cf51a1e6c1469c79dfb2a486a4009136 by Abseil Team <absl-team@google.com>:

Internal change.

PiperOrigin-RevId: 233773470

--
6e59e4b8e2bb6101b448f0f32b0bea81fe399ccf by Abseil Team <absl-team@google.com>:

fix typo in {Starts|Ends}WithIgnoreCase comment in match.h

PiperOrigin-RevId: 233662951
GitOrigin-RevId: 3d20ce6cd6541579abecaba169d4b8716d511272
Change-Id: Ib9a29b1c38c6aedf5d9f3f7f00596e8d30e864dd
2019-02-20 18:02:20 -05:00
..
internal Export of internal Abseil changes. 2019-02-07 17:48:22 -05:00
testdata Initial Commit 2017-09-19 16:54:40 -04:00
ascii.cc Initial Commit 2017-09-19 16:54:40 -04:00
ascii.h Export of internal Abseil changes. 2018-08-30 10:48:15 -04:00
ascii_benchmark.cc Export of internal Abseil changes. 2018-07-20 09:18:23 -04:00
ascii_test.cc - 31d03284ca8017ba59d98d47e7d041f361d478a7 Release escaping microbenchmarks. by Alex Strelnikov <strel@google.com> 2018-05-24 13:59:23 -04:00
BUILD.bazel Export of internal Abseil changes. 2018-12-05 15:38:39 -05:00
charconv.cc Export of internal Abseil changes. 2018-08-23 13:48:48 -04:00
charconv.h Export of internal Abseil changes. 2018-08-22 11:02:33 -04:00
charconv_benchmark.cc -- 2018-06-18 16:20:03 -04:00
charconv_test.cc Export of internal Abseil changes. 2018-12-04 16:27:57 -05:00
CMakeLists.txt Export of internal Abseil changes. 2018-12-12 11:52:06 -05:00
escaping.cc Export of internal Abseil changes. 2018-12-26 12:35:10 -05:00
escaping.h Export of internal Abseil changes. 2018-08-31 10:48:01 -04:00
escaping_benchmark.cc - e2f6b8ac647271815b4fed2991f405524dd762c3 Release cctz microbenchmarks. by Alex Strelnikov <strel@google.com> 2018-05-31 15:58:36 -04:00
escaping_test.cc Export of internal Abseil changes. 2018-09-05 15:21:18 -04:00
match.cc Export of internal Abseil changes. 2018-12-12 11:52:06 -05:00
match.h Export of internal Abseil changes. 2019-02-20 18:02:20 -05:00
match_test.cc Export of internal Abseil changes. 2018-10-09 15:36:40 -04:00
numbers.cc Export of internal Abseil changes. 2018-12-21 14:43:20 -05:00
numbers.h Export of internal Abseil changes. 2018-12-21 14:43:20 -05:00
numbers_benchmark.cc Export of internal Abseil changes. 2018-08-22 11:02:33 -04:00
numbers_test.cc Export of internal Abseil changes. 2018-12-04 16:27:57 -05:00
str_cat.cc Export of internal Abseil changes. 2018-11-02 12:35:09 -04:00
str_cat.h Export of internal Abseil changes. 2018-11-29 15:52:29 -05:00
str_cat_benchmark.cc - e2f6b8ac647271815b4fed2991f405524dd762c3 Release cctz microbenchmarks. by Alex Strelnikov <strel@google.com> 2018-05-31 15:58:36 -04:00
str_cat_test.cc Export of internal Abseil changes. 2018-11-29 15:52:29 -05:00
str_format.h Export of internal Abseil changes. 2019-01-31 13:00:01 -05:00
str_format_test.cc Export of internal Abseil changes. 2018-10-24 16:47:28 -04:00
str_join.h Export of internal Abseil changes. 2018-08-22 11:02:33 -04:00
str_join_benchmark.cc - e2f6b8ac647271815b4fed2991f405524dd762c3 Release cctz microbenchmarks. by Alex Strelnikov <strel@google.com> 2018-05-31 15:58:36 -04:00
str_join_test.cc - 07191b0f52301e1e4a790e236f7b7c2fd90561ae Disambiguates computed return type of absl::optional logi... by Abseil Team <absl-team@google.com> 2018-05-04 13:30:42 -04:00
str_replace.cc Initial Commit 2017-09-19 16:54:40 -04:00
str_replace.h Export of internal Abseil changes. 2018-08-24 15:09:36 -04:00
str_replace_benchmark.cc Export of internal Abseil changes. 2018-08-22 11:02:33 -04:00
str_replace_test.cc Changes imported from Abseil "staging" branch: 2017-09-25 10:12:29 -04:00
str_split.cc Export of internal Abseil changes. 2018-08-30 10:48:15 -04:00
str_split.h Export of internal Abseil changes. 2019-02-20 18:02:20 -05:00
str_split_benchmark.cc Export of internal Abseil changes. 2018-11-02 12:35:09 -04:00
str_split_test.cc Export of internal Abseil changes. 2019-02-07 17:48:22 -05:00
string_view.cc - bd7f5fa7ad5b7f1371315d45e4e4863f2c2ad9f6 Remove unused includes from string_view.cc. by Greg Falcon <gfalcon@google.com> 2018-05-08 14:35:03 -04:00
string_view.h Export of internal Abseil changes. 2018-12-05 15:38:39 -05:00
string_view_benchmark.cc Export of internal Abseil changes. 2018-10-22 15:01:16 -04:00
string_view_test.cc Export of internal Abseil changes. 2018-10-22 15:01:16 -04:00
strip.h Export of internal Abseil changes. 2018-08-22 11:02:33 -04:00
strip_test.cc Export of internal Abseil changes. 2018-12-26 12:35:10 -05:00
substitute.cc - 3a9532fb2d6ae45c3cba44c9bb0dbdfc1558b7d3 Fix the description of Span::subspan(). by Abseil Team <absl-team@google.com> 2018-04-24 10:09:46 -04:00
substitute.h Export of internal Abseil changes. 2018-08-22 11:02:33 -04:00
substitute_test.cc - 3a9532fb2d6ae45c3cba44c9bb0dbdfc1558b7d3 Fix the description of Span::subspan(). by Abseil Team <absl-team@google.com> 2018-04-24 10:09:46 -04:00