Logo Navs

RouteMatcher Type

Parses URLs and matches them against templates.

Static members

Static member Description

RouteMatcher.TryMatch(pattern, url, match, errors)

Full Usage: RouteMatcher.TryMatch(pattern, url, match, errors)

Parameters:
Returns: bool

Parses the template and the URL, then matches them.

pattern : string
url : string
match : byref<RouteMatch>
errors : byref<IReadOnlyList<MatchError>>
Returns: bool

RouteMatcher.TryMatch(template, url, match, errors)

Full Usage: RouteMatcher.TryMatch(template, url, match, errors)

Parameters:
Returns: bool

Matches a URL against an already parsed template.

template : Template
url : string
match : byref<RouteMatch>
errors : byref<IReadOnlyList<MatchError>>
Returns: bool

RouteMatcher.TryMatch(template, url, match, errors)

Full Usage: RouteMatcher.TryMatch(template, url, match, errors)

Parameters:
Returns: bool

Matches a parsed URL against an already parsed template.

template : Template
url : Url
match : byref<RouteMatch>
errors : byref<IReadOnlyList<MatchError>>
Returns: bool

RouteMatcher.TryParseUrl(url, parsed, error)

Full Usage: RouteMatcher.TryParseUrl(url, parsed, error)

Parameters:
    url : string
    parsed : byref<Url>
    error : byref<string>

Returns: bool

Parses a URL into its segments, query and hash.

url : string
parsed : byref<Url>
error : byref<string>
Returns: bool

Type something to start searching.