Is the behavior of escape characters compiler dependent or something?
std::string pattern = "\xDDAF5742"; // or do pattern("\xDDAF5742");
std::cout << pattern << " " << pattern.size() << "\n";
On my system this outputs B 1 ('B' == 0x42), but I thought it should put 4 characters into the string.