Mercurial > geeqie.yaz
comparison src/exiv2.cc @ 1716:fca032fc27f7
strip the "lang=" prefix from exiv2 in all metadata formats
author | nadvornik |
---|---|
date | Sat, 12 Sep 2009 16:37:05 +0000 |
parents | bb964a9d9bb8 |
children |
comparison
equal
deleted
inserted
replaced
1715:bc89bb2f07c1 | 1716:fca032fc27f7 |
---|---|
1007 } | 1007 } |
1008 } | 1008 } |
1009 else | 1009 else |
1010 { | 1010 { |
1011 str = item.toString(); | 1011 str = item.toString(); |
1012 if (str.length() > 5 && str.substr(0, 5) == "lang=") | 1012 } |
1013 { | 1013 if (str.length() > 5 && str.substr(0, 5) == "lang=") |
1014 std::string::size_type pos = str.find_first_of(' '); | 1014 { |
1015 if (pos != std::string::npos) str = str.substr(pos+1); | 1015 std::string::size_type pos = str.find_first_of(' '); |
1016 } | 1016 if (pos != std::string::npos) str = str.substr(pos+1); |
1017 } | 1017 } |
1018 list = g_list_append(list, utf8_validate_or_convert(str.c_str())); | 1018 list = g_list_append(list, utf8_validate_or_convert(str.c_str())); |
1019 #if EXIV2_TEST_VERSION(0,16,0) | 1019 #if EXIV2_TEST_VERSION(0,16,0) |
1020 } | 1020 } |
1021 else | 1021 else |