💾 Archived View for code.pfad.fr › swift › internal › format captured on 2024-08-18 at 17:13:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

format package - code.pfad.fr/swift

import "code.pfad.fr/swift/internal/format"

package format is used internally to describe the format of an IBAN.

Constants

const (
	NoMoreChar = iota + 1
	UppercaseAlphaChar
	AlphaChar
	ExpectedNumericChar
	ExpectedAlphaNumericChar
)

Types

type Alpha

type Alpha int // (A-Z)

func (Alpha) Expected

func (Alpha) Expected() ExpectedCharType

func (Alpha) IndexInvalid

func (Alpha) IndexInvalid(s string) int

func (Alpha) Len

func (l Alpha) Len() int

type AlphaInsensitive

type AlphaInsensitive int // (a-z, A-Z)

func (AlphaInsensitive) Expected

func (AlphaInsensitive) Expected() ExpectedCharType

func (AlphaInsensitive) IndexInvalid

func (AlphaInsensitive) IndexInvalid(s string) int

func (AlphaInsensitive) Len

func (l AlphaInsensitive) Len() int

type Column

type Column interface {
	Len() int
	Expected() ExpectedCharType
	IndexInvalid(s string) int // returns -1 if the string is valid
}

type ExpectedCharType

type ExpectedCharType int

func (ExpectedCharType) String

func (e ExpectedCharType) String() string

type Mixed

type Mixed int // (a-z, A-Z, 0-9)

func (Mixed) Expected

func (Mixed) Expected() ExpectedCharType

func (Mixed) IndexInvalid

func (Mixed) IndexInvalid(s string) int

func (Mixed) Len

func (l Mixed) Len() int

type Numeric

type Numeric int // (0-9)

func (Numeric) Expected

func (Numeric) Expected() ExpectedCharType

func (Numeric) IndexInvalid

func (Numeric) IndexInvalid(s string) int

func (Numeric) Len

func (l Numeric) Len() int

Files

column.go

Breadcrumb

code.pfad.fr/swift