rust_web_server/symbol/
mod.rs1#[cfg(test)]
2mod tests;
3
4pub struct Symbol {
5 pub new_line_carriage_return: &'static str,
6 pub new_line: &'static str,
7 pub carriage_return: &'static str,
8 pub empty_string: &'static str,
9 pub whitespace: &'static str,
10 pub equals: &'static str,
11 pub comma: &'static str,
12 pub hyphen: &'static str,
13 pub slash: &'static str,
14 pub semicolon: &'static str,
15 pub colon: &'static str,
16 pub number_sign: &'static str,
17 pub opening_square_bracket: &'static str,
18 pub closing_square_bracket: &'static str,
19 pub opening_curly_bracket: &'static str,
20 pub closing_curly_bracket: &'static str,
21 pub quotation_mark: &'static str,
22 pub underscore: &'static str,
23 pub single_quote: &'static str,
24 pub percent: &'static str,
25 pub exclamation_mark: &'static str,
26 pub dollar: &'static str,
27 pub ampersand: &'static str,
28 pub opening_bracket: &'static str,
29 pub closing_bracket: &'static str,
30 pub asterisk: &'static str,
31 pub plus: &'static str,
32 pub question_mark: &'static str,
33 pub at: &'static str,
34 pub control_char_string_terminator: &'static str,
35}
36
37pub const SYMBOL: Symbol = Symbol {
38 new_line: "\n",
39 carriage_return: "\r",
40 new_line_carriage_return: "\r\n",
41 empty_string: "",
42 whitespace: " ",
43 equals: "=",
44 comma: ",",
45 hyphen: "-",
46 slash: "/",
47 semicolon: ";",
48 colon: ":",
49 number_sign: "#",
50 opening_square_bracket: "[",
51 closing_square_bracket: "]",
52 opening_curly_bracket: "{",
53 closing_curly_bracket: "}",
54 quotation_mark: "\"",
55 underscore: "_",
56 single_quote: "'",
57 percent: "%",
58 exclamation_mark: "!",
59 dollar: "$",
60 ampersand: "&",
61 opening_bracket: "(",
62 closing_bracket: ")",
63 asterisk: "*",
64 plus: "+",
65 question_mark: "?",
66 at: "@",
67 control_char_string_terminator: "\u{009}",
68};