tmp/tmp4dkwbkzo/{from.md → to.md}
RENAMED
|
@@ -69,17 +69,20 @@ the escaped string representation of a string of *C*, except that:
|
|
| 69 |
[*Example 1*:
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
string s0 = format("[{}]", "h\tllo"); // s0 has value: [h\ \ \ \ llo]
|
| 73 |
string s1 = format("[{:?}]", "h\tllo"); // s1 has value: ["h\ tllo"]
|
|
|
|
| 74 |
string s3 = format("[{:?}, {:?}]", '\'', '"'); // s3 has value: ['\ '', '"']
|
| 75 |
|
| 76 |
// The following examples assume use of the UTF-8 encoding
|
| 77 |
string s4 = format("[{:?}]", string("\0 \n \t \x02 \x1b", 9));
|
| 78 |
// s4 has value: ["\ u{0\ \ n \ t \ u{2} \ u{1b}"]}
|
| 79 |
string s5 = format("[{:?}]", "\xc3\x28"); // invalid UTF-8, s5 has value: ["\ x{c3\("]}
|
| 80 |
-
string
|
| 81 |
-
string
|
|
|
|
|
|
|
| 82 |
```
|
| 83 |
|
| 84 |
— *end example*]
|
| 85 |
|
|
|
|
| 69 |
[*Example 1*:
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
string s0 = format("[{}]", "h\tllo"); // s0 has value: [h\ \ \ \ llo]
|
| 73 |
string s1 = format("[{:?}]", "h\tllo"); // s1 has value: ["h\ tllo"]
|
| 74 |
+
string s2 = format("[{:?}]", "\importexample[-2.5pt]{example_01}"); \kern1.25pt// s2 has value: ["\importexample[-2.5pt]{example_01"]}
|
| 75 |
string s3 = format("[{:?}, {:?}]", '\'', '"'); // s3 has value: ['\ '', '"']
|
| 76 |
|
| 77 |
// The following examples assume use of the UTF-8 encoding
|
| 78 |
string s4 = format("[{:?}]", string("\0 \n \t \x02 \x1b", 9));
|
| 79 |
// s4 has value: ["\ u{0\ \ n \ t \ u{2} \ u{1b}"]}
|
| 80 |
string s5 = format("[{:?}]", "\xc3\x28"); // invalid UTF-8, s5 has value: ["\ x{c3\("]}
|
| 81 |
+
string s6 = format("[{:?}]", "\importexample{example_02}"); \kern0.75pt// s6 has value: ["\importexample{example_03{u}{200d}\importexample{example_04}"]}
|
| 82 |
+
string s7 = format("[{:?}]", "\u0301"); // s7 has value: ["\ u{301\"]}
|
| 83 |
+
string s8 = format("[{:?}]", "\\\u0301"); // s8 has value: ["\ \ \ u{301\"]}
|
| 84 |
+
string s9 = format("[{:?}]", "e\u0301\u0323"); // s9 has value: ["\importexample[-2pt]{example_06"]}
|
| 85 |
```
|
| 86 |
|
| 87 |
— *end example*]
|
| 88 |
|