BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
utf8.hpp
Go to the documentation of this file.
1 #ifndef __UTF8_HPP
2 #define __UTF8_HPP
3 
4 #include <string>
5 
6 // This file contains general purpose utilities related to UTF-8 <-> Unicode conversions
7 
8 namespace fc
9 {
10 
11  std::string prune_invalid_utf8( const std::string& str );
12 
13  bool is_utf8( const std::string& str );
14 
19  void decodeUtf8(const std::string& input, std::wstring* storage);
20 
25  void encodeUtf8(const std::wstring& input, std::string* storage);
26 
27 }
28 
29 #endif
30 
fc
Definition: api.hpp:15
fc::decodeUtf8
void decodeUtf8(const std::string &input, std::wstring *storage)
Definition: utf8.cpp:35
fc::prune_invalid_utf8
std::string prune_invalid_utf8(const std::string &str)
fc::encodeUtf8
void encodeUtf8(const std::wstring &input, std::string *storage)
Definition: utf8.cpp:42
fc::is_utf8
bool is_utf8(const std::string &str)
Definition: utf8.cpp:14