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

Method evalAdjust

app/exiv2.cpp:562–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560} // Params::evalRename
561
562int Params::evalAdjust(const std::string& optArg) {
563 int rc = 0;
564 switch (action_) {
565 case Action::none:
566 case Action::adjust:
567 if (adjust_) {
568 std::cerr << progname() << ": " << _("Ignoring surplus option -a") << " " << optArg << "\n";
569 break;
570 }
571 action_ = Action::adjust;
572 adjust_ = parseTime(optArg, adjustment_);
573 if (!adjust_) {
574 std::cerr << progname() << ": " << _("Error parsing -a option argument") << " `" << optArg << "'\n";
575 rc = 1;
576 }
577 break;
578 default:
579 std::cerr << progname() << ": " << _("Option -a is not compatible with a previous option\n");
580 rc = 1;
581 break;
582 }
583 return rc;
584} // Params::evalAdjust
585
586int Params::evalYodAdjust(const Yod& yod, const std::string& optArg) {
587 int rc = 0;

Callers

nothing calls this directly

Calls 1

parseTimeFunction · 0.70

Tested by

no test coverage detected