utf8.h 411 B

12345678910111213141516
  1. #pragma once
  2. #include <optional>
  3. #include <string_view>
  4. namespace NYql {
  5. bool IsUtf8(const std::string_view& str);
  6. unsigned char WideCharSize(char head);
  7. std::optional<std::string> RoundToNearestValidUtf8(const std::string_view& str, bool roundDown);
  8. std::optional<std::string> NextValidUtf8(const std::string_view& str);
  9. std::optional<std::string> NextLexicographicString(const std::string_view& str);
  10. }