path_to_regexp_port
library
Functions
-
arrayToRegexp(List paths, List<Key>? keys, {bool sensitive = false})
→ RegExp
-
-
compile(String str, {bool sensitive = false, String encode(String)?, bool validate = true, String? delimiter, String prefixes = './'})
→ PathFunction
-
-
escapeString(String str)
→ String
-
-
flags({bool sensitive = false})
→ String
-
-
lexer(String str)
→ List<LexToken>
-
-
match(dynamic str, {required String decode(String?, dynamic)})
→ dynamic
-
-
parse(String str, {String? delimiter, String prefixes = './'})
→ List
-
-
pathToRegexp(dynamic path, List<Key>? keys, {String? delimiter, String prefixes = './', bool strict = false, bool start = true, bool end = true, String encode(String)?, bool sensitive = false})
→ RegExp
-
-
regexpToFunction(RegExp re, List<Key> keys, String decode(String?, dynamic))
→ MatchFunction
-
-
regexpToRegexp({required RegExp path, List<Key>? keys})
→ RegExp
-
-
stringToRegexp(String path, List<Key>? keys, {String? delimiter, String prefixes = './', bool strict = false, bool start = true, bool end = true, String encode(String)?})
→ RegExp
-
-
tokensToFunction(List tokens, {bool sensitive = false, String encode(String)?, bool validate = true})
→ PathFunction
-
-
tokensToRegexp(List tokens, List<Key>? keys, {bool strict = false, bool start = true, bool end = true, String? delimiter, String? endsWith, String encode(String)?, bool sensitive = false})
→ RegExp
-