Merge commit '58ce86d538971fc1815d56368d7077aa85e0592c' into v0.6.0

This commit is contained in:
Thomas Krijnen
2018-09-08 13:07:09 +02:00
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -17,7 +17,9 @@
# # # #
################################################################################ ################################################################################
cmake_minimum_required (VERSION 2.8.5) cmake_minimum_required(VERSION 3.1.3)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON) # not necessary, but encouraged
project (IfcOpenShell) project (IfcOpenShell)
+1 -1
View File
@@ -81,7 +81,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 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. */ the length could be higher, but we have not taken that into account. */
char extraction_buffer[5] = {}; 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'; extraction_buffer[4] = '\0';
s << extraction_buffer; s << extraction_buffer;
} else { } else {
+1
View File
@@ -32,6 +32,7 @@
#ifdef HAVE_ICU #ifdef HAVE_ICU
#include "unicode/ucnv.h" #include "unicode/ucnv.h"
#include "unicode/unistr.h"
#else #else
typedef unsigned int UChar32; typedef unsigned int UChar32;
#endif #endif