functions

package
v0.1.3-alpha-ee22887 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearFromString

func ClearFromString(str string, regex string) string

func ConvertEachScaleToWords

func ConvertEachScaleToWords(
	numberScalesArray []objects.RuneDigitTriplet,
	currencyNounGender genders.Gender,
	declension declension.Declension,
) objects.ConvertedScalesToWords

func ConvertEachScaleToWordsSlash

func ConvertEachScaleToWordsSlash(
	numberScalesArray []objects.RuneDigitTriplet,
	scaleForm objects.ScaleForm,
	decl declension.Declension,
) string

func GetCurrencyWord

func GetCurrencyWord(
	currencyObject currency.CustomCurrency, numberPart constants.NumberType,
	scaleNameForm objects.ScaleForm, lastScaleIsZero bool,
	curc currency.Currency, decl declension.Declension,
) string

func GetFractionalUnitCurrencyNumber

func GetFractionalUnitCurrencyNumber(scaleIndex int, digitToConvert objects.Digit,
	decl declension.Declension, unitNameForm objects.ScaleForm) string

func NumberToScales

func NumberToScales(number string) []objects.RuneDigitTriplet

func ReplaceInString

func ReplaceInString(str string, regex string, repl string) string

func RoundNumber

func RoundNumber(number objects.Number, precision int64) objects.Number

func SplitNumberToArray

func SplitNumberToArray(startNumber string) objects.Number

Types

This section is empty.

Jump to

Keyboard shortcuts

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