From 5353484086517832418955474757290903351986 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 26 Sep 2024 03:48:24 -0400 Subject: Expose Unicode conversion functions --- binaryninjaapi.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 04d8bd6d..3ba08f5f 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -17967,6 +17967,28 @@ namespace BinaryNinja { */ bool IsAborted(); }; + + namespace Unicode + { + std::string UTF16ToUTF8(const uint8_t* utf16, const size_t len); + std::string UTF32ToUTF8(const uint8_t* utf32); + bool GetBlockRange(const std::string& name, std::pair& range); + std::vector>> GetBlocksForNames(const std::vector& names); + std::vector GetBlockNames(); + std::map> GetBlockRanges(); + std::string GetUTF8String( + const std::vector>>& unicodeBlocks, + const uint8_t* data, + const size_t offset, + const size_t dataLen + ); + std::string ToEscapedString( + const std::vector>>& unicodeBlocks, + bool utf8Enabled, + const void* data, + const size_t dataLen + ); + } // namespace Unicode } // namespace BinaryNinja -- cgit v1.3.1