about summary refs log tree commit diff
path: root/absl/strings
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2017-09-25T22·35-0700
committerkatzdm <katzdm@google.com>2017-09-25T22·36-0400
commit2a62fbdedf64673f7c858bc6487bd15bcd2ca180 (patch)
treef77d635ce2247cca963fcb35e8816a1787f0f7eb /absl/strings
parentcf6ab6bb2b800fae859ccc735f398d22a7336a00 (diff)
Changes imported from Abseil "staging" branch:
  - 76fcc6eebc6a5b5a885f04e1579762573c2bf9bc Fix broken links, and remove old README files from Git. by Daniel Katz <katzdm@google.com>
  - 174287df7bc7c1832fe4a66d82ee0f61a8788460 Remove "test_dependencies.bzl" file. Not needed. by Daniel Katz <katzdm@google.com>
  - 4e9416b389e61f5258c3a7fc0f7966f03d9ae086 Fix broken about/intro link in README.md by Abseil Team <absl-team@google.com>
  - 2a662ff187987246cf8f3c1de83eaa23f1d2c034 Delete extraneous comments. by Abseil Team <absl-team@google.com>
  - 3bdc2d15af21e0297ccf39c90c0ed51a35900679 Cleanup usage of GUNIT_DEPS_SELECTOR/GUNIT_MAIN_DEPS_SELE... by Gennadiy Rozental <rogeeff@google.com>
  - bec32fc8efee3ae5b67c07dcae08d74540c944d0 Enable time_test on windows: by Xiaoyi Zhang <zhangxy@google.com>

