| 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 |
| 1602 | bool getTextValue(std::string& value, const XmpData::iterator& pos) { |
no test coverage detected