Documentation
¶
Overview ¶
Strs contants string utils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindPrefix ¶
FindPrefix finds longest common prefix between two strings and writes it to int pointer `pf`.
func LCPWithSeparator ¶
LCPWithSeparator is similar to `FindPrefix` but returns longest common prefix with evaluating wildcard positions.
func Match ¶
Match returns wether two strings seperated by delimiter `spl` are exactly a match. First string can contain a wildcard `wildcard` which forces the algrithm to count it as a match. For example: `test/*/a` and `test/a/a` are exact matches because `*` matches any string at its level.
func MatchSplits ¶
MatchSplits returns wether two strings seperated by delimiter `spl` are exactly a match. First string can contain a wildcard `wildcard` which forces the algrithm to count it as a match. For example: `/test/*/a` and `/test/a/a` are exact matches because `*` matches any string at its level. This function is not implemented recursively because of performance issues ( non recursive version is about 500ms faster than a recursive impl.).
Types ¶
This section is empty.