Documentation

UnicodeBasic.CharacterDatabase

Stream types for Unicode Character Database (UCD) files. #

Unicode data files are semicolon ; (U+003B) separated fields, except for Unihan files and a few others that are tab (U+0009) separated. White spaces around field values are not significant. Line comments are prefixed with a number sign # (U+0023).

structure Unicode.UCDStream (withComments : Bool := false) extends String.Slice :

UCD stream type

Comments and blank lines are omitted in this stream type. Use UCDStreamWithComments if you need comments.

Instances For
    @[reducible, inline]

    UCD stream type with comments

    Comments and blank lines are included in this stream type. Use UCDStream if you do not need comments.

    Equations
    Instances For
      @[reducible, inline]
      abbrev Unicode.UCDStream.ofStringSlice (str : String.Slice) (withComments isUnihan : Bool := false) :
      UCDStream withComments

      Make a UCDStream from a string slice

      Equations
      Instances For
        @[reducible, inline]
        abbrev Unicode.UCDStream.ofString (str : String) (withComments isUnihan : Bool := false) :
        UCDStream withComments

        Make a UCDStream from a string

        Equations
        Instances For
          @[reducible, inline]
          abbrev Unicode.UCDStream.ofSubstring (str : Substring.Raw) (withComments isUnihan : Bool := false) :
          UCDStream withComments

          Make a UCDStream from a substring

          Equations
          Instances For
            @[reducible, inline]
            abbrev Unicode.UCDStream.ofFile (path : System.FilePath) (withComments isUnihan : Bool := false) :
            IO (UCDStream withComments)

            Make a UCDStream from a file

            Equations
            Instances For
              def Unicode.UCDStream.nextLine? {withComments : Bool} (stream : UCDStream withComments) :

              Get the next line from the UCDStream

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