Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TextEncoderSettings.cs
Go to the documentation of this file.
4
6
8{
10
12 {
13 }
14
16 {
17 if (other == null)
18 {
19 throw new ArgumentNullException("other");
20 }
21 _allowedCodePointsBitmap = other.GetAllowedCodePointsBitmap();
22 }
23
25 {
26 if (allowedRanges == null)
27 {
28 throw new ArgumentNullException("allowedRanges");
29 }
31 }
32
33 public virtual void AllowCharacter(char character)
34 {
36 }
37
38 public virtual void AllowCharacters(params char[] characters)
39 {
40 if (characters == null)
41 {
42 throw new ArgumentNullException("characters");
43 }
44 for (int i = 0; i < characters.Length; i++)
45 {
47 }
48 }
49
51 {
52 if (codePoints == null)
53 {
54 throw new ArgumentNullException("codePoints");
55 }
56 foreach (int codePoint in codePoints)
57 {
59 {
61 }
62 }
63 }
64
65 public virtual void AllowRange(UnicodeRange range)
66 {
67 if (range == null)
68 {
69 throw new ArgumentNullException("range");
70 }
71 int firstCodePoint = range.FirstCodePoint;
72 int length = range.Length;
73 for (int i = 0; i < length; i++)
74 {
75 int num = firstCodePoint + i;
77 }
78 }
79
80 public virtual void AllowRanges(params UnicodeRange[] ranges)
81 {
82 if (ranges == null)
83 {
84 throw new ArgumentNullException("ranges");
85 }
86 for (int i = 0; i < ranges.Length; i++)
87 {
89 }
90 }
91
92 public virtual void Clear()
93 {
95 }
96
97 public virtual void ForbidCharacter(char character)
98 {
100 }
101
102 public virtual void ForbidCharacters(params char[] characters)
103 {
104 if (characters == null)
105 {
106 throw new ArgumentNullException("characters");
107 }
108 for (int i = 0; i < characters.Length; i++)
109 {
111 }
112 }
113
114 public virtual void ForbidRange(UnicodeRange range)
115 {
116 if (range == null)
117 {
118 throw new ArgumentNullException("range");
119 }
120 int firstCodePoint = range.FirstCodePoint;
121 int length = range.Length;
122 for (int i = 0; i < length; i++)
123 {
124 int num = firstCodePoint + i;
126 }
127 }
128
129 public virtual void ForbidRanges(params UnicodeRange[] ranges)
130 {
131 if (ranges == null)
132 {
133 throw new ArgumentNullException("ranges");
134 }
135 for (int i = 0; i < ranges.Length; i++)
136 {
138 }
139 }
140
142 {
143 for (int i = 0; i <= 65535; i++)
144 {
146 {
147 yield return i;
148 }
149 }
150 }
151
153 {
154 if (GetType() == typeof(TextEncoderSettings))
155 {
157 }
159 foreach (int allowedCodePoint in GetAllowedCodePoints())
160 {
161 if ((uint)allowedCodePoint <= 65535u)
162 {
163 strongBox.Value.AllowChar((char)allowedCodePoint);
164 }
165 }
166 return ref strongBox.Value;
167 }
168}
virtual void ForbidRanges(params UnicodeRange[] ranges)
virtual void AllowRange(UnicodeRange range)
TextEncoderSettings(params UnicodeRange[] allowedRanges)
virtual void AllowRanges(params UnicodeRange[] ranges)
ref readonly AllowedBmpCodePointsBitmap GetAllowedCodePointsBitmap()
virtual void ForbidCharacters(params char[] characters)
virtual void AllowCodePoints(IEnumerable< int > codePoints)
virtual void AllowCharacters(params char[] characters)
static bool IsBmpCodePoint(uint value)