#2482 Use u32string for character encoder, remove CODECVT_BOOST_FALLBACK

This commit is contained in:
Thomas Krijnen
2022-10-10 14:19:42 +02:00
parent 16582cf57f
commit 64ff046e96
2 changed files with 19 additions and 18 deletions
+2 -1
View File
@@ -36,6 +36,7 @@ namespace IfcUtil {
std::wstring::value_type convert_codepage(int codepage, int c);
std::string convert_utf8(const std::wstring& s);
std::wstring convert_utf8(const std::string& s);
std::u32string convert_utf8_to_utf32(const std::string& s);
}
namespace IfcParse {
@@ -67,7 +68,7 @@ namespace IfcWrite {
class IFC_PARSE_API IfcCharacterEncoder {
private:
std::wstring str;
std::u32string str;
public:
IfcCharacterEncoder(const std::string& input);
operator std::string();