#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/i18n/string_search.h"
#include <stddef.h>
#include <string>
#include <vector>
#include "base/i18n/rtl.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/icu/source/i18n/unicode/usearch.h"
namespace base {
namespace i18n {
#define EXPECT_MATCH_IGNORE_CASE(find_this, in_this, ex_start, ex_len) …
#define EXPECT_MATCH_SENSITIVE(find_this, in_this, ex_start, ex_len) …
#define EXPECT_MATCH_IGNORE_CASE_BACKWARDS(find_this, in_this, ex_start, \
ex_len) …
#define EXPECT_MATCH_SENSITIVE_BACKWARDS(find_this, in_this, ex_start, ex_len) …
#define EXPECT_MISS_IGNORE_CASE(find_this, in_this) …
#define EXPECT_MISS_SENSITIVE(find_this, in_this) …
#define EXPECT_MISS_IGNORE_CASE_BACKWARDS(find_this, in_this) …
#define EXPECT_MISS_SENSITIVE_BACKWARDS(find_this, in_this) …
TEST(StringSearchTest, ASCII) { … }
TEST(StringSearchTest, UnicodeLocaleIndependent) { … }
TEST(StringSearchTest, UnicodeLocaleDependent) { … }
TEST(StringSearchTest, SearchBackwards) { … }
TEST(StringSearchTest, FixedPatternMultipleSearch) { … }
TEST(StringSearchTest, RepeatingStringSearch) { … }
}
}