bech32::LocateErrors

Return the positions of errors in a Bech32 string.

Synopsis

Declared in <bech32.h>

std::pair<std::string, std::vector<int>>
LocateErrors(
    std::string const& str,
    CharLimit limit = CharLimit::BECH32);

Return Value

A pair of an error message and the positions of the detected errors.

Parameters

NameDescription
strThe string to inspect.
limitThe maximum accepted string length.