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

Name

Description

str

The string to inspect.

limit

The maximum accepted string length.

Created with MrDocs