qname

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MATCH_OPTION_NONE      = 0
	MATCH_OPTION_ENCOMPASS = 1 << 0
)

*

  • Matching options

Variables

This section is empty.

Functions

This section is empty.

Types

type QName

type QName string

*

  • A qualified name

func QNamef

func QNamef(f string, a ...interface{}) QName

*

  • Format a QName

func (QName) Matches

func (q QName) Matches(z QName) bool

*

  • This is the equivalent of MatchesWithOptions(z, MATCH_OPTION_NONE)

func (QName) MatchesString

func (q QName) MatchesString(a string) bool

*

  • Determine if a string matches this QName

func (QName) MatchesStringWithOptions

func (q QName) MatchesStringWithOptions(a string, options int) bool

*

  • Determine if a string matches this QName

func (QName) MatchesWithOptions

func (q QName) MatchesWithOptions(z QName, options int) bool

*

  • Determine if this name matches the provided name. A name matches another if all the
  • components of both names are identical (ignoring case), or if all the concrete names
  • in the right (parameter) name match those in the left (this) name accounting for
  • wildcards, or if the left name is the name "*", which matches any other name. *
  • If encompassing is permitted, a left name which ends in a wildcard component will match
  • any number of subsequent components in the right name (e.g., "a.*" matches "a.b", "a.b.c",
  • "a.b.c.d", and so fourth). *
  • For example, the concrete name "a.b" matches: "a.b" *
  • The name "a.*.c" matches: "a.b.c", "a.z.c", "a.*.c" ("*" is interpreted literally in the
  • right name). However, the name "a.*.c" does not match: "*.b.c" or "a.c" *
  • When encompassing, the name "a.b.*" matches "a.b.c", "a.b.c.d", and so fourth
  • However it does not match: "a" or "a.b" *
  • The name "*" matches any name, including an emtpy name or the name "*". An empty name
  • matches nothing.

Jump to

Keyboard shortcuts

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