I have continued my old postponed work for creating the good C++ interface for the libiconv. I want the library to be working without manually allocating buffers and controlling the conversation flow. I'd prefer simple interface like "do all needed for converting this into that".
I have procrastinated completing the library after succeding with dirty brute-forcing the functionality of functions:
std::wstring convert(const std::string & pFrom);
std::string convert(const std::wstring & pFrom);
I like this good C++ interface, but it have awfull implementation. Both of this functions are copy-paste of each other, using that lowest-level iconv() function. There is no clever memory allocations, it just allocates twice amount of the source buffer size. I have stucked with expanding the library this way.
Now I'm going another way. I have splitted my task into:
I'm going to release the result as opensource.