29
29
--
30
30
-- Uses recursive do notation.
31
31
32
- module Text.Regex.TDFA.TNFA (patternToNFA
33
- ,QNFA (.. ),QT (.. ),QTrans ,TagUpdate (.. )) where
32
+ module Text.Regex.TDFA.TNFA
33
+ ( patternToNFA
34
+ , decodeCharacterClass , decodePatternSet
35
+ , QNFA (.. ), QT (.. ), QTrans , TagUpdate (.. )
36
+ ) where
34
37
35
38
{- By Chris Kuklewicz, 2007. BSD License, see the LICENSE file. -}
36
39
@@ -786,7 +789,7 @@ ADD ORPHAN ID check and make this a fatal error while testing
786
789
787
790
-}
788
791
789
- -- | decodePatternSet cannot handle collating element and treats
792
+ -- | @ decodePatternSet@ cannot handle collating element and treats
790
793
-- equivalence classes as just their definition and nothing more.
791
794
decodePatternSet :: PatternSet -> S. Set Char
792
795
decodePatternSet (PatternSet msc mscc _ msec) =
@@ -795,9 +798,9 @@ decodePatternSet (PatternSet msc mscc _ msec) =
795
798
withMSEC = foldl (flip S. insert) withMSCC (maybe [] (concatMap unSEC . S. toAscList) msec)
796
799
in withMSEC
797
800
798
- -- | This returns the distinct ascending list of characters
799
- -- represented by [: :] values in legalCharacterClasses; unrecognized
800
- -- class names return an empty string
801
+ -- | This returns the strictly ascending list of characters
802
+ -- represented by @ [: :]@ POSIX character classes.
803
+ -- Unrecognized class names return an empty string.
801
804
decodeCharacterClass :: PatternSetCharacterClass -> String
802
805
decodeCharacterClass (PatternSetCharacterClass s) =
803
806
case s of
0 commit comments