Package gw.internal.gosu.util
Class RabinKarpHash
java.lang.Object
gw.internal.gosu.util.RabinKarpHash
Fast multi-pattern string matcher.
Quick and dirty implementation of Rabin-Karp algorithm. Used for paths matching.
We mach patterns from the end to reduce amount of possible collisions (filesystem paths tend to have common prefixes,
like package names, etc).
FIXME: Tests...
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RabinKarpHash
-
-
Method Details
-
matches
-