GCC is only following the standard. #877: “Each […] hexadecimal escape sequence is the longest sequence of characters that can constitute the escape sequence.”
More Related Contents:
- Can I escape a double quote in a verbatim string literal?
- Rules for C++ string literals escape character
- How can I get double quotes into a string literal?
- Why are string literals const?
- What does the symbol \0 mean in a string-literal?
- Deprecated conversion from string literal to ‘char*’
- How to (un)escape strings in C/C++?
- What is the datatype of string literal in C++?
- Escaping a C++ string
- comparison between string literal
- Assign a string literal to a char* [duplicate]
- cannot convert ‘std::string’ to ‘char**’ for argument ‘1’ to ‘__ssize_t getline(char**, size_t*, FILE*)’
- Why when i add number to string it shows random text in c++?
- Multicharacter literal in C and C++
- How do I iterate over cin line by line in C++?
- Converting std::__cxx11::string to std::string
- Will std::string always be null-terminated in C++11?
- What’s the rationale for null terminated strings?
- stringstream, string, and char* conversion confusion
- How to implode a vector of strings into a string (the elegant way)
- Convert a string to a date in C++
- std::strings’s capacity(), reserve() & resize() functions
- Most optimized way of concatenation in strings
- @(at) sign in file path/string [duplicate]
- Convert XmlDocument to String
- Javascript – Replacing the escape character in a string literal
- How can a char pointer be initialized with a string (Array of characters) but an int pointer not with an array of integer? [duplicate]
- Forcing String to int Function to Consume Entire String
- How to get file extension from string in C++
- Is it possible to have a pointer literal?