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 (QName) MatchesWithOptions ¶
*
- 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.
Click to show internal directories.
Click to hide internal directories.