package syto

  1. Overview
  2. Docs
POSIX fnmatch(3) filename pattern matching

Install

dune-project
 Dependency

Authors

Maintainers

Sources

syto-0.1.0.tbz
sha256=4af63e149ba034dfd123ad452712d2c2dc21679c5547af671c48eb07a14e9c54
sha512=dcd7c47d117a31b5549727ec9c86902fa139deaaa1481ec0505a6f95cf4cbd5361f382ee2ceedc8ad4e402a46e3f2e18079fe48a8b20ef4113e6ca2d03d80a3d

doc/CHANGES.html

0.1.0 (2026-06-09)

Initial release.

  • POSIX fnmatch(3) pattern matching: match_pattern and filter
  • Flags: Pathname, Noescape, Period (POSIX); Casefold, Globstar (extensions)
  • UTF-8 codepoint-aware: ? matches one Unicode codepoint; ranges operate on codepoints
  • Casefold is ASCII-only (A–Z); bracket range validation uses raw (unfolded) endpoints
  • Globstar recognises ** only at path-component boundaries; trailing ** requires at least one name component
  • Structured error type: Error of { kind; pattern; offset }
  • Unsupported_bracket_syntax for collating elements and equivalence classes
  • 376 tests passing (361 canonical vectors + 15 property tests)
  • No dependencies beyond OCaml stdlib and alcotest (test only)