Documentation

Batteries.Data.Char.Basic

theorem Char.le_antisymm_iff {x y : Char} :
x = y x y y x
@[simp]
theorem Char.toNat_val (c : Char) :
@[simp]
theorem Char.toNat_ofNatAux {n : Nat} (h : n.isValidChar) :
(ofNatAux n h).toNat = n
@[simp]
theorem Char.toNat_mk {v : UInt32} (h : v.isValidChar) :
{ val := v, valid := h }.toNat = v.toNat
@[simp]
theorem Char.val_ofNat {n : Nat} (hn : n.isValidChar) :
@[reducible, inline]
abbrev Char.max :

Maximum character code point. (See unicode scalar value.)

Equations
Instances For
    @[reducible, inline]

    Maximum surrogate code point. (See unicode scalar value.)

    Equations
    Instances For
      @[reducible, inline]

      Minimum surrogate code point. (See unicode scalar value.)

      Equations
      Instances For
        @[reducible, inline]
        abbrev Char.count :

        Number of valid character code points. (See unicode scalar value.)

        Equations
        Instances For
          def Char.all (p : CharBool) :

          Returns true if p returns true for every Char.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Char.any (p : CharBool) :

            Returns true if p returns true for some Char.

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