OMNI_UNICODE
MACRO

OMNI_UNICODE - Defined if a Unicode build is detected.

SYNOPSIS top

This flag is defined if one of the following compile flags is defined:
#if defined(__UNICODE__) || defined(UNICODE) || defined(_UNICODE) || defined(__UNICODE)
    #define OMNI_UNICODE
#endif

DESCRIPTION top

If this flag is defined the library will enable wide character support on any system functions or API's and the omni::string_t and omni::char_t types will be defined as the std::wstring and wchar_t types. If this flag is not defined then the std::string and char types will be used and wide character support is only available if explicitly used; calling omni::string::util::to_wstring, for example, will always return a std::wstring type, but calling omni::string::util::to_string_t will return a std::string if OMNI_UNICODE is NOT defined, and will return a std::wstring if it <b>is</b> defined.

CONSIDERATIONS top

You will only need to be aware the default string and char types used in the library are of the std::wstring and wchar_t types if this flag is defined, otherwise it will be the std::string and char types respectively.

PLATFORM SPECIFIC top

No special considerations.

NOTES top

None.