1 // © 2019 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 4 #ifndef I18N_ICU_FUZZ_LOCALE_UTIL_H_ 5 #define I18N_ICU_FUZZ_LOCALE_UTIL_H_ 6 7 #include <cstdint> 8 #include <string> 9 #include "unicode/utypes.h" 10 11 // Takes uint8_t data from fuzzer, and makes a zero terminated string. 12 std::string MakeZeroTerminatedInput(const uint8_t* data, int32_t size); 13 14 #endif // I18N_ICU_FUZZ_LOCALE_UTIL_H_ 15