MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / convertStringCharsetWindows

Function convertStringCharsetWindows

src/convert.cpp:1586–1599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1584};
1585
1586[[maybe_unused]] bool convertStringCharsetWindows(std::string& str, const char* from, const char* to) {
1587 bool ret = false;
1588 std::string tmpstr = str;
1589 if (auto p = Exiv2::find(convFctList, std::pair(from, to)))
1590 ret = p->convFct_(tmpstr);
1591#ifndef SUPPRESS_WARNINGS
1592 else {
1593 EXV_WARNING << "No Windows function to map character string from " << from << " to " << to << " available.\n";
1594 }
1595#endif
1596 if (ret)
1597 str = tmpstr;
1598 return ret;
1599}
1600
1601#endif // EXV_HAVE_ICONV
1602bool getTextValue(std::string& value, const XmpData::iterator& pos) {

Callers 1

convertStringCharsetFunction · 0.85

Calls 1

findFunction · 0.50

Tested by

no test coverage detected