ot::Utils::VerhoeffChecksum::Validate() method
Validates the Verhoeff checksum for a given decimal string.
Arguments
aDecimalString
The string containing decimal digits (last char is treated as checksum).
Return value
kErrorNone Successfully validated the checksum in @p aDecimalString. kErrorFailed Checksum is not valid. kErrorInvalidArgs The @p aDecimalString is not valid, i.e. it either contains chars other than ['0'-'9'], or is longer than `kMaxStringLength`.
ot::Utils::VerhoeffChecksum::Validate() is called by 1 function and calls 1 function:
![]()
ot::Utils::VerhoeffChecksum::Validate()
ot::Utils::VerhoeffChecksum::Validate() reads 1 variable:
![]()
ot::Utils::VerhoeffChecksum::Validate()