Portability | portable |
---|---|
Maintainer | Hironao Komatsu <hirkmt@gmail.com> |
Safe Haskell | None |
Natural order string comparison is needed when e.g. one wants to compare file names or strings of software version. It's aimed to be compatible to glibc's strverscmp() function.
- naturalComp :: Stringy s => s -> s -> Ordering
- naturalCaseComp :: Stringy s => s -> s -> Ordering
- naturalCompBy :: Stringy s => (Char -> Char -> Ordering) -> s -> s -> Ordering
Documentation
naturalComp :: Stringy s => s -> s -> OrderingSource
natural order string comparison, compatible to glibc's strverscmp()
naturalCaseComp :: Stringy s => s -> s -> OrderingSource
natural order and case-insensitive string comparison