• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
MakeZeroTerminatedInput(const uint8_t * data,int32_t size)10 std::string MakeZeroTerminatedInput(const uint8_t *data, int32_t size) {
11   return size == 0 ? "" : std::string(reinterpret_cast<const char *>(data), size);
12 }
13