helpers.h 435 B

1234567891011121314151617
  1. #pragma once
  2. #include "client.h"
  3. #include <util/charset/utf8.h>
  4. namespace NUnifiedAgent::NPrivate {
  5. bool IsUtf8(const THashMap<TString, TString>& meta);
  6. struct ResultReplacingNonUTF {
  7. bool IsTruncated{false};
  8. size_t BrokenCount{0};
  9. TString Data;
  10. };
  11. ResultReplacingNonUTF ReplaceNonUTF(TStringBuf message, char signBrokenSymbol = '?', size_t maxSize = std::numeric_limits<size_t>::max());
  12. }