| 669 | */ |
| 670 | #ifndef UNICODE |
| 671 | String CrossConvertToStringA(const char* src, unsigned srclen, int cpin, int cpout, bool * lossy) |
| 672 | { |
| 673 | int wlen = srclen * 2 + 6; |
| 674 | int clen = wlen * 2 + 6; |
| 675 | String str; |
| 676 | str.resize(clen); |
| 677 | char* cbuff = &*str.begin(); |
| 678 | int nbytes = CrossConvert(src, srclen, cbuff, clen, cpin, cpout, lossy); |
| 679 | str.resize(nbytes); |
| 680 | return str; |
| 681 | } |
| 682 | #endif |
| 683 | |
| 684 | /** |
no test coverage detected