moenster

Crates.iomoenster
lib.rsmoenster
version0.1.0
sourcesrc
created_at2021-01-03 13:31:20.817564
updated_at2021-01-03 13:31:20.817564
descriptionmønster (n) - pattern. simple glob-style pattern matching for strings
homepagehttps://github.com/badboy/moenster/
repositoryhttps://github.com/badboy/moenster/
max_upload_size
id331038
size12,799
Engine Devs (github:amethyst:engine-devs)

documentation

https://docs.rs/moenster

README

Crates.io Workflow Status

moenster

mønster (n) - pattern.

Simple glob-style pattern matching for strings. Always matches the whole string from beginning to end.

Wildcard Description Note
* matches any number of any characters including none
? matches any single character does not handle multi-byte UTF-8 codepoints
[abc] matches one character given in the bracket taken as byte values
[a-z] matches one character from the range given in the bracket range taken from their byte values
[^abc] matches one character that is not given in the bracket taken as byte values
[^a-z] matches one character that is not from the range given in the bracket range taken from their byte values

Note: An empty bracket can never match anything.

Example

assert!(stringmatch("m*nster", "mønster"));

License

The code is under a MIT license. See LICENSE.

Commit count: 11

cargo fmt