Add ICU header and namespace in IfcCharacterDecoder

To compile on macOS with a recent ICU, we have to add the correct header and refer to the right namespace in IfcCharacterDecoder
This commit is contained in:
Stefan Boeykens
2018-06-17 15:15:52 +02:00
parent 4cfb2f1027
commit 0ba1ac7df3
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ void IfcCharacterDecoder::addChar(std::stringstream& s,const UChar32& ch) {
maximum length in bytes is 4. We add 1 for the NUL character. In other encodings
the length could be higher, but we have not taken that into account. */
char extraction_buffer[5] = {};
UnicodeString(ch).extract(extraction_buffer,5,destination,status);
icu::UnicodeString(ch).extract(extraction_buffer,5,destination,status);
extraction_buffer[4] = '\0';
s << extraction_buffer;
} else {
@@ -386,4 +386,4 @@ IfcCharacterEncoder::operator std::string() {
#ifdef HAVE_ICU
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
UConverter* IfcCharacterEncoder::converter = 0;
#endif
#endif