matching

package
Version: v0.0.0-...-54f6ab2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareWFNs

func CompareWFNs(source, target common.WellFormedName) map[string]Relation

CompareWFNs compares each attribute value pair in two Well Formed Names. @param source Source WFN @param target Target WFN @return A Hashtable mapping attribute string to attribute value Relation

func IsDisjoint

func IsDisjoint(source, target common.WellFormedName) bool

IsDisjoint tests two Well Formed Names for disjointness. @param source Source WFN @param target Target WFN @return true if the names are disjoint, false otherwise

func IsEqual

func IsEqual(source, target common.WellFormedName) bool

IsEqual tests two Well Formed Names for equality. @param source Source WFN @param target Target WFN @return true if the names are equal, false otherwise

func IsEvenWildcards

func IsEvenWildcards(str string, idx int) bool

IsEvenWildcards searches a string for the backslash character @param str string to search in @param idx end index @return true if the number of backslash characters is even, false if odd

func IsSubset

func IsSubset(source, target common.WellFormedName) bool

IsSubset tests if the source Well Formed Name is a subset of the target Well Formed Name. @param source Source WFN @param target Target WFN @return true if the source is a subset of the target, false otherwise

func IsSuperset

func IsSuperset(source, target common.WellFormedName) bool

IsSuperset tests if the source Well Formed name is a superset of the target Well Formed Name. @param source Source WFN @param target Target WFN @return true if the source is a superset of the target, false otherwise

Types

type Relation

type Relation int

Relation is enumeration for relational values.

const (
	// DISJOINT : disjoint
	DISJOINT Relation = iota
	// SUBSET : subset
	SUBSET
	// SUPERSET : superset
	SUPERSET
	// EQUAL : equal
	EQUAL
	// UNDEFINED : undefined
	UNDEFINED
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL