MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / dateTimeFormat

Method dateTimeFormat

tests/testvalidator.cpp:545–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543 // ***** Endpoint for ValidatorDateTime with custom format ******
544 C_ATTR(dateTimeFormat, :Local :AutoArgs)
545 void dateTimeFormat(Context *c)
546 {
547 Validator v(
548 {new ValidatorDateTime(u"field"_s, QString{}, "yyyy d MM mm:HH", m_validatorMessages)});
549 checkResponse(c, v.validate(c));
550 }
551
552 // ***** Endpoint for ValidatorDifferent ******
553 C_ATTR(different, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected