converter

package
v0.0.0-...-23aebfe Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUmlauts

func ConvertUmlauts(s string) string

ConvertUmlauts replaces all umlauts with the two letter equivalent

func ConvertUsageToFields

func ConvertUsageToFields(usage string) (string, error)

ConvertUsageToFields splits the usage line in strings of 27 chars and adds control chars from ?20... to ?29 if usage line is longer than 8*27 chars, it returns an error

func IsCreditOrDebit

func IsCreditOrDebit(amount *money.Money) string

IsCreditOrDebit returns a C if amount is positive and a D if amount is negative

func IsDebit

func IsDebit(amount *money.Money) bool

func JoinFieldsWithControl

func JoinFieldsWithControl(parts []string, startControl int) (string, int)

JoinFieldsWithControl adds control number to the beginning of the line

func MoneyStringToInt

func MoneyStringToInt(m string) (int, error)

MoneyStringToInt converts formatted number to int, it removes every , and . and tries to parse the remaining string to a number

func SplitStringInParts

func SplitStringInParts(s string, l int, trimWhitespace bool) []string

SplitStringInParts cuts the string in pieces each l chars long

Types

This section is empty.

Jump to

Keyboard shortcuts

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