3 #ifndef INCLUDE_NN_NLIB_UNICODE_CONVERT_H_
4 #define INCLUDE_NN_NLIB_UNICODE_CONVERT_H_
23 if (m_Alloc)
delete[] m_Buf;
25 operator const char*()
NLIB_NOEXCEPT {
return m_Buf ? m_Buf :
""; }
43 if (m_Alloc)
delete[] m_Buf;
45 operator const wchar_t*()
NLIB_NOEXCEPT {
return m_Buf ? m_Buf : L
""; }
58 #endif // INCLUDE_NN_NLIB_UNICODE_CONVERT_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
bool IsOk() const noexcept
: Checks whether the object is valid.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Class to use to pass a UTF-8, UTF-16, or UTF-32 string as UTF-8.
ToUtf8Obj(const char *str) noexcept
Sets the UTF-8 string.
Class used to pass a UTF-8, UTF-16, or UTF-32 string as a wide character (UTF-16/UTF-32) string...
const char * c_str() noexcept
Explicitly returns a C string.
ToWideObj(const wchar_t *wstr) noexcept
Sets a wide character string.
const wchar_t * c_str() noexcept
Explicitly returns a C string.
A file that contains the configuration information for each development environment.
bool IsOk() const noexcept
: Checks whether the object is valid.