Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigitValue ¶ added in v1.2.0
DigitValue returns the value 0-9 of a decimal digit (Unicode category Nd) in any script, e.g. Arabic-Indic, Devanagari or Bengali digits. Nd digits come in contiguous runs of ten starting at zero, so the value is the distance back to the start of the run. (Runs that directly abut another run, as in the mathematical digits U+1D7CE onward, are not distinguished; they are never used for verse numbers.)
func SafeStringJoin ¶
SafeStringJoin preserve existing whitespace, while ensuring that strings are joined with whitespace between
func SafeVerseNum ¶
SafeVerseNum returns the numeric value of the leading decimal digits of a string, in any script, ignoring everything from the first non-digit on, without error.
Types ¶
This section is empty.