| 443 | } |
| 444 | |
| 445 | void find() { |
| 446 | TStringType s(Data_.one_two_three_one_two_three()); |
| 447 | |
| 448 | UNIT_ASSERT(s.find(Data_.one()) == 0); |
| 449 | UNIT_ASSERT(s.find(*Data_.t()) == 4); |
| 450 | UNIT_ASSERT(s.find(*Data_.t(), 5) == 8); |
| 451 | |
| 452 | UNIT_ASSERT(s.find(Data_.four()) == TStringType::npos); |
| 453 | UNIT_ASSERT(s.find(Data_.one(), TStringType::npos) == TStringType::npos); |
| 454 | UNIT_ASSERT(s.find_first_of(Data_.abcde()) == 2); |
| 455 | UNIT_ASSERT(s.find_first_not_of(Data_.enotw_()) == 9); |
| 456 | } |
| 457 | |
| 458 | void capacity() { |
| 459 | TStringType s; |