Skip to content
Snippets Groups Projects
Select Git revision
  • df7d8919e1f8920972e667cfeb0e8dc6cbce2085
  • main default protected
2 results

rawstring.cc

Blame
  • rawstring.cc 398 B
    #include <iostream>
    #include <string>
    
    int main()
    {
        // clang-format off
        std::string s = R"xyz(This is a " raw " C++11 string.)xyz";
        std::cout << s << '\n';
        s = R"(Inside a raw string \n does not create a new line.)";
        std::cout << s << '\n';
        s = R"(The regular expression to match a sequence of up to 3 digits is \d{3})";
        // clang-format on
        std::cout << s << '\n';
    }