-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
System.Text.Encodings.Web.cs
245 lines (244 loc) · 20.5 KB
/
System.Text.Encodings.Web.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.Text.Encodings.Web
{
public abstract partial class HtmlEncoder : System.Text.Encodings.Web.TextEncoder
{
protected HtmlEncoder() { }
public static System.Text.Encodings.Web.HtmlEncoder Default { get { throw null; } }
public static System.Text.Encodings.Web.HtmlEncoder Create(System.Text.Encodings.Web.TextEncoderSettings settings) { throw null; }
public static System.Text.Encodings.Web.HtmlEncoder Create(params System.Text.Unicode.UnicodeRange[] allowedRanges) { throw null; }
}
public abstract partial class JavaScriptEncoder : System.Text.Encodings.Web.TextEncoder
{
protected JavaScriptEncoder() { }
public static System.Text.Encodings.Web.JavaScriptEncoder Default { get { throw null; } }
public static System.Text.Encodings.Web.JavaScriptEncoder UnsafeRelaxedJsonEscaping { get { throw null; } }
public static System.Text.Encodings.Web.JavaScriptEncoder Create(System.Text.Encodings.Web.TextEncoderSettings settings) { throw null; }
public static System.Text.Encodings.Web.JavaScriptEncoder Create(params System.Text.Unicode.UnicodeRange[] allowedRanges) { throw null; }
}
public abstract partial class TextEncoder
{
protected TextEncoder() { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public abstract int MaxOutputCharactersPerInputCharacter { get; }
public virtual void Encode(System.IO.TextWriter output, char[] value, int startIndex, int characterCount) { }
public void Encode(System.IO.TextWriter output, string value) { }
public virtual void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) { }
public virtual System.Buffers.OperationStatus Encode(System.ReadOnlySpan<char> source, System.Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock = true) { throw null; }
public virtual string Encode(string value) { throw null; }
public virtual System.Buffers.OperationStatus EncodeUtf8(System.ReadOnlySpan<byte> utf8Source, System.Span<byte> utf8Destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) { throw null; }
[System.CLSCompliantAttribute(false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public unsafe abstract int FindFirstCharacterToEncode(char* text, int textLength);
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public virtual int FindFirstCharacterToEncodeUtf8(System.ReadOnlySpan<byte> utf8Text) { throw null; }
[System.CLSCompliantAttribute(false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public unsafe abstract bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten);
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public abstract bool WillEncode(int unicodeScalar);
}
public partial class TextEncoderSettings
{
public TextEncoderSettings() { }
public TextEncoderSettings(System.Text.Encodings.Web.TextEncoderSettings other) { }
public TextEncoderSettings(params System.Text.Unicode.UnicodeRange[] allowedRanges) { }
public virtual void AllowCharacter(char character) { }
public virtual void AllowCharacters(params char[] characters) { }
public virtual void AllowCodePoints(System.Collections.Generic.IEnumerable<int> codePoints) { }
public virtual void AllowRange(System.Text.Unicode.UnicodeRange range) { }
public virtual void AllowRanges(params System.Text.Unicode.UnicodeRange[] ranges) { }
public virtual void Clear() { }
public virtual void ForbidCharacter(char character) { }
public virtual void ForbidCharacters(params char[] characters) { }
public virtual void ForbidRange(System.Text.Unicode.UnicodeRange range) { }
public virtual void ForbidRanges(params System.Text.Unicode.UnicodeRange[] ranges) { }
public virtual System.Collections.Generic.IEnumerable<int> GetAllowedCodePoints() { throw null; }
}
public abstract partial class UrlEncoder : System.Text.Encodings.Web.TextEncoder
{
protected UrlEncoder() { }
public static System.Text.Encodings.Web.UrlEncoder Default { get { throw null; } }
public static System.Text.Encodings.Web.UrlEncoder Create(System.Text.Encodings.Web.TextEncoderSettings settings) { throw null; }
public static System.Text.Encodings.Web.UrlEncoder Create(params System.Text.Unicode.UnicodeRange[] allowedRanges) { throw null; }
}
}
namespace System.Text.Unicode
{
public sealed partial class UnicodeRange
{
public UnicodeRange(int firstCodePoint, int length) { }
public int FirstCodePoint { get { throw null; } }
public int Length { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Create(char firstCharacter, char lastCharacter) { throw null; }
}
public static partial class UnicodeRanges
{
public static System.Text.Unicode.UnicodeRange All { get { throw null; } }
public static System.Text.Unicode.UnicodeRange AlphabeticPresentationForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Arabic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicExtendedB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicPresentationFormsA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicPresentationFormsB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Armenian { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Arrows { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Balinese { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Bamum { get { throw null; } }
public static System.Text.Unicode.UnicodeRange BasicLatin { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Batak { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Bengali { get { throw null; } }
public static System.Text.Unicode.UnicodeRange BlockElements { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Bopomofo { get { throw null; } }
public static System.Text.Unicode.UnicodeRange BopomofoExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange BoxDrawing { get { throw null; } }
public static System.Text.Unicode.UnicodeRange BraillePatterns { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Buginese { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Buhid { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Cham { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Cherokee { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CherokeeSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkCompatibility { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkCompatibilityForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkCompatibilityIdeographs { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkRadicalsSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkStrokes { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkSymbolsandPunctuation { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkUnifiedIdeographs { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CjkUnifiedIdeographsExtensionA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CombiningDiacriticalMarks { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CombiningDiacriticalMarksExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CombiningDiacriticalMarksforSymbols { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CombiningDiacriticalMarksSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CombiningHalfMarks { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CommonIndicNumberForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ControlPictures { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Coptic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CurrencySymbols { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Cyrillic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CyrillicExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CyrillicExtendedB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CyrillicExtendedC { get { throw null; } }
public static System.Text.Unicode.UnicodeRange CyrillicSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Devanagari { get { throw null; } }
public static System.Text.Unicode.UnicodeRange DevanagariExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Dingbats { get { throw null; } }
public static System.Text.Unicode.UnicodeRange EnclosedAlphanumerics { get { throw null; } }
public static System.Text.Unicode.UnicodeRange EnclosedCjkLettersandMonths { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Ethiopic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange EthiopicExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange EthiopicExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange EthiopicSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange GeneralPunctuation { get { throw null; } }
public static System.Text.Unicode.UnicodeRange GeometricShapes { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Georgian { get { throw null; } }
public static System.Text.Unicode.UnicodeRange GeorgianExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange GeorgianSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Glagolitic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange GreekandCoptic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange GreekExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Gujarati { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Gurmukhi { get { throw null; } }
public static System.Text.Unicode.UnicodeRange HalfwidthandFullwidthForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange HangulCompatibilityJamo { get { throw null; } }
public static System.Text.Unicode.UnicodeRange HangulJamo { get { throw null; } }
public static System.Text.Unicode.UnicodeRange HangulJamoExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange HangulJamoExtendedB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange HangulSyllables { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Hanunoo { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Hebrew { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Hiragana { get { throw null; } }
public static System.Text.Unicode.UnicodeRange IdeographicDescriptionCharacters { get { throw null; } }
public static System.Text.Unicode.UnicodeRange IpaExtensions { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Javanese { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Kanbun { get { throw null; } }
public static System.Text.Unicode.UnicodeRange KangxiRadicals { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Kannada { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Katakana { get { throw null; } }
public static System.Text.Unicode.UnicodeRange KatakanaPhoneticExtensions { get { throw null; } }
public static System.Text.Unicode.UnicodeRange KayahLi { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Khmer { get { throw null; } }
public static System.Text.Unicode.UnicodeRange KhmerSymbols { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Lao { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Latin1Supplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LatinExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LatinExtendedAdditional { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LatinExtendedB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LatinExtendedC { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LatinExtendedD { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LatinExtendedE { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Lepcha { get { throw null; } }
public static System.Text.Unicode.UnicodeRange LetterlikeSymbols { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Limbu { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Lisu { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Malayalam { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Mandaic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MathematicalOperators { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MeeteiMayek { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MeeteiMayekExtensions { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MiscellaneousMathematicalSymbolsA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MiscellaneousMathematicalSymbolsB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MiscellaneousSymbols { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MiscellaneousSymbolsandArrows { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MiscellaneousTechnical { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ModifierToneLetters { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Mongolian { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Myanmar { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MyanmarExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange MyanmarExtendedB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange NewTaiLue { get { throw null; } }
public static System.Text.Unicode.UnicodeRange NKo { get { throw null; } }
public static System.Text.Unicode.UnicodeRange None { get { throw null; } }
public static System.Text.Unicode.UnicodeRange NumberForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Ogham { get { throw null; } }
public static System.Text.Unicode.UnicodeRange OlChiki { get { throw null; } }
public static System.Text.Unicode.UnicodeRange OpticalCharacterRecognition { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Oriya { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Phagspa { get { throw null; } }
public static System.Text.Unicode.UnicodeRange PhoneticExtensions { get { throw null; } }
public static System.Text.Unicode.UnicodeRange PhoneticExtensionsSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Rejang { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Runic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Samaritan { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Saurashtra { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Sinhala { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SmallFormVariants { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SpacingModifierLetters { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Specials { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Sundanese { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SundaneseSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SuperscriptsandSubscripts { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SupplementalArrowsA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SupplementalArrowsB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SupplementalMathematicalOperators { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SupplementalPunctuation { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SylotiNagri { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Syriac { get { throw null; } }
public static System.Text.Unicode.UnicodeRange SyriacSupplement { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Tagalog { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Tagbanwa { get { throw null; } }
public static System.Text.Unicode.UnicodeRange TaiLe { get { throw null; } }
public static System.Text.Unicode.UnicodeRange TaiTham { get { throw null; } }
public static System.Text.Unicode.UnicodeRange TaiViet { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Tamil { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Telugu { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Thaana { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Thai { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Tibetan { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Tifinagh { get { throw null; } }
public static System.Text.Unicode.UnicodeRange UnifiedCanadianAboriginalSyllabics { get { throw null; } }
public static System.Text.Unicode.UnicodeRange UnifiedCanadianAboriginalSyllabicsExtended { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Vai { get { throw null; } }
public static System.Text.Unicode.UnicodeRange VariationSelectors { get { throw null; } }
public static System.Text.Unicode.UnicodeRange VedicExtensions { get { throw null; } }
public static System.Text.Unicode.UnicodeRange VerticalForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange YijingHexagramSymbols { get { throw null; } }
public static System.Text.Unicode.UnicodeRange YiRadicals { get { throw null; } }
public static System.Text.Unicode.UnicodeRange YiSyllables { get { throw null; } }
}
}