BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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 
void encodeUtf8(const std::wstring &input, std::string *storage)
Definition: utf8.cpp:42
std::string prune_invalid_utf8(const std::string &str)
Definition: api.hpp:15
bool is_utf8(const std::string &str)
Definition: utf8.cpp:14
void decodeUtf8(const std::string &input, std::wstring *storage)
Definition: utf8.cpp:35