Line | Count | Source |
1 | // © 2019 and later: Unicode, Inc. and others. | |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
3 | ||
4 | // Helper method for ICU locale fuzzer. | |
5 | ||
6 | #include "locale_util.h" | |
7 | ||
8 | #include <string> | |
9 | ||
10 | 23.6k | std::string MakeZeroTerminatedInput(const uint8_t *data, int32_t size) { |
11 | 23.6k | return size == 0 ? "" : std::string(reinterpret_cast<const char *>(data), size); |
12 | 23.6k | } |