Commit 2144fbcc587bf9495035da85f83a5788a9c6240f

Authored by Jarryd Beck
1 parent f62ebb96

comment about Unicode

Showing 1 changed file with 8 additions and 0 deletions
src/cxxopts.hpp
@@ -34,6 +34,12 @@ THE SOFTWARE. @@ -34,6 +34,12 @@ THE SOFTWARE.
34 #include <string> 34 #include <string>
35 #include <vector> 35 #include <vector>
36 36
  37 +//when we ask cxxopts to use Unicode, help strings are processed using ICU,
  38 +//which results in the correct lengths being computed for strings when they
  39 +//are formatted for the help output
  40 +//it is necessary to make sure that <unicode/unistr.h> can be found by the
  41 +//compiler, and that icu-uc is linked in to the binary.
  42 +
37 #ifdef CXXOPTS_USE_UNICODE 43 #ifdef CXXOPTS_USE_UNICODE
38 #include <unicode/unistr.h> 44 #include <unicode/unistr.h>
39 45
@@ -160,6 +166,7 @@ namespace std @@ -160,6 +166,7 @@ namespace std
160 } 166 }
161 } 167 }
162 168
  169 +//ifdef CXXOPTS_USE_UNICODE
163 #else 170 #else
164 171
165 namespace cxxopts 172 namespace cxxopts
@@ -210,6 +217,7 @@ namespace cxxopts @@ -210,6 +217,7 @@ namespace cxxopts
210 217
211 } 218 }
212 219
  220 +//ifdef CXXOPTS_USE_UNICODE
213 #endif 221 #endif
214 222
215 namespace cxxopts 223 namespace cxxopts