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

Function getKeyLong

src/minoltamn_int.cpp:1438–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1436
1437static long getKeyLong(const std::string& key, const ExifData* metadata, int which = 0);
1438static 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

Callers 1

minoltamn_int.cppFile · 0.70

Calls 4

ExifKeyClass · 0.85
findKeyMethod · 0.45
endMethod · 0.45
toFloatMethod · 0.45

Tested by

no test coverage detected