@@ -1045,66 +1045,4 @@ def BidiClass.ofAbbrev! (abbr : Substring) : BidiClass :=
10451045instance : Repr BidiClass where
10461046 reprPrec bc _ := s! "Unicode.BidiClass.{ bc.toAbbrev} "
10471047
1048- /-- Structure for data from `UnicodeData.txt` -/
1049- structure UnicodeData where
1050- /-- Code Value -/
1051- code : UInt32
1052- /-- Character Name -/
1053- name : Substring
1054- /-- General Category -/
1055- gc : GC
1056- /-- Bidirectional Class -/
1057- bidi : BidiClass
1058- /-- Canonical Combining Class -/
1059- cc : Nat := 0
1060- /-- Bidirectional Mirrored -/
1061- bidiMirrored : Bool := false
1062- /-- Character Decomposition Mapping -/
1063- decomp : Option DecompositionMapping := none
1064- /-- Numeric Value -/
1065- numeric : Option NumericType := none
1066- /-- Uppercase Mapping -/
1067- uppercase : Option Char := none
1068- /-- Lowercase Mapping -/
1069- lowercase : Option Char := none
1070- /-- Titlecase Mapping -/
1071- titlecase : Option Char := none
1072- deriving BEq, Repr
1073-
1074- @ [deprecated UnicodeData.code (since := "1.3.0" )]
1075- abbrev UnicodeData.codeValue := @UnicodeData.code
1076-
1077- @ [deprecated UnicodeData.name (since := "1.3.0" )]
1078- abbrev UnicodeData.characterName := @UnicodeData.name
1079-
1080- set_option linter.deprecated false in
1081- @ [deprecated UnicodeData.gc (since := "1.3.0" )]
1082- def UnicodeData.generalCategory (d : UnicodeData) : GeneralCategory := .ofGC! d.gc
1083-
1084- @ [deprecated UnicodeData.bidi (since := "1.3.0" )]
1085- abbrev UnicodeData.bidiClass := @UnicodeData.bidi
1086-
1087- @ [deprecated UnicodeData.cc (since := "1.3.0" )]
1088- abbrev UnicodeData.canonicalCombiningClass := @UnicodeData.cc
1089-
1090- @ [deprecated UnicodeData.cc (since := "1.3.0" )]
1091- abbrev UnicodeData.decompositionMapping := @UnicodeData.decomp
1092-
1093- @ [deprecated UnicodeData.lowercase (since := "1.3.0" )]
1094- abbrev UnicodeData.lowercaseMapping := @UnicodeData.lowercase
1095-
1096- @ [deprecated UnicodeData.uppercase (since := "1.3.0" )]
1097- abbrev UnicodeData.uppercaseMapping := @UnicodeData.uppercase
1098-
1099- @ [deprecated UnicodeData.titlecase (since := "1.3.0" )]
1100- abbrev UnicodeData.titlecaseMapping := @UnicodeData.titlecase
1101-
1102- instance : Inhabited UnicodeData where
1103- default := {
1104- code := 0
1105- name := "<control-0000>"
1106- bidi := .BN
1107- gc := .Cc
1108- }
1109-
11101048end Unicode
0 commit comments