web_atoms/
lib.rs

1// Copyright 2014-2017 The html5ever Project Developers. See the
2// COPYRIGHT file at the top-level directory of this distribution.
3//
4// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7// option. This file may not be copied, modified, or distributed
8// except according to those terms.
9
10#![allow(unexpected_cfgs)]
11// This error is coming from code generated by PHF which we cannot directly fix
12#![allow(clippy::empty_line_after_doc_comments)]
13
14use phf::Map;
15
16/// The spec replaces most characters in the ISO-2022 C1 control code range
17/// (U+0080 through U+009F) with these characters, based on Windows 8-bit
18/// codepages.
19pub static C1_REPLACEMENTS: [Option<char>; 32] = [
20    Some('\u{20ac}'),
21    None,
22    Some('\u{201a}'),
23    Some('\u{0192}'),
24    Some('\u{201e}'),
25    Some('\u{2026}'),
26    Some('\u{2020}'),
27    Some('\u{2021}'),
28    Some('\u{02c6}'),
29    Some('\u{2030}'),
30    Some('\u{0160}'),
31    Some('\u{2039}'),
32    Some('\u{0152}'),
33    None,
34    Some('\u{017d}'),
35    None,
36    None,
37    Some('\u{2018}'),
38    Some('\u{2019}'),
39    Some('\u{201c}'),
40    Some('\u{201d}'),
41    Some('\u{2022}'),
42    Some('\u{2013}'),
43    Some('\u{2014}'),
44    Some('\u{02dc}'),
45    Some('\u{2122}'),
46    Some('\u{0161}'),
47    Some('\u{203a}'),
48    Some('\u{0153}'),
49    None,
50    Some('\u{017e}'),
51    Some('\u{0178}'),
52];
53
54include!(concat!(env!("OUT_DIR"), "/named_entities.rs"));
55include!(concat!(env!("OUT_DIR"), "/generated.rs"));