authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-08-17 20:07:18+02:00
committergravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-08-17 20:07:58+02:00
log37880f2385fee17a2d2ff4388cbe2b3395ed47fa
treeebab8f0321a50a161eb3dd78fbe5d02ddc84480d
parent298062897da5de0766f180ebb7a66a6f1e91af88

api: deprecate lowercase control_code consts


1 files changed, 71 insertions(+), 0 deletions(-)

lib/std/ascii.zig+71
...@@ -14,6 +14,77 @@ const std = @import("std");...@@ -14,6 +14,77 @@ const std = @import("std");
14///14///
15/// See also: https://en.wikipedia.org/wiki/C0_and_C1_control_codes and `isControl`.15/// See also: https://en.wikipedia.org/wiki/C0_and_C1_control_codes and `isControl`.
16pub const control_code = struct {16pub const control_code = struct {
17 // DEPRECATED: use the lowercase variant
18 pub const NUL = 0x00;
19 // DEPRECATED: use the lowercase variant
20 pub const SOH = 0x01;
21 // DEPRECATED: use the lowercase variant
22 pub const STX = 0x02;
23 // DEPRECATED: use the lowercase variant
24 pub const ETX = 0x03;
25 // DEPRECATED: use the lowercase variant
26 pub const EOT = 0x04;
27 // DEPRECATED: use the lowercase variant
28 pub const ENQ = 0x05;
29 // DEPRECATED: use the lowercase variant
30 pub const ACK = 0x06;
31 // DEPRECATED: use the lowercase variant
32 pub const BEL = 0x07;
33 // DEPRECATED: use the lowercase variant
34 pub const BS = 0x08;
35 // DEPRECATED: use `ht`
36 pub const TAB = 0x09;
37 // DEPRECATED: use the lowercase variant
38 pub const LF = 0x0A;
39 // DEPRECATED: use the lowercase variant
40 pub const VT = 0x0B;
41 // DEPRECATED: use the lowercase variant
42 pub const FF = 0x0C;
43 // DEPRECATED: use the lowercase variant
44 pub const CR = 0x0D;
45 // DEPRECATED: use the lowercase variant
46 pub const SO = 0x0E;
47 // DEPRECATED: use the lowercase variant
48 pub const SI = 0x0F;
49 // DEPRECATED: use the lowercase variant
50 pub const DLE = 0x10;
51 // DEPRECATED: use the lowercase variant
52 pub const DC1 = 0x11;
53 // DEPRECATED: use the lowercase variant
54 pub const DC2 = 0x12;
55 // DEPRECATED: use the lowercase variant
56 pub const DC3 = 0x13;
57 // DEPRECATED: use the lowercase variant
58 pub const DC4 = 0x14;
59 // DEPRECATED: use the lowercase variant
60 pub const NAK = 0x15;
61 // DEPRECATED: use the lowercase variant
62 pub const SYN = 0x16;
63 // DEPRECATED: use the lowercase variant
64 pub const ETB = 0x17;
65 // DEPRECATED: use the lowercase variant
66 pub const CAN = 0x18;
67 // DEPRECATED: use the lowercase variant
68 pub const EM = 0x19;
69 // DEPRECATED: use the lowercase variant
70 pub const SUB = 0x1A;
71 // DEPRECATED: use the lowercase variant
72 pub const ESC = 0x1B;
73 // DEPRECATED: use the lowercase variant
74 pub const FS = 0x1C;
75 // DEPRECATED: use the lowercase variant
76 pub const GS = 0x1D;
77 // DEPRECATED: use the lowercase variant
78 pub const RS = 0x1E;
79 // DEPRECATED: use the lowercase variant
80 pub const US = 0x1F;
81 // DEPRECATED: use the lowercase variant
82 pub const DEL = 0x7F;
83 // DEPRECATED: use the lowercase variant
84 pub const XON = 0x11;
85 // DEPRECATED: use the lowercase variant
86 pub const XOFF = 0x13;
87
17 /// Null.88 /// Null.
18 pub const nul = 0x00;89 pub const nul = 0x00;
19 /// Start of Heading.90 /// Start of Heading.