moenster 0.1.0

mønster (n) - pattern. simple glob-style pattern matching for strings
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 12.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • badboy/moenster
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • badboy

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.