| 606 | }; |
| 607 | |
| 608 | std::string DF2UTF(const std::string &in) |
| 609 | { |
| 610 | std::string out; |
| 611 | out.reserve(in.size()); |
| 612 | |
| 613 | uint8_t buf[4]; |
| 614 | for (size_t i = 0; i < in.size(); i++) |
| 615 | { |
| 616 | int cnt = encode(buf, character_table[(uint8_t)in[i]]); |
| 617 | out.append(&buf[0], &buf[cnt]); |
| 618 | } |
| 619 | |
| 620 | return out; |
| 621 | } |
| 622 | |
| 623 | std::string UTF2DF(const std::string &in) |
| 624 | { |
no test coverage detected