comment about Unicode
This commit is contained in:
parent
f62ebb9688
commit
2144fbcc58
@ -34,6 +34,12 @@ THE SOFTWARE.
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
//when we ask cxxopts to use Unicode, help strings are processed using ICU,
|
||||||
|
//which results in the correct lengths being computed for strings when they
|
||||||
|
//are formatted for the help output
|
||||||
|
//it is necessary to make sure that <unicode/unistr.h> can be found by the
|
||||||
|
//compiler, and that icu-uc is linked in to the binary.
|
||||||
|
|
||||||
#ifdef CXXOPTS_USE_UNICODE
|
#ifdef CXXOPTS_USE_UNICODE
|
||||||
#include <unicode/unistr.h>
|
#include <unicode/unistr.h>
|
||||||
|
|
||||||
@ -160,6 +166,7 @@ namespace std
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//ifdef CXXOPTS_USE_UNICODE
|
||||||
#else
|
#else
|
||||||
|
|
||||||
namespace cxxopts
|
namespace cxxopts
|
||||||
@ -210,6 +217,7 @@ namespace cxxopts
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//ifdef CXXOPTS_USE_UNICODE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cxxopts
|
namespace cxxopts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user