11/* *******************************************************************************
2- * *
3- * This file is part of IfcOpenShell. *
4- * *
5- * IfcOpenShell is free software: you can redistribute it and/or modify *
6- * it under the terms of the Lesser GNU General Public License as published by *
7- * the Free Software Foundation, either version 3.0 of the License, or *
8- * (at your option) any later version. *
9- * *
10- * IfcOpenShell is distributed in the hope that it will be useful, *
11- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13- * Lesser GNU General Public License for more details. *
14- * *
15- * You should have received a copy of the Lesser GNU General Public License *
16- * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17- * *
18- ********************************************************************************/
19-
20- /* *******************************************************************************
21- * *
22- * Implementation of character decoding as described in ISO 10303-21 table 2 and *
23- * table 4 *
24- * *
25- ********************************************************************************/
26-
2+ * *
3+ * This file is part of IfcOpenShell. *
4+ * *
5+ * IfcOpenShell is free software: you can redistribute it and/or modify *
6+ * it under the terms of the Lesser GNU General Public License as published by *
7+ * the Free Software Foundation, either version 3.0 of the License, or *
8+ * (at your option) any later version. *
9+ * *
10+ * IfcOpenShell is distributed in the hope that it will be useful, *
11+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+ * Lesser GNU General Public License for more details. *
14+ * *
15+ * You should have received a copy of the Lesser GNU General Public License *
16+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+ * *
18+ ********************************************************************************/
19+
20+ /* *******************************************************************************
21+ * *
22+ * Implementation of character decoding as described in ISO 10303-21 table 2 and *
23+ * table 4 *
24+ * *
25+ ********************************************************************************/
26+
2727#ifndef IFCCHARACTERDECODER_H
2828#define IFCCHARACTERDECODER_H
2929
@@ -46,25 +46,25 @@ namespace IfcParse {
4646#ifdef HAVE_ICU
4747 static UConverter* destination;
4848 static UConverter* converter;
49- static UConverter* compatibility_converter;
49+ static UConverter* compatibility_converter;
5050 static int previous_codepage;
5151 static UErrorCode status;
5252#endif
5353 void addChar (std::stringstream& s,const UChar32& ch);
5454 public:
55- // #ifdef HAVE_ICU
56- enum ConversionMode {DEFAULT,UTF8,LATIN,JSON,PYTHON};
55+ #ifdef HAVE_ICU
56+ enum ConversionMode {DEFAULT,UTF8,LATIN,JSON,PYTHON};
5757 static ConversionMode mode;
5858
59- // Many BIM software (eg. Revit, ArchiCAD, ...) has wrong behavior to encode characters.
60- // It just translate to extended string in system default code page, not unicode.
61- // If you want to process these strings, set true.
62- static bool compatibility_mode;
63- static std::string compatibility_charset;
59+ // Many BIM software (eg. Revit, ArchiCAD, ...) has wrong behavior to encode characters.
60+ // It just translate to extended string in system default code page, not unicode.
61+ // If you want to process these strings, set true.
62+ static bool compatibility_mode;
63+ static std::string compatibility_charset;
6464
65- // #else
65+ #else
6666 static char substitution_character;
67- // #endif
67+ #endif
6868 IfcCharacterDecoder (IfcParse::File* file);
6969 ~IfcCharacterDecoder ();
7070 void dryRun ();
0 commit comments