chsvlib
chsv helper source code

◆ UCP_LITERAL

#define UCP_LITERAL (   str)    unspecified

#include <chsvstringex.h>

Resolves to a constexpr zero-terminated array of ucp_t elements given a classic char-based C string literal.

Parameters
strThe string literal to convert to a zero-terminated array of ucp_t.

The enclosing namespace, i.e. Chusov::String, is not included in the macro definition, and its expansion must be made visible using ordinary means of namespace resolution, e.g. explicit specification or with a using directive.