File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -300,13 +300,17 @@ char IfcCharacterDecoder::substitution_character = '_';
300300
301301
302302IfcCharacterEncoder::IfcCharacterEncoder (const std::string& input) {
303+ #ifdef HAVE_ICU
303304 if ( !converter) converter = ucnv_open (" utf-8" , &status);
305+ #endif
304306 str = input;
305307}
306308
307309IfcCharacterEncoder::~IfcCharacterEncoder () {
310+ #ifdef HAVE_ICU
308311 if ( !converter) ucnv_close (converter);
309312 converter = 0 ;
313+ #endif
310314}
311315
312316IfcCharacterEncoder::operator std::string () {
Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ namespace IfcWrite {
7777
7878 class IfcCharacterEncoder {
7979 private:
80+ std::string str;
8081#ifdef HAVE_ICU
8182 static UErrorCode status;
8283 static UConverter* converter;
83- std::string str;
8484#endif
8585 public:
8686 IfcCharacterEncoder (const std::string& input);
You can’t perform that action at this time.
0 commit comments