/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"vulputate quam urna quis eros. Donec vel."
"\n";
-string needle = "commodo";
+const string needle = "commodo";
// legacy implementation
struct AsciiCaseInsensitiveLegacy {
}
};
-template<typename Cmp>
+template <typename Cmp>
inline void test_operator_on_search(int iters) {
Cmp cmp;
int dummy = 0;
cmp
) - lorem_ipsum.begin();
}
+ doNotOptimizeAway(dummy);
}
BENCHMARK(LegacyCaseInsensitiveCheck, iters) {