i have to use some char16-wide strings for uefi programming. How can i initialize them easily?
CHAR8 is easy:
CHAR8 *Str = "yehaw\0";
Str = AllocatePool(6*2); //AllocatePool allocates bytewise
Str = ('y','e','h','a','w','\o');
If you have the c standard library and are using a conformant C/C++ compiler, typically prefixing a string with L works for declared strings.As in :
CHAR16 *Str = L"yehaw";
works. However, why not use the ubiquitously accepted type of