safe

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigitValue added in v1.2.0

func DigitValue(r rune) (int, bool)

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

func SafeStringJoin(texts []string) string

SafeStringJoin preserve existing whitespace, while ensuring that strings are joined with whitespace between

func SafeVerseNum

func SafeVerseNum(number string) int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL