+++ /dev/null
-/* Copyright 2013 Google Inc. All Rights Reserved.\r
-\r
- Distributed under MIT license.\r
- See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r
-*/\r
-\r
-/* Heuristics for deciding about the UTF8-ness of strings. */\r
-\r
-#ifndef BROTLI_ENC_UTF8_UTIL_H_\r
-#define BROTLI_ENC_UTF8_UTIL_H_\r
-\r
-#include "../common/platform.h"\r
-#include <brotli/types.h>\r
-\r
-#if defined(__cplusplus) || defined(c_plusplus)\r
-extern "C" {\r
-#endif\r
-\r
-static const double kMinUTF8Ratio = 0.75;\r
-\r
-/* Returns 1 if at least min_fraction of the bytes between pos and\r
- pos + length in the (data, mask) ring-buffer is UTF8-encoded, otherwise\r
- returns 0. */\r
-BROTLI_INTERNAL BROTLI_BOOL BrotliIsMostlyUTF8(\r
- const uint8_t* data, const size_t pos, const size_t mask,\r
- const size_t length, const double min_fraction);\r
-\r
-#if defined(__cplusplus) || defined(c_plusplus)\r
-} /* extern "C" */\r
-#endif\r
-\r
-#endif /* BROTLI_ENC_UTF8_UTIL_H_ */\r