Documentation

ParseIt.Char.Unicode

Unicode character parsers #

Parsers for Unicode character properties, using the UnicodeBasic tables: general categories, scripts and script extensions, binary properties, and case-insensitive matching.

Parse alphabetic character (Unicode property Alphabetic).

Instances For

    Parse lowercase character (Unicode property Lowercase).

    Instances For

      Parse math character (Unicode property Math).

      Instances For

        Parse uppercase character (Unicode property Uppercase).

        Instances For

          Parse white space character (Unicode property White_Space).

          Instances For
            def ParseIt.Char.Unicode.digit {ε ι : Type} {m : Type → Type} [Std.Iterator ι Id Char] [Std.Iterators.Productive ι Id] [Error ε ι Char] [Monad m] :
            ParserT ε ι Char m (Fin 10)

            Parse decimal digit character (general category Nd). Other digits, such as superscripts, are rejected.

            Instances For

              Parse hexadecimal digit character.

              Instances For

                Parse noncharacter code point (Unicode property Noncharacter_Code_Point).

                Instances For

                  Parse default ignorable code point (Unicode property Default_Ignorable_Code_Point).

                  Instances For

                    Parse ASCII character, U+0000 to U+007F.

                    Instances For

                      Parse assigned character, any general category except Cn.

                      Instances For

                        Parse join control character, U+200C or U+200D (Unicode property Join_Control).

                        Instances For

                          Case-insensitive matching #

                          charCaseInsensitive c accepts and returns a character that matches c under simple case folding (Unicode property Simple_Case_Folding).

                          Instances For

                            stringCaseInsensitive s accepts input whose full case folding (Unicode property Case_Folding, statuses C and F) equals s, and returns the input that matched. The pattern s is expected to be case folded already, for example "strasse" matches "Straße" and "STRASSE".

                            Instances For

                              Scripts #

                              Parse character of script sc (Unicode property Script).

                              Instances For

                                Parse character commonly used with script sc (Unicode property Script_Extensions).

                                This differs from parseScript sc: for example, U+0951 DEVANAGARI STRESS SIGN UDATTA has script Zinh (Inherited) but is accepted by parseScriptExt for Deva, Beng and others.

                                Instances For

                                  General Category #

                                  Parse character from given general category.

                                  Instances For

                                    Parse letter (general category L).

                                    Instances For

                                      Parse cased letter (general category LC).

                                      Instances For

                                        Parse lowercase letter (general category Ll).

                                        Instances For

                                          Parse uppercase letter (general category Lu).

                                          Instances For

                                            Parse titlecase letter (general category Lt).

                                            Instances For

                                              Parse other letter (general category Lm).

                                              Instances For

                                                Parse other letter (general category Lo).

                                                Instances For

                                                  Parse mark (general category M).

                                                  Instances For

                                                    Parse spacing combining mark (general category Mc).

                                                    Instances For

                                                      Parse nonspacing combining mark (general category Mn).

                                                      Instances For

                                                        Parse enclosing combining mark (general category Me).

                                                        Instances For

                                                          Parse number (general category N).

                                                          Instances For

                                                            Parse decimal number (general category Nd).

                                                            Instances For

                                                              Parse letter number (general category Nl).

                                                              Instances For

                                                                Parse other number (general category No).

                                                                Instances For

                                                                  Parse punctuation (general category P).

                                                                  Instances For

                                                                    Parse connector punctuation (general category Pc).

                                                                    Instances For

                                                                      Parse dash punctuation (general category Pd).

                                                                      Instances For

                                                                        Parse opening punctuation (general category Ps).

                                                                        Instances For

                                                                          Parse closing punctuation (general category Pe).

                                                                          Instances For

                                                                            Parse initial punctuation (general category Pi).

                                                                            Instances For

                                                                              Parse final punctuation (general category Pf).

                                                                              Instances For

                                                                                Parse other punctuation (general category Po).

                                                                                Instances For

                                                                                  Parse symbol (general category S).

                                                                                  Instances For

                                                                                    Parse math symbol (general category Sm).

                                                                                    Instances For

                                                                                      Parse currency symbol (general category Sc).

                                                                                      Instances For

                                                                                        Parse modifier symbol (general category Sk).

                                                                                        Instances For

                                                                                          Parse other symbol (general category So).

                                                                                          Instances For

                                                                                            Parse separator (general category Z).

                                                                                            Instances For

                                                                                              Parse space separator (general category Zs).

                                                                                              Instances For

                                                                                                Parse line separator (general category Zl).

                                                                                                Instances For

                                                                                                  Parse paragraph separator (general category Zp).

                                                                                                  Instances For

                                                                                                    Parse other character (general category C).

                                                                                                    Instances For

                                                                                                      Parse control character (general category Cc).

                                                                                                      Instances For

                                                                                                        Parse format character (general category Cf).

                                                                                                        Instances For

                                                                                                          Parse private-use character (general category Co).

                                                                                                          Instances For

                                                                                                            Parse unassigned code point (general category Cn).

                                                                                                            Instances For