D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
api
/
vendor
/
scrivo
/
highlight.php
/
test
/
markup
/
cpp
/
Filename :
string-literals.txt
back
Copy
// Unicode literals auto str = "Hello regular string"; auto utf8 = u8"Hello utf-8 string"; auto utf16 = u"Hello utf-16 string"; auto utf32 = U"Hello utf-32 string"; // Wide-character strings auto wide_char = L"Hello wchar_t string"; // Raw string literals (multiline) auto char_multi = R"(Hello "normal" multiline string.)"; auto utf8_multi = u8R"(Hello "utf-8" multiline string)"; auto utf16_multi = uR"(Hello "utf-16" multiline string)"; auto utf32_multi = UR"(Hello "utf-32" multiline string)"; // Raw string literals with delimiter (multiline) auto char_multi = R"blah1(Hello "normal" multiline )" )blah" string.)blah1"; auto utf8_multi = u8R"blah2(Hello "utf-8" multiline )" )blah" string)blah2"; auto utf16_multi = uR"blah3(Hello "utf-16" multiline )" )blah" string)blah3"; auto utf32_multi = UR"blah4(Hello "utf-32" multiline )" )blah" string)blah4"; // Meta strings #include <stdio> #include "lib.h"