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).

Equations
Instances For

    Parse lowercase character (Unicode property Lowercase).

    Equations
    Instances For

      Parse math character (Unicode property Math).

      Equations
      Instances For

        Parse uppercase character (Unicode property Uppercase).

        Equations
        Instances For

          Parse white space character (Unicode property White_Space).

          Equations
          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.

            Equations
            Instances For

              Parse hexadecimal digit character.

              Equations
              Instances For

                Parse noncharacter code point (Unicode property Noncharacter_Code_Point).

                Equations
                Instances For

                  Parse default ignorable code point (Unicode property Default_Ignorable_Code_Point).

                  Equations
                  Instances For

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

                    Equations
                    Instances For

                      Parse assigned character, any general category except Cn.

                      Equations
                      Instances For

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

                        Equations
                        Instances For

                          Case-insensitive matching #

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

                          Equations
                          • One or more equations did not get rendered due to their size.
                          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".

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Scripts #

                              Parse character of script sc (Unicode property Script).

                              Equations
                              • One or more equations did not get rendered due to their size.
                              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.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  General Category #

                                  Parse character from given general category.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Parse other character (general category C).

                                    Equations
                                    Instances For

                                      Parse control character (general category Cc).

                                      Equations
                                      Instances For

                                        Parse format character (general category Cf).

                                        Equations
                                        Instances For

                                          Parse private-use character (general category Co).

                                          Equations
                                          Instances For

                                            Parse unassigned code point (general category Cn).

                                            Equations
                                            Instances For