MACRO
OMNI_STRING_T - Defines the underlying string type.
SYNOPSIS top
Certain portions of the framework can be wide character aware by defining the
If
If it is NOT defined, then the std::string type is used and
Certain portions of the framework can be wide character aware by defining the
OMNI_UNICODE macro, which in turn is defined if a UNICODE macro is defined.If
OMNI_UNICODE is defined, then the std::wstring type is used for certain framework functionality and omni::string_t is a std::wstring.If it is NOT defined, then the std::string type is used and
omni::string_t is a normal std::string type.
DESCRIPTION top
To be deterministic (i.e. the same input/output across platforms), the
To be deterministic (i.e. the same input/output across platforms), the
OMNI_CHAR_T and OMNI_STRING_t types are defined based on the OMNI_UNICODE flag. Windows platforms/builds typically reference the wide character functions of the Windows API (i.e. the GetCurrentDirectory function is a macro alias to either the GetCurrentDirectoryW or GetCurrentDirectoryA functions which operate on the wchar_t and char types respectively), as such, to not have the developer have to worry about what character type to use when using a certain Omni API on a specific platform, you can utilize the OMNI_CHAR_T and OMNI_STRING_T compile flags to ensure the proper type is used across platforms/builds.
PLATFORM SPECIFIC top
Although this flag is used to help certain cross-platform issues, it does not have any platform specific notes.
Although this flag is used to help certain cross-platform issues, it does not have any platform specific notes.