reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
91 EXPECT_EQ("a\\ber", Regex("[0-9]+").sub("\\\\", "a1234ber", &Error)); 92 EXPECT_EQ("", Error); 93 EXPECT_EQ("a\nber", Regex("[0-9]+").sub("\\n", "a1234ber", &Error)); 94 EXPECT_EQ("", Error); 95 EXPECT_EQ("a\tber", Regex("[0-9]+").sub("\\t", "a1234ber", &Error)); 96 EXPECT_EQ("", Error); 97 EXPECT_EQ("ajber", Regex("[0-9]+").sub("\\j", "a1234ber", &Error)); 98 EXPECT_EQ("", Error); 100 EXPECT_EQ("aber", Regex("[0-9]+").sub("\\", "a1234ber", &Error)); 101 EXPECT_EQ(Error, "replacement string contained trailing backslash"); 104 EXPECT_EQ("aa1234bber", Regex("a[0-9]+b").sub("a\\0b", "a1234ber", &Error)); 105 EXPECT_EQ("", Error); 107 EXPECT_EQ("a1234ber", Regex("a([0-9]+)b").sub("a\\1b", "a1234ber", &Error)); 108 EXPECT_EQ("", Error); 110 EXPECT_EQ("aber", Regex("a[0-9]+b").sub("a\\100b", "a1234ber", &Error)); 111 EXPECT_EQ(Error, "invalid backreference string '100'");