MCPcopy Create free account
hub / github.com/acl-dev/acl / create

Method create

lib_acl_cpp/src/stdlib/charset_conv.cpp:581–596  ·  view source on GitHub ↗

����ַ���ת����

Source from the content-addressed store, hash-verified

579
580// ����ַ���ת����
581charset_conv* charset_conv::create(const char* fromCharset, const char* toCharset)
582{
583 if (fromCharset == NULL || toCharset == NULL) {
584 return NULL;
585 }
586 if (strcasecmp(fromCharset, toCharset) == 0) {
587 return NULL;
588 }
589
590 charset_conv* conv = NEW charset_conv();
591 if (!conv->update_begin(fromCharset, toCharset)) {
592 delete conv;
593 return NULL;
594 }
595 return conv;
596}
597
598string strconv(const char* in, size_t len,
599 const char* from_charset, const char* to_charset)

Callers

nothing calls this directly

Calls 2

charset_convClass · 0.50
update_beginMethod · 0.45

Tested by

no test coverage detected