GitOrigin-RevId: 76fcc6eebc6a5b5a885f04e1579762573c2bf9bc
Change-Id: I9556164f6b48dae1fa02b2ec6444517faed23e1f
Diffstat (limited to 'absl/strings')
-rw-r--r--absl/strings/BUILD.bazel61
-rw-r--r--absl/strings/README.md87
2 files changed, 38 insertions, 110 deletions
diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel
index da441e201aa4..c28f89e17d03 100644
--- a/absl/strings/BUILD.bazel
+++ b/absl/strings/BUILD.bazel
@@ -19,11 +19,6 @@
 # changes to this file, see    http://www/eng/howto/build-monitors.html
 
 load(
-    "//absl:test_dependencies.bzl",
-    "GUNIT_MAIN_DEPS_SELECTOR",
-    "GUNIT_DEPS_SELECTOR",
-)
-load(
     "//absl:copts.bzl",
     "ABSL_DEFAULT_COPTS",
     "ABSL_TEST_COPTS",
@@ -109,7 +104,10 @@ cc_test(
     size = "small",
     srcs = ["match_test.cc"],
     copts = ABSL_TEST_COPTS,
-    deps = [":strings"] + select(GUNIT_MAIN_DEPS_SELECTOR),
+    deps = [
+        ":strings",
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -124,7 +122,8 @@ cc_test(
         ":strings",
         "//absl/base:core_headers",
         "//absl/container:fixed_array",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -135,7 +134,8 @@ cc_test(
     deps = [
         ":strings",
         "//absl/base:core_headers",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -149,7 +149,8 @@ cc_test(
     deps = [
         ":strings",
         "//absl/base:core_headers",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -160,10 +161,11 @@ cc_test(
     ],
     copts = ABSL_TEST_COPTS,
     deps = [
-        ":strings",
         ":internal",
+        ":strings",
         "//absl/base:core_headers",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -173,10 +175,11 @@ cc_test(
     copts = ABSL_TEST_COPTS + ABSL_EXCEPTIONS_FLAG,
     deps = [
         ":strings",
-        "//absl/base:core_headers",
         "//absl/base:config",
+        "//absl/base:core_headers",
         "//absl/base:dynamic_annotations",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -187,7 +190,8 @@ cc_test(
     deps = [
         ":strings",
         "//absl/base:core_headers",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -197,7 +201,8 @@ cc_test(
     copts = ABSL_TEST_COPTS,
     deps = [
         ":strings",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -208,7 +213,8 @@ cc_test(
         ":strings",
         "//absl/base:core_headers",
         "//absl/base:dynamic_annotations",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -218,7 +224,8 @@ cc_test(
     copts = ABSL_TEST_COPTS,
     deps = [
         ":internal",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -232,7 +239,8 @@ cc_test(
     deps = [
         "//absl/base:core_headers",
         "//absl/meta:type_traits",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -244,7 +252,8 @@ cc_test(
         ":strings",
         "//absl/base:core_headers",
         "//absl/memory",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -255,7 +264,8 @@ cc_test(
     deps = [
         ":strings",
         "//absl/base:core_headers",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -273,7 +283,8 @@ cc_test(
         ":strings",
         "//absl/base",
         "//absl/base:core_headers",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -281,7 +292,10 @@ cc_test(
     size = "small",
     srcs = ["strip_test.cc"],
     copts = ABSL_TEST_COPTS,
-    deps = [":strings"] + select(GUNIT_MAIN_DEPS_SELECTOR),
+    deps = [
+        ":strings",
+        "@com_google_googletest//:gtest_main",
+    ],
 )
 
 cc_test(
@@ -290,5 +304,6 @@ cc_test(
     copts = ABSL_TEST_COPTS,
     deps = [
         ":internal",
-    ] + select(GUNIT_MAIN_DEPS_SELECTOR),
+        "@com_google_googletest//:gtest_main",
+    ],
 )
diff --git a/absl/strings/README.md b/absl/strings/README.md
deleted file mode 100644
index d5320eb0a635..000000000000
--- a/absl/strings/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# ABSL Strings
-
-This directory contains packages related to std::string operations and std::string
-alternatives (such as character-agnostic byte manipulation packages).
-
-## Library Listing
-
-Two library targets are available within this directory:
-
-* **strings** (`//absl/strings:strings`) provides classes and
-  utility functions for manipulating and comparing strings, converting other
-  types (such as integers) into strings, or evaluating strings for other usages
-   (such as tokenization).
-
-* **cord** (`//absl/strings:cord`) provides classes and utility
-  functions for manipulating `Cord` elements. A `Cord` is a sequence of
-  characters that internally uses a tree structure to store their data,
-  avoiding the need for long regions of contiguous memory, and allows memory
-  sharing, sub-std::string copy-on-write, and a host of other advanced std::string
-  features.
-
-## Strings Library File Listing
-
-The following header files are directly included within the
-`absl::strings` library.
-
-## Alternate std::string-like Classes
-
-* `bytestream.h`
-    <br/>Abstraction of std::string for I/O
-* `string_view.h`
-    <br/>Pointer to part or all of another std::string
-
-## Formatting and Parsing
-
-* `numbers.h`
-    <br/>Converter between strings and numbers. Prefer `str_cat.h` for numbers
-    to strings
-
-## Operations on Characters
-
-* `ascii_ctype.h`
-    <br/>Char classifiers like &lt;ctype.h&gt; but faster
-* `charset.h`
-    <br/>Bitmap from unsigned char -&gt; bool
-
-## Operations on Strings
-
-* `case.h`
-    <br/>Case-changers
-* `escaping.h`
-    <br/>Escapers and unescapers
-* `str_join.h`
-    <br/>Joiner functions using a delimiter
-* `str_split.h`
-    <br/>Split functions
-* `str_cat.h`
-    <br/>Concatenators and appenders
-* `string_view_utils.h`
-    <br>Utility functions for strings
-* `strip.h`
-    <br/>Character removal functions
-* `substitute.h`
-    <br/>Printf-like typesafe formatter
-
-## Miscellaneous
-
-* `util.h`
-    <br/>Grab bag of useful std::string functions
-
-
-## Cord Library File Listing
-
-The following header files are directly included within the
-`absl::strings::cord` library:
-
-## The `Cord` Class
-
-* `cord.h`
-    <br/>A std::string built from a tree of shareable nodes
-
-## Operations on Cords
-
-* `cord_cat.h`
-    <br/>Concatenator functions for cords
-* `cord_util.h`
-    <br/>Utility functions for cords