strings

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Comp; result of a comparaison.
	Lt = Comp(-1) // Less than.
	Eq = Comp(0)  // Equal.
	Gt = Comp(+1) // Greater than.

)

Variables

This section is empty.

Functions

func Prefix

func Prefix(s1, s2 string) bool

'compR' compares the characters of s1 and s2 and returns whether the first one is a prefix of the second one or not

func ToDown

func ToDown(s string) string

'ToDown' extracts the significant characters in s; only alphanumeric characters are significant, and their case of lowest rank is returned

Types

type Comp

type Comp = int8

Result of a comparaison.

func CompP

func CompP(s1, s2 string) Comp

Standard comparison procedure for identifiers; they are first compared with only significant characters and case ignored, and if still equal, with only significant characters and case taken into account, and if still equal, with all characters and case taken into account

Jump to

Keyboard shortcuts

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