finish linux related code writting. remove all offensive content.

- REMOVE all offensive content in README and etc. This project respect to every contributors.
- However, for commercial reason, we limit the contribution from Dassault.
- Change license.
- Finish linux platform code.
This commit is contained in:
2023-03-04 14:08:16 +08:00
parent 79aaf6b1ea
commit 5a69ce338e
10 changed files with 840 additions and 91 deletions

View File

@ -30,7 +30,10 @@ namespace LibCmo::EncodingHelper {
#else
bool DoIconv(const char* enc_from, const char* enc_to, std::string& str_from, std::string& str_to);
bool CreateIconvDescriptor(const char* enc_from, const char* enc_to, iconv_t& val);
void DestroyIconvDescriptor(iconv_t& val);
bool DoIconv(iconv_t& cd, const std::string& str_from, std::string& str_to);
#endif
@ -47,7 +50,17 @@ namespace LibCmo::EncodingHelper {
#else
using ENCODING_TOKEN = char*;
class IconvPair {
public:
IconvPair();
IconvPair(const IconvPair&) = delete;
IconvPair& operator=(const IconvPair&) = delete;
~IconvPair();
iconv_t FromUtf8;
iconv_t ToUtf8;
};
using ENCODING_TOKEN = IconvPair*;
constexpr const ENCODING_TOKEN ENCODING_TOKEN_DEFAULT = nullptr;
#endif