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

Function strconv

lib_acl_cpp/src/stdlib/charset_conv.cpp:598–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598string strconv(const char* in, size_t len,
599 const char* from_charset, const char* to_charset)
600{
601 charset_conv conv;
602 string res;
603 if (conv.convert(from_charset, to_charset, in, len, &res)) {
604 return res;
605 } else {
606 logger_error("convert error, from=%s, to=%s",
607 from_charset, to_charset);
608 res.clear();
609 return res;
610 }
611}
612
613} // namespace acl

Callers 3

tbl_insertFunction · 0.85
tbl_selectFunction · 0.85
tbl_deleteFunction · 0.85

Calls 2

convertMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…