| 50 | "とUnicodeで使える8ビット符号単位の文字符号化形式及び文字符号化スキーム。 "; |
| 51 | |
| 52 | static std::string MakeLargeString(const std::string& base, int64_t nbytes) { |
| 53 | int64_t nrepeats = (nbytes + base.size() - 1) / base.size(); |
| 54 | std::string s; |
| 55 | s.reserve(nrepeats * nbytes); |
| 56 | for (int64_t i = 0; i < nrepeats; ++i) { |
| 57 | s += base; |
| 58 | } |
| 59 | return s; |
| 60 | } |
| 61 | |
| 62 | static void BenchmarkUTF8Validation( |
| 63 | benchmark::State& state, // NOLINT non-const reference |
no test coverage detected