1 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. |
2 | |
3 | Licensed under the Apache License, Version 2.0 (the "License"); |
4 | you may not use this file except in compliance with the License. |
5 | You may obtain a copy of the License at |
6 | |
7 | http://www.apache.org/licenses/LICENSE-2.0 |
8 | |
9 | Unless required by applicable law or agreed to in writing, software |
10 | distributed under the License is distributed on an "AS IS" BASIS, |
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | See the License for the specific language governing permissions and |
13 | limitations under the License. |
14 | ==============================================================================*/ |
15 | |
16 | #ifndef TENSORFLOW_CORE_PLATFORM_STR_UTIL_H_ |
17 | #define TENSORFLOW_CORE_PLATFORM_STR_UTIL_H_ |
18 | |
19 | #include <string> |
20 | #include <vector> |
21 | |
22 | #include "tensorflow/core/platform/macros.h" |
23 | #include "tensorflow/core/platform/stringpiece.h" |
24 | #include "tensorflow/core/platform/types.h" |
25 | #include "tensorflow/tsl/platform/str_util.h" |
26 | |
27 | // Basic string utility routines |
28 | namespace tensorflow { |
29 | namespace str_util { |
30 | // NOLINTBEGIN(misc-unused-using-decls) |
31 | using tsl::str_util::AllowEmpty; |
32 | using tsl::str_util::ArgDefCase; |
33 | using tsl::str_util::CEscape; |
34 | using tsl::str_util::ConsumeLeadingDigits; |
35 | using tsl::str_util::ConsumeNonWhitespace; |
36 | using tsl::str_util::ConsumePrefix; |
37 | using tsl::str_util::ConsumeSuffix; |
38 | using tsl::str_util::CUnescape; |
39 | using tsl::str_util::EndsWith; |
40 | using tsl::str_util::Join; |
41 | using tsl::str_util::Lowercase; |
42 | using tsl::str_util::RemoveLeadingWhitespace; |
43 | using tsl::str_util::RemoveTrailingWhitespace; |
44 | using tsl::str_util::RemoveWhitespaceContext; |
45 | using tsl::str_util::SkipEmpty; |
46 | using tsl::str_util::SkipWhitespace; |
47 | using tsl::str_util::Split; |
48 | using tsl::str_util::StartsWith; |
49 | using tsl::str_util::StrContains; |
50 | using tsl::str_util::StringReplace; |
51 | using tsl::str_util::StripPrefix; |
52 | using tsl::str_util::StripSuffix; |
53 | using tsl::str_util::StripTrailingWhitespace; |
54 | using tsl::str_util::Strnlen; |
55 | using tsl::str_util::TitlecaseString; |
56 | using tsl::str_util::Uppercase; |
57 | // NOLINTEND(misc-unused-using-decls) |
58 | } // namespace str_util |
59 | } // namespace tensorflow |
60 | |
61 | #endif // TENSORFLOW_CORE_PLATFORM_STR_UTIL_H_ |
62 | |