| 255 | } |
| 256 | |
| 257 | void c_str() { |
| 258 | TStringType low(Data_._2004_01_01()); |
| 259 | TStringType xx; |
| 260 | TStringType yy; |
| 261 | |
| 262 | // ISO-IEC-14882:1998(E), 21.3.6, paragraph 1 |
| 263 | UNIT_ASSERT(*(yy.c_str()) == 0); |
| 264 | |
| 265 | // Blocks A and B should follow each other. |
| 266 | // Block A: |
| 267 | xx = Data_._123456(); |
| 268 | xx += low; |
| 269 | UNIT_ASSERT(xx.c_str() == TView(Data_._1234562004_01_01())); |
| 270 | // End of block A |
| 271 | |
| 272 | // Block B: |
| 273 | xx = Data_._1234(); |
| 274 | xx += Data_._5(); |
| 275 | UNIT_ASSERT(xx.c_str() == TView(Data_._12345())); |
| 276 | // End of block B |
| 277 | } |
| 278 | |
| 279 | void null_char_of_empty() { |
| 280 | const TStringType s; |