| 1436 | |
| 1437 | static long getKeyLong(const std::string& key, const ExifData* metadata, int which = 0); |
| 1438 | static long getKeyLong(const std::string& key, const ExifData* metadata, int which) { |
| 1439 | long result = -1; |
| 1440 | if (metadata->findKey(ExifKey(key)) != metadata->end()) { |
| 1441 | result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(which)); |
| 1442 | } |
| 1443 | return result; |
| 1444 | } |
| 1445 | |
| 1446 | /*! http://stackoverflow.com/questions/1798112/removing-leading-and-trailing-spaces-from-a-string |
| 1447 | trim from left |
no test coverage detected