Changes imported from Abseil "staging" branch:
- 1dde8a2a1868c32b32d62fba62eb37974f656948 Correct usage of CUnescape() in example. by Abseil Team <absl-team@google.com> GitOrigin-RevId: 1dde8a2a1868c32b32d62fba62eb37974f656948 Change-Id: I5183a74a3c682ac55b2bf4be0d871375e1302aae
This commit is contained in:
parent
8b727aa7ab
commit
f4f91f4216
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ namespace absl {
|
|||
// Example:
|
||||
//
|
||||
// std::string s = "foo\\rbar\\nbaz\\t";
|
||||
// std::string unescaped_s = absl::CUnescape(s);
|
||||
// std::string unescaped_s;
|
||||
// if (!absl::CUnescape(s, &unescaped_s) {
|
||||
// ...
|
||||
// }
|
||||
// EXPECT_EQ(unescaped_s, "foo\rbar\nbaz\t");
|
||||
bool CUnescape(absl::string_view source, std::string* dest, std::string* error);
|
||||
|
||||
|
|
Loading…
Reference in a new issue