text

package
v0.0.0-...-16c3dd7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomizeSlash

func CustomizeSlash(s string) []string

CustomizeSlash generates slash-space variations for variable and unit name matching.

func IsNumber

func IsNumber(s string) bool

func IsRomanNumeral

func IsRomanNumeral(s string) bool

IsRomanNumeral returns true if s is a roman numeral between i and vi.

func IsYesNo

func IsYesNo(v []string) bool

IsYesNo returns true if v contains both 'yes' and 'no' strings.

func Join

func Join(v []string, sep1, sep2 string) string

Join joins the array elements using the separators sep1 and sep2. For example: ["0", "1", "2"], sep1=", ", sep2=" or " -> "0, 1 or 2"

func LetterPrefix

func LetterPrefix(s string) string

LetterPrefix extracts a letter prefix from a string.

func NormalizeScientificMultiplier

func NormalizeScientificMultiplier(s string) string

NormalizeScientificMultiplier converts the exponential multiplier (10^exp) to a form with 'e'.

func NormalizeText

func NormalizeText(s string) string

func NormalizeWhitespace

func NormalizeWhitespace(s string) string

func RomanToArabicNumerals

func RomanToArabicNumerals(s string) string

RomanToArabicNumberals converts roman numerals to arabic numerals. Its purpose is to help parse NYHA class and Fitzpatrick skin type.

func SplitSentence

func SplitSentence(s string) []string

func SplitSlash

func SplitSlash(s string) []string

func SplitWhitespace

func SplitWhitespace(s string) []string

func StripCtlAndExtFromUnicode

func StripCtlAndExtFromUnicode(s string) string

func Titles

func Titles(s []string) []string

Titles capitalizes the first letter of each word.

func ToName

func ToName(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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