util

package
v0.0.0-...-490b20b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckItemType

func CheckItemType(str string) byte

CheckItemType checks TypeID field

func CheckKindTest

func CheckKindTest(str string) byte

CheckKindTest checks TypeID field

func IsBracedURILiteral

func IsBracedURILiteral(str string) bool

IsBracedURILiteral checks BracedURILiteral ::= "Q" "{" [^{}]* "}"

func IsChar

func IsChar(ch rune) bool

IsChar checks Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

func IsDigit

func IsDigit(str string) bool

IsDigit checks Digits ::= [0-9]+

func IsEQName

func IsEQName(str string) bool

IsEQName checks EQName ::= QName | URIQualifiedName

func IsForwardAxis

func IsForwardAxis(str string) bool

IsForwardAxis checks ForwardAxis ::= ("child" "::") | ("descendant" "::") | ("attribute" "::") | ("self" "::") | ("descendant-or-self" "::") | ("following-sibling" "::") | ("following" "::") | ("namespace" "::")

func IsGeneralComp

func IsGeneralComp(str string) bool

IsGeneralComp checks GeneralComp ::= "=" | "!=" | "<" | "<=" | ">" | ">="

func IsNCName

func IsNCName(str string) bool

IsNCName checks NCName ::= Name - (Char* ':' Char*)

func IsName

func IsName(str string) bool

IsName checks Name ::= NameStartChar (NameChar)*

func IsNameChar

func IsNameChar(ch rune) bool

IsNameChar checks NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]

func IsNameStartChar

func IsNameStartChar(ch rune) bool

IsNameStartChar checks NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]

func IsNodeComp

func IsNodeComp(str string) bool

IsNodeComp checks NodeComp ::= "is" | "<<" | ">>"

func IsNumber

func IsNumber(str string) bool

IsNumber checks number. eg) .05e2

func IsOccurrenceIndicator

func IsOccurrenceIndicator(str string) bool

IsOccurrenceIndicator checks OccurrenceIndicator ::= "?" | "*" | "+"

func IsPrefixedName

func IsPrefixedName(str string) bool

IsPrefixedName checks PrefixedName ::= Prefix ':' LocalPart

func IsQName

func IsQName(str string) bool

IsQName checks QName ::= PrefixedName | UnprefixedName PrefixedName ::= Prefix ':' LocalPart UnprefixedName ::= LocalPart Prefix ::= NCName LocalPart ::= NCName

func IsReverseAxis

func IsReverseAxis(str string) bool

IsReverseAxis checks ReverseAxis ::= ("parent" "::") | ("ancestor" "::") | ("preceding-sibling" "::") | ("preceding" "::") | ("ancestor-or-self" "::")

func IsURIQualifiedName

func IsURIQualifiedName(str string) bool

IsURIQualifiedName checks URIQualifiedName ::= BracedURILiteral NCName

func IsValueComp

func IsValueComp(str string) bool

IsValueComp checks ValueComp ::= "eq" | "ne" | "lt" | "le" | "gt" | "ge"

func IsWildcard

func IsWildcard(str string) bool

IsWildcard checks Wildcard ::= "*" | (NCName ":*") | ("*:" NCName) | (BracedURILiteral "*")

Types

This section is empty.

Jump to

Keyboard shortcuts

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