Encoding code clean up (#12864)
[platform/upstream/coreclr.git] / src / mscorlib / shared / System / Text / Latin1Encoding.cs
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4
5 using System;
6 using System.Diagnostics;
7 using System.Diagnostics.Contracts;
8
9 namespace System.Text
10 {
11     //
12     // Latin1Encoding is a simple override to optimize the GetString version of Latin1Encoding.
13     // because of the best fit cases we can't do this when encoding the string, only when decoding
14     //
15     internal class Latin1Encoding : EncodingNLS
16     {
17         // Used by Encoding.Latin1 for lazy initialization
18         // The initialization code will not be run until a static member of the class is referenced
19         internal static readonly Latin1Encoding s_default = new Latin1Encoding();
20
21         // We only use the best-fit table, of which ASCII is a superset for us.
22         public Latin1Encoding() : base(Encoding.ISO_8859_1)
23         {
24         }
25
26         // GetByteCount
27         // Note: We start by assuming that the output will be the same as count.  Having
28         // an encoder or fallback may change that assumption
29         internal override unsafe int GetByteCount(char* chars, int charCount, EncoderNLS encoder)
30         {
31             // Just need to ASSERT, this is called by something else internal that checked parameters already
32             Debug.Assert(charCount >= 0, "[Latin1Encoding.GetByteCount]count is negative");
33             Debug.Assert(chars != null, "[Latin1Encoding.GetByteCount]chars is null");
34
35             // Assert because we shouldn't be able to have a null encoder.
36             Debug.Assert(encoderFallback != null, "[Latin1Encoding.GetByteCount]Attempting to use null fallback encoder");
37
38             char charLeftOver = (char)0;
39
40             // If we have an encoder AND we aren't using default fallback,
41             // then we may have a complicated count.
42             EncoderReplacementFallback fallback;
43             if (encoder != null)
44             {
45                 charLeftOver = encoder._charLeftOver;
46                 Debug.Assert(charLeftOver == 0 || Char.IsHighSurrogate(charLeftOver),
47                     "[Latin1Encoding.GetByteCount]leftover character should be high surrogate");
48
49                 fallback = encoder.Fallback as EncoderReplacementFallback;
50
51                 // Verify that we have no fallbackbuffer, for Latin1 its always empty, so just assert
52                 Debug.Assert(!encoder._throwOnOverflow || !encoder.InternalHasFallbackBuffer ||
53                     encoder.FallbackBuffer.Remaining == 0,
54                     "[Latin1CodePageEncoding.GetByteCount]Expected empty fallback buffer");
55             }
56             else
57                 fallback = this.EncoderFallback as EncoderReplacementFallback;
58
59             if ((fallback != null && fallback.MaxCharCount == 1)/* || bIsBestFit*/)
60             {
61                 // Replacement fallback encodes surrogate pairs as two ?? (or two whatever), so return size is always
62                 // same as input size.
63                 // Note that no existing SBCS code pages map code points to supplimentary characters, so this is easy.
64
65                 // We could however have 1 extra byte if the last call had an encoder and a funky fallback and
66                 // if we don't use the funky fallback this time.
67
68                 // Do we have an extra char left over from last time?
69                 if (charLeftOver > 0)
70                     charCount++;
71
72                 return (charCount);
73             }
74
75             // Count is more complicated if you have a funky fallback
76             // For fallback we may need a fallback buffer, we know we're not default fallback
77             int byteCount = 0;
78
79             // Start by assuming default count, then +/- for fallback characters
80             char* charEnd = chars + charCount;
81
82             // For fallback we may need a fallback buffer, we know we aren't default fallback.
83             EncoderFallbackBuffer fallbackBuffer = null;
84             char* charsForFallback;
85
86             // We may have a left over character from last time, try and process it.
87             if (charLeftOver > 0)
88             {
89                 // Initialize the buffer
90                 Debug.Assert(encoder != null,
91                     "[Latin1Encoding.GetByteCount]Expected encoder if we have charLeftOver");
92                 fallbackBuffer = encoder.FallbackBuffer;
93                 fallbackBuffer.InternalInitialize(chars, charEnd, encoder, false);
94
95                 // Since left over char was a surrogate, it'll have to be fallen back.
96                 // Get Fallback
97                 // This will fallback a pair if *chars is a low surrogate
98                 charsForFallback = chars;
99                 fallbackBuffer.InternalFallback(charLeftOver, ref charsForFallback);
100                 chars = charsForFallback;
101             }
102
103             // Now we may have fallback char[] already from the encoder
104
105             // Go ahead and do it, including the fallback.
106             char ch;
107             while ((ch = (fallbackBuffer == null) ? '\0' : fallbackBuffer.InternalGetNextChar()) != 0 ||
108                     chars < charEnd)
109             {
110                 // First unwind any fallback
111                 if (ch == 0)
112                 {
113                     // No fallback, just get next char
114                     ch = *chars;
115                     chars++;
116                 }
117
118                 // Check for fallback, this'll catch surrogate pairs too.
119                 // no chars >= 0x100 are allowed.
120                 if (ch > 0xff)
121                 {
122                     // Initialize the buffer
123                     if (fallbackBuffer == null)
124                     {
125                         if (encoder == null)
126                             fallbackBuffer = this.encoderFallback.CreateFallbackBuffer();
127                         else
128                             fallbackBuffer = encoder.FallbackBuffer;
129                         fallbackBuffer.InternalInitialize(charEnd - charCount, charEnd, encoder, false);
130                     }
131
132                     // Get Fallback
133                     charsForFallback = chars;
134                     fallbackBuffer.InternalFallback(ch, ref charsForFallback);
135                     chars = charsForFallback;
136                     continue;
137                 }
138
139                 // We'll use this one
140                 byteCount++;
141             }
142
143             Debug.Assert(fallbackBuffer == null || fallbackBuffer.Remaining == 0,
144                 "[Latin1Encoding.GetByteCount]Expected Empty fallback buffer");
145
146             return byteCount;
147         }
148
149         internal override unsafe int GetBytes(char* chars, int charCount,
150                                                 byte* bytes, int byteCount, EncoderNLS encoder)
151         {
152             // Just need to ASSERT, this is called by something else internal that checked parameters already
153             Debug.Assert(bytes != null, "[Latin1Encoding.GetBytes]bytes is null");
154             Debug.Assert(byteCount >= 0, "[Latin1Encoding.GetBytes]byteCount is negative");
155             Debug.Assert(chars != null, "[Latin1Encoding.GetBytes]chars is null");
156             Debug.Assert(charCount >= 0, "[Latin1Encoding.GetBytes]charCount is negative");
157
158             // Assert because we shouldn't be able to have a null encoder.
159             Debug.Assert(encoderFallback != null, "[Latin1Encoding.GetBytes]Attempting to use null encoder fallback");
160
161             // Get any left over characters & check fast or slower fallback type
162             char charLeftOver = (char)0;
163             EncoderReplacementFallback fallback = null;
164             if (encoder != null)
165             {
166                 charLeftOver = encoder._charLeftOver;
167                 fallback = encoder.Fallback as EncoderReplacementFallback;
168                 Debug.Assert(charLeftOver == 0 || Char.IsHighSurrogate(charLeftOver),
169                     "[Latin1Encoding.GetBytes]leftover character should be high surrogate");
170
171                 // Verify that we have no fallbackbuffer, for ASCII its always empty, so just assert
172                 Debug.Assert(!encoder._throwOnOverflow || !encoder.InternalHasFallbackBuffer ||
173                     encoder.FallbackBuffer.Remaining == 0,
174                     "[Latin1CodePageEncoding.GetBytes]Expected empty fallback buffer");
175             }
176             else
177             {
178                 fallback = this.EncoderFallback as EncoderReplacementFallback;
179             }
180
181             // prepare our end
182             char* charEnd = chars + charCount;
183             byte* byteStart = bytes;
184             char* charStart = chars;
185
186             // See if we do the fast default or slightly slower fallback
187             if (fallback != null && fallback.MaxCharCount == 1)
188             {
189                 // Fast version
190                 char cReplacement = fallback.DefaultString[0];
191
192                 // Check for replacements in range, otherwise fall back to slow version.
193                 if (cReplacement <= (char)0xff)
194                 {
195                     // We should have exactly as many output bytes as input bytes, unless there's a left
196                     // over character, in which case we may need one more.
197
198                     // If we had a left over character will have to add a ?  (This happens if they had a funky
199                     // fallback last time, but not this time.) (We can't spit any out though
200                     // because with fallback encoder each surrogate is treated as a seperate code point)
201                     if (charLeftOver > 0)
202                     {
203                         // Have to have room
204                         // Throw even if doing no throw version because this is just 1 char,
205                         // so buffer will never be big enough
206                         if (byteCount == 0)
207                             ThrowBytesOverflow(encoder, true);
208
209                         // This'll make sure we still have more room and also make sure our return value is correct.
210                         *(bytes++) = (byte)cReplacement;
211                         byteCount--;                // We used one of the ones we were counting.
212                     }
213
214                     // This keeps us from overrunning our output buffer
215                     if (byteCount < charCount)
216                     {
217                         // Throw or make buffer smaller?
218                         ThrowBytesOverflow(encoder, byteCount < 1);
219
220                         // Just use what we can
221                         charEnd = chars + byteCount;
222                     }
223
224                     // We just do a quick copy
225                     while (chars < charEnd)
226                     {
227                         char ch2 = *(chars++);
228                         if (ch2 > 0x00ff) *(bytes++) = (byte)cReplacement;
229                         else *(bytes++) = (byte)ch2;
230                     }
231
232                     // Clear encoder
233                     if (encoder != null)
234                     {
235                         encoder._charLeftOver = (char)0;
236                         encoder._charsUsed = (int)(chars - charStart);
237                     }
238                     return (int)(bytes - byteStart);
239                 }
240             }
241
242             // Slower version, have to do real fallback.
243
244             // prepare our end
245             byte* byteEnd = bytes + byteCount;
246
247             // For fallback we may need a fallback buffer, we know we aren't default fallback, create & init it
248             EncoderFallbackBuffer fallbackBuffer = null;
249             char* charsForFallback;
250
251             // We may have a left over character from last time, try and process it.
252             if (charLeftOver > 0)
253             {
254                 // Since left over char was a surrogate, it'll have to be fallen back.
255                 // Get Fallback
256                 Debug.Assert(encoder != null,
257                     "[Latin1Encoding.GetBytes]Expected encoder if we have charLeftOver");
258                 fallbackBuffer = encoder.FallbackBuffer;
259                 fallbackBuffer.InternalInitialize(chars, charEnd, encoder, true);
260
261                 // Since left over char was a surrogate, it'll have to be fallen back.
262                 // Get Fallback
263                 // This will fallback a pair if *chars is a low surrogate
264                 charsForFallback = chars;
265                 fallbackBuffer.InternalFallback(charLeftOver, ref charsForFallback);
266                 chars = charsForFallback;
267
268                 if (fallbackBuffer.Remaining > byteEnd - bytes)
269                 {
270                     // Throw it, if we don't have enough for this we never will
271                     ThrowBytesOverflow(encoder, true);
272                 }
273             }
274
275             // Now we may have fallback char[] already from the encoder fallback above
276
277             // Go ahead and do it, including the fallback.
278             char ch;
279             while ((ch = (fallbackBuffer == null) ? '\0' : fallbackBuffer.InternalGetNextChar()) != 0 ||
280                     chars < charEnd)
281             {
282                 // First unwind any fallback
283                 if (ch == 0)
284                 {
285                     // No fallback, just get next char
286                     ch = *chars;
287                     chars++;
288                 }
289
290                 // Check for fallback, this'll catch surrogate pairs too.
291                 // All characters >= 0x100 must fall back.
292                 if (ch > 0xff)
293                 {
294                     // Initialize the buffer
295                     if (fallbackBuffer == null)
296                     {
297                         if (encoder == null)
298                             fallbackBuffer = this.encoderFallback.CreateFallbackBuffer();
299                         else
300                             fallbackBuffer = encoder.FallbackBuffer;
301                         fallbackBuffer.InternalInitialize(charEnd - charCount, charEnd, encoder, true);
302                     }
303
304                     // Get Fallback
305                     charsForFallback = chars;
306                     fallbackBuffer.InternalFallback(ch, ref charsForFallback);
307                     chars = charsForFallback;
308
309                     // Make sure we have enough room.  Each fallback char will be 1 output char
310                     // (or else cause a recursion exception)
311                     if (fallbackBuffer.Remaining > byteEnd - bytes)
312                     {
313                         // Didn't use this char, throw it.  Chars should've advanced by now
314                         // If we had encoder fallback data it would've thrown before the loop
315                         Debug.Assert(chars > charStart,
316                             "[Latin1Encoding.GetBytes]Expected chars to have advanced (fallback case)");
317                         chars--;
318                         fallbackBuffer.InternalReset();
319
320                         // Throw it
321                         ThrowBytesOverflow(encoder, chars == charStart);
322                         break;
323                     }
324
325                     continue;
326                 }
327
328                 // We'll use this one
329                 // Bounds check
330                 if (bytes >= byteEnd)
331                 {
332                     // didn't use this char, we'll throw or use buffer
333                     Debug.Assert(fallbackBuffer == null || fallbackBuffer.bFallingBack == false,
334                         "[Latin1Encoding.GetBytes]Expected fallback to have throw initially if insufficient space");
335                     if (fallbackBuffer == null || fallbackBuffer.bFallingBack == false)
336                     {
337                         Debug.Assert(chars > charStart,
338                             "[Latin1Encoding.GetBytes]Expected chars to have advanced (fallback case)");
339                         chars--;                                        // don't use last char
340                     }
341                     ThrowBytesOverflow(encoder, chars == charStart);    // throw ?
342                     break;                                              // don't throw, stop
343                 }
344
345                 // Go ahead and add it
346                 *bytes = unchecked((byte)ch);
347                 bytes++;
348             }
349
350             // Need to do encoder stuff
351             if (encoder != null)
352             {
353                 // Fallback stuck it in encoder if necessary, but we have to clear MustFlush cases
354                 if (fallbackBuffer != null && !fallbackBuffer.bUsedEncoder)
355                     // Clear it in case of MustFlush
356                     encoder._charLeftOver = (char)0;
357
358                 // Set our chars used count
359                 encoder._charsUsed = (int)(chars - charStart);
360             }
361
362             Debug.Assert(fallbackBuffer == null || fallbackBuffer.Remaining == 0,
363                 "[Latin1Encoding.GetBytes]Expected Empty fallback buffer");
364
365             return (int)(bytes - byteStart);
366         }
367
368         // This is internal and called by something else,
369         internal override unsafe int GetCharCount(byte* bytes, int count, DecoderNLS decoder)
370         {
371             // Just assert, we're called internally so these should be safe, checked already
372             Debug.Assert(bytes != null, "[Latin1Encoding.GetCharCount]bytes is null");
373             Debug.Assert(count >= 0, "[Latin1Encoding.GetCharCount]byteCount is negative");
374
375             // Just return length, SBCS stay the same length because they don't map to surrogate
376             // pairs and we don't have to fallback because all latin1Encoding code points are unicode
377             return count;
378         }
379
380         internal override unsafe int GetChars(byte* bytes, int byteCount,
381                                                 char* chars, int charCount, DecoderNLS decoder)
382         {
383             // Just need to ASSERT, this is called by something else internal that checked parameters already
384             Debug.Assert(bytes != null, "[Latin1Encoding.GetChars]bytes is null");
385             Debug.Assert(byteCount >= 0, "[Latin1Encoding.GetChars]byteCount is negative");
386             Debug.Assert(chars != null, "[Latin1Encoding.GetChars]chars is null");
387             Debug.Assert(charCount >= 0, "[Latin1Encoding.GetChars]charCount is negative");
388
389             // Need byteCount chars, otherwise too small buffer
390             if (charCount < byteCount)
391             {
392                 // Buffer too small.  Do we throw?
393                 ThrowCharsOverflow(decoder, charCount < 1);
394
395                 // Don't throw, correct buffer size
396                 byteCount = charCount;
397             }
398
399             // Do it our fast way
400             byte* byteEnd = bytes + byteCount;
401
402             // Quick loop, all bytes are the same as chars, so no fallbacks for latin1
403             while (bytes < byteEnd)
404             {
405                 *(chars) = unchecked((char)*(bytes));
406                 chars++;
407                 bytes++;
408             }
409
410             // Might need to know input bytes used
411             if (decoder != null)
412                 decoder._bytesUsed = byteCount;
413
414             // Converted sequence is same length as input, so output charsUsed is same as byteCount;
415             return byteCount;
416         }
417
418         public override int GetMaxByteCount(int charCount)
419         {
420             if (charCount < 0)
421                 throw new ArgumentOutOfRangeException(nameof(charCount),
422                      SR.ArgumentOutOfRange_NeedNonNegNum);
423             Contract.EndContractBlock();
424
425             // Characters would be # of characters + 1 in case high surrogate is ? * max fallback
426             long byteCount = (long)charCount + 1;
427
428             if (EncoderFallback.MaxCharCount > 1)
429                 byteCount *= EncoderFallback.MaxCharCount;
430
431             // 1 to 1 for most characters.  Only surrogates with fallbacks have less.
432
433             if (byteCount > 0x7fffffff)
434                 throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow);
435             return (int)byteCount;
436         }
437
438         public override int GetMaxCharCount(int byteCount)
439         {
440             if (byteCount < 0)
441                 throw new ArgumentOutOfRangeException(nameof(byteCount),
442                      SR.ArgumentOutOfRange_NeedNonNegNum);
443             Contract.EndContractBlock();
444
445             // Just return length, SBCS stay the same length because they don't map to surrogate
446             long charCount = (long)byteCount;
447
448             // 1 to 1 for most characters.  Only surrogates with fallbacks have less, unknown fallbacks could be longer.
449             if (DecoderFallback.MaxCharCount > 1)
450                 charCount *= DecoderFallback.MaxCharCount;
451
452             if (charCount > 0x7fffffff)
453                 throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
454
455             return (int)charCount;
456         }
457
458         // True if and only if the encoding only uses single byte code points.  (Ie, ASCII, 1252, etc)
459         public override bool IsSingleByte
460         {
461             get
462             {
463                 return true;
464             }
465         }
466
467         public override bool IsAlwaysNormalized(NormalizationForm form)
468         {
469             // Latin-1 contains precomposed characters, so normal for Form C.
470             // Since some are composed, not normal for D & KD.
471             // Also some letters like 0x00A8 (spacing diarisis) have compatibility decompositions, so false for KD & KC.
472
473             // Only true for form C.
474             return (form == NormalizationForm.FormC);
475         }
476         // Since our best fit table is small we'll hard code it
477         internal override char[] GetBestFitUnicodeToBytesData()
478         {
479             // Get our best fit data
480             return Latin1Encoding.arrayCharBestFit;
481         }
482
483         // Best fit for ASCII, and since it works for ASCII, we use it for latin1 as well.
484         private static readonly char[] arrayCharBestFit =
485         {
486 // The first many are in case you wanted to use this for ASCIIEncoding, which we don't need to do any more.
487 //          (char)0x00a0, (char)0x0020,    // No-Break Space -> Space
488 //          (char)0x00a1, (char)0x0021,    // Inverted Exclamation Mark -> !
489 //          (char)0x00a2, (char)0x0063,    // Cent Sign -> c
490 //          (char)0x00a3, (char)0x003f,    // Pound Sign
491 //          (char)0x00a4, (char)0x0024,    // Currency Sign -> $
492 //          (char)0x00a5, (char)0x0059,    // Yen Sign -> Y
493 //          (char)0x00a6, (char)0x007c,    // Broken Bar -> |
494 //          (char)0x00a7, (char)0x003f,    // Section Sign
495 //          (char)0x00a8, (char)0x003f,    // Diaeresis
496 //          (char)0x00a9, (char)0x0043,    // Copyright Sign -> C
497 //          (char)0x00aa, (char)0x0061,    // Feminine Ordinal Indicator -> a
498 //          (char)0x00ab, (char)0x003c,    // Left-Pointing Double Angle Quotation Mark -> <
499 //          (char)0x00ac, (char)0x003f,    // Not Sign
500 //          (char)0x00ad, (char)0x002d,    // Soft Hyphen -> -
501 //          (char)0x00ae, (char)0x0052,    // Registered Sign -> R
502 //          (char)0x00af, (char)0x003f,    // Macron
503 //          (char)0x00b0, (char)0x003f,    // Degree Sign
504 //          (char)0x00b1, (char)0x003f,    // Plus-Minus Sign
505 //          (char)0x00b2, (char)0x0032,    // Superscript Two -> 2
506 //          (char)0x00b3, (char)0x0033,    // Superscript Three -> 3
507 //          (char)0x00b4, (char)0x003f,    // Acute Accent
508 //          (char)0x00b5, (char)0x003f,    // Micro Sign
509 //          (char)0x00b6, (char)0x003f,    // Pilcrow Sign
510 //          (char)0x00b7, (char)0x002e,    // Middle Dot -> .
511 //          (char)0x00b8, (char)0x002c,    // Cedilla -> ,
512 //          (char)0x00b9, (char)0x0031,    // Superscript One -> 1
513 //          (char)0x00ba, (char)0x006f,    // Masculine Ordinal Indicator -> o
514 //          (char)0x00bb, (char)0x003e,    // Right-Pointing Double Angle Quotation Mark -> >
515 //          (char)0x00bc, (char)0x003f,    // Vulgar Fraction One Quarter
516 //          (char)0x00bd, (char)0x003f,    // Vulgar Fraction One Half
517 //          (char)0x00be, (char)0x003f,    // Vulgar Fraction Three Quarters
518 //          (char)0x00bf, (char)0x003f,    // Inverted Question Mark
519 //          (char)0x00c0, (char)0x0041,    // Latin Capital Letter A With Grave -> A
520 //          (char)0x00c1, (char)0x0041,    // Latin Capital Letter A With Acute -> A
521 //          (char)0x00c2, (char)0x0041,    // Latin Capital Letter A With Circumflex -> A
522 //          (char)0x00c3, (char)0x0041,    // Latin Capital Letter A With Tilde -> A
523 //          (char)0x00c4, (char)0x0041,    // Latin Capital Letter A With Diaeresis -> A
524 //          (char)0x00c5, (char)0x0041,    // Latin Capital Letter A With Ring Above -> A
525 //          (char)0x00c6, (char)0x0041,    // Latin Capital Ligature Ae -> A
526 //          (char)0x00c7, (char)0x0043,    // Latin Capital Letter C With Cedilla -> C
527 //          (char)0x00c8, (char)0x0045,    // Latin Capital Letter E With Grave -> E
528 //          (char)0x00c9, (char)0x0045,    // Latin Capital Letter E With Acute -> E
529 //          (char)0x00ca, (char)0x0045,    // Latin Capital Letter E With Circumflex -> E
530 //          (char)0x00cb, (char)0x0045,    // Latin Capital Letter E With Diaeresis -> E
531 //          (char)0x00cc, (char)0x0049,    // Latin Capital Letter I With Grave -> I
532 //          (char)0x00cd, (char)0x0049,    // Latin Capital Letter I With Acute -> I
533 //          (char)0x00ce, (char)0x0049,    // Latin Capital Letter I With Circumflex -> I
534 //          (char)0x00cf, (char)0x0049,    // Latin Capital Letter I With Diaeresis -> I
535 //          (char)0x00d0, (char)0x0044,    // Latin Capital Letter Eth -> D
536 //          (char)0x00d1, (char)0x004e,    // Latin Capital Letter N With Tilde -> N
537 //          (char)0x00d2, (char)0x004f,    // Latin Capital Letter O With Grave -> O
538 //          (char)0x00d3, (char)0x004f,    // Latin Capital Letter O With Acute -> O
539 //          (char)0x00d4, (char)0x004f,    // Latin Capital Letter O With Circumflex -> O
540 //          (char)0x00d5, (char)0x004f,    // Latin Capital Letter O With Tilde -> O
541 //          (char)0x00d6, (char)0x004f,    // Latin Capital Letter O With Diaeresis -> O
542 //          (char)0x00d7, (char)0x003f,    // Multiplication Sign
543 //          (char)0x00d8, (char)0x004f,    // Latin Capital Letter O With Stroke -> O
544 //          (char)0x00d9, (char)0x0055,    // Latin Capital Letter U With Grave -> U
545 //          (char)0x00da, (char)0x0055,    // Latin Capital Letter U With Acute -> U
546 //          (char)0x00db, (char)0x0055,    // Latin Capital Letter U With Circumflex -> U
547 //          (char)0x00dc, (char)0x0055,    // Latin Capital Letter U With Diaeresis -> U
548 //          (char)0x00dd, (char)0x0059,    // Latin Capital Letter Y With Acute -> Y
549 //          (char)0x00de, (char)0x003f,    // Latin Capital Letter Thorn
550 //          (char)0x00df, (char)0x003f,    // Latin Small Letter Sharp S
551 //          (char)0x00e0, (char)0x0061,    // Latin Small Letter A With Grave -> a
552 //          (char)0x00e1, (char)0x0061,    // Latin Small Letter A With Acute -> a
553 //          (char)0x00e2, (char)0x0061,    // Latin Small Letter A With Circumflex -> a
554 //          (char)0x00e3, (char)0x0061,    // Latin Small Letter A With Tilde -> a
555 //          (char)0x00e4, (char)0x0061,    // Latin Small Letter A With Diaeresis -> a
556 //          (char)0x00e5, (char)0x0061,    // Latin Small Letter A With Ring Above -> a
557 //          (char)0x00e6, (char)0x0061,    // Latin Small Ligature Ae -> a
558 //          (char)0x00e7, (char)0x0063,    // Latin Small Letter C With Cedilla -> c
559 //          (char)0x00e8, (char)0x0065,    // Latin Small Letter E With Grave -> e
560 //          (char)0x00e9, (char)0x0065,    // Latin Small Letter E With Acute -> e
561 //          (char)0x00ea, (char)0x0065,    // Latin Small Letter E With Circumflex -> e
562 //          (char)0x00eb, (char)0x0065,    // Latin Small Letter E With Diaeresis -> e
563 //          (char)0x00ec, (char)0x0069,    // Latin Small Letter I With Grave -> i
564 //          (char)0x00ed, (char)0x0069,    // Latin Small Letter I With Acute -> i
565 //          (char)0x00ee, (char)0x0069,    // Latin Small Letter I With Circumflex -> i
566 //          (char)0x00ef, (char)0x0069,    // Latin Small Letter I With Diaeresis -> i
567 //          (char)0x00f0, (char)0x003f,    // Latin Small Letter Eth
568 //          (char)0x00f1, (char)0x006e,    // Latin Small Letter N With Tilde -> n
569 //          (char)0x00f2, (char)0x006f,    // Latin Small Letter O With Grave -> o
570 //          (char)0x00f3, (char)0x006f,    // Latin Small Letter O With Acute -> o
571 //          (char)0x00f4, (char)0x006f,    // Latin Small Letter O With Circumflex -> o
572 //          (char)0x00f5, (char)0x006f,    // Latin Small Letter O With Tilde -> o
573 //          (char)0x00f6, (char)0x006f,    // Latin Small Letter O With Diaeresis -> o
574 //          (char)0x00f7, (char)0x003f,    // Division Sign
575 //          (char)0x00f8, (char)0x006f,    // Latin Small Letter O With Stroke -> o
576 //          (char)0x00f9, (char)0x0075,    // Latin Small Letter U With Grave -> u
577 //          (char)0x00fa, (char)0x0075,    // Latin Small Letter U With Acute -> u
578 //          (char)0x00fb, (char)0x0075,    // Latin Small Letter U With Circumflex -> u
579 //          (char)0x00fc, (char)0x0075,    // Latin Small Letter U With Diaeresis -> u
580 //          (char)0x00fd, (char)0x0079,    // Latin Small Letter Y With Acute -> y
581 //          (char)0x00fe, (char)0x003f,    // Latin Small Letter Thorn
582 //          (char)0x00ff, (char)0x0079,    // Latin Small Letter Y With Diaeresis -> y
583             (char)0x0100, (char)0x0041,    // Latin Capital Letter A With Macron -> A
584             (char)0x0101, (char)0x0061,    // Latin Small Letter A With Macron -> a
585             (char)0x0102, (char)0x0041,    // Latin Capital Letter A With Breve -> A
586             (char)0x0103, (char)0x0061,    // Latin Small Letter A With Breve -> a
587             (char)0x0104, (char)0x0041,    // Latin Capital Letter A With Ogonek -> A
588             (char)0x0105, (char)0x0061,    // Latin Small Letter A With Ogonek -> a
589             (char)0x0106, (char)0x0043,    // Latin Capital Letter C With Acute -> C
590             (char)0x0107, (char)0x0063,    // Latin Small Letter C With Acute -> c
591             (char)0x0108, (char)0x0043,    // Latin Capital Letter C With Circumflex -> C
592             (char)0x0109, (char)0x0063,    // Latin Small Letter C With Circumflex -> c
593             (char)0x010a, (char)0x0043,    // Latin Capital Letter C With Dot Above -> C
594             (char)0x010b, (char)0x0063,    // Latin Small Letter C With Dot Above -> c
595             (char)0x010c, (char)0x0043,    // Latin Capital Letter C With Caron -> C
596             (char)0x010d, (char)0x0063,    // Latin Small Letter C With Caron -> c
597             (char)0x010e, (char)0x0044,    // Latin Capital Letter D With Caron -> D
598             (char)0x010f, (char)0x0064,    // Latin Small Letter D With Caron -> d
599             (char)0x0110, (char)0x0044,    // Latin Capital Letter D With Stroke -> D
600             (char)0x0111, (char)0x0064,    // Latin Small Letter D With Stroke -> d
601             (char)0x0112, (char)0x0045,    // Latin Capital Letter E With Macron -> E
602             (char)0x0113, (char)0x0065,    // Latin Small Letter E With Macron -> e
603             (char)0x0114, (char)0x0045,    // Latin Capital Letter E With Breve -> E
604             (char)0x0115, (char)0x0065,    // Latin Small Letter E With Breve -> e
605             (char)0x0116, (char)0x0045,    // Latin Capital Letter E With Dot Above -> E
606             (char)0x0117, (char)0x0065,    // Latin Small Letter E With Dot Above -> e
607             (char)0x0118, (char)0x0045,    // Latin Capital Letter E With Ogonek -> E
608             (char)0x0119, (char)0x0065,    // Latin Small Letter E With Ogonek -> e
609             (char)0x011a, (char)0x0045,    // Latin Capital Letter E With Caron -> E
610             (char)0x011b, (char)0x0065,    // Latin Small Letter E With Caron -> e
611             (char)0x011c, (char)0x0047,    // Latin Capital Letter G With Circumflex -> G
612             (char)0x011d, (char)0x0067,    // Latin Small Letter G With Circumflex -> g
613             (char)0x011e, (char)0x0047,    // Latin Capital Letter G With Breve -> G
614             (char)0x011f, (char)0x0067,    // Latin Small Letter G With Breve -> g
615             (char)0x0120, (char)0x0047,    // Latin Capital Letter G With Dot Above -> G
616             (char)0x0121, (char)0x0067,    // Latin Small Letter G With Dot Above -> g
617             (char)0x0122, (char)0x0047,    // Latin Capital Letter G With Cedilla -> G
618             (char)0x0123, (char)0x0067,    // Latin Small Letter G With Cedilla -> g
619             (char)0x0124, (char)0x0048,    // Latin Capital Letter H With Circumflex -> H
620             (char)0x0125, (char)0x0068,    // Latin Small Letter H With Circumflex -> h
621             (char)0x0126, (char)0x0048,    // Latin Capital Letter H With Stroke -> H
622             (char)0x0127, (char)0x0068,    // Latin Small Letter H With Stroke -> h
623             (char)0x0128, (char)0x0049,    // Latin Capital Letter I With Tilde -> I
624             (char)0x0129, (char)0x0069,    // Latin Small Letter I With Tilde -> i
625             (char)0x012a, (char)0x0049,    // Latin Capital Letter I With Macron -> I
626             (char)0x012b, (char)0x0069,    // Latin Small Letter I With Macron -> i
627             (char)0x012c, (char)0x0049,    // Latin Capital Letter I With Breve -> I
628             (char)0x012d, (char)0x0069,    // Latin Small Letter I With Breve -> i
629             (char)0x012e, (char)0x0049,    // Latin Capital Letter I With Ogonek -> I
630             (char)0x012f, (char)0x0069,    // Latin Small Letter I With Ogonek -> i
631             (char)0x0130, (char)0x0049,    // Latin Capital Letter I With Dot Above -> I
632             (char)0x0131, (char)0x0069,    // Latin Small Letter Dotless I -> i
633             (char)0x0134, (char)0x004a,    // Latin Capital Letter J With Circumflex -> J
634             (char)0x0135, (char)0x006a,    // Latin Small Letter J With Circumflex -> j
635             (char)0x0136, (char)0x004b,    // Latin Capital Letter K With Cedilla -> K
636             (char)0x0137, (char)0x006b,    // Latin Small Letter K With Cedilla -> k
637             (char)0x0139, (char)0x004c,    // Latin Capital Letter L With Acute -> L
638             (char)0x013a, (char)0x006c,    // Latin Small Letter L With Acute -> l
639             (char)0x013b, (char)0x004c,    // Latin Capital Letter L With Cedilla -> L
640             (char)0x013c, (char)0x006c,    // Latin Small Letter L With Cedilla -> l
641             (char)0x013d, (char)0x004c,    // Latin Capital Letter L With Caron -> L
642             (char)0x013e, (char)0x006c,    // Latin Small Letter L With Caron -> l
643             (char)0x0141, (char)0x004c,    // Latin Capital Letter L With Stroke -> L
644             (char)0x0142, (char)0x006c,    // Latin Small Letter L With Stroke -> l
645             (char)0x0143, (char)0x004e,    // Latin Capital Letter N With Acute -> N
646             (char)0x0144, (char)0x006e,    // Latin Small Letter N With Acute -> n
647             (char)0x0145, (char)0x004e,    // Latin Capital Letter N With Cedilla -> N
648             (char)0x0146, (char)0x006e,    // Latin Small Letter N With Cedilla -> n
649             (char)0x0147, (char)0x004e,    // Latin Capital Letter N With Caron -> N
650             (char)0x0148, (char)0x006e,    // Latin Small Letter N With Caron -> n
651             (char)0x014c, (char)0x004f,    // Latin Capital Letter O With Macron -> O
652             (char)0x014d, (char)0x006f,    // Latin Small Letter O With Macron -> o
653             (char)0x014e, (char)0x004f,    // Latin Capital Letter O With Breve -> O
654             (char)0x014f, (char)0x006f,    // Latin Small Letter O With Breve -> o
655             (char)0x0150, (char)0x004f,    // Latin Capital Letter O With Double Acute -> O
656             (char)0x0151, (char)0x006f,    // Latin Small Letter O With Double Acute -> o
657             (char)0x0152, (char)0x004f,    // Latin Capital Ligature Oe -> O
658             (char)0x0153, (char)0x006f,    // Latin Small Ligature Oe -> o
659             (char)0x0154, (char)0x0052,    // Latin Capital Letter R With Acute -> R
660             (char)0x0155, (char)0x0072,    // Latin Small Letter R With Acute -> r
661             (char)0x0156, (char)0x0052,    // Latin Capital Letter R With Cedilla -> R
662             (char)0x0157, (char)0x0072,    // Latin Small Letter R With Cedilla -> r
663             (char)0x0158, (char)0x0052,    // Latin Capital Letter R With Caron -> R
664             (char)0x0159, (char)0x0072,    // Latin Small Letter R With Caron -> r
665             (char)0x015a, (char)0x0053,    // Latin Capital Letter S With Acute -> S
666             (char)0x015b, (char)0x0073,    // Latin Small Letter S With Acute -> s
667             (char)0x015c, (char)0x0053,    // Latin Capital Letter S With Circumflex -> S
668             (char)0x015d, (char)0x0073,    // Latin Small Letter S With Circumflex -> s
669             (char)0x015e, (char)0x0053,    // Latin Capital Letter S With Cedilla -> S
670             (char)0x015f, (char)0x0073,    // Latin Small Letter S With Cedilla -> s
671             (char)0x0160, (char)0x0053,    // Latin Capital Letter S With Caron -> S
672             (char)0x0161, (char)0x0073,    // Latin Small Letter S With Caron -> s
673             (char)0x0162, (char)0x0054,    // Latin Capital Letter T With Cedilla -> T
674             (char)0x0163, (char)0x0074,    // Latin Small Letter T With Cedilla -> t
675             (char)0x0164, (char)0x0054,    // Latin Capital Letter T With Caron -> T
676             (char)0x0165, (char)0x0074,    // Latin Small Letter T With Caron -> t
677             (char)0x0166, (char)0x0054,    // Latin Capital Letter T With Stroke -> T
678             (char)0x0167, (char)0x0074,    // Latin Small Letter T With Stroke -> t
679             (char)0x0168, (char)0x0055,    // Latin Capital Letter U With Tilde -> U
680             (char)0x0169, (char)0x0075,    // Latin Small Letter U With Tilde -> u
681             (char)0x016a, (char)0x0055,    // Latin Capital Letter U With Macron -> U
682             (char)0x016b, (char)0x0075,    // Latin Small Letter U With Macron -> u
683             (char)0x016c, (char)0x0055,    // Latin Capital Letter U With Breve -> U
684             (char)0x016d, (char)0x0075,    // Latin Small Letter U With Breve -> u
685             (char)0x016e, (char)0x0055,    // Latin Capital Letter U With Ring Above -> U
686             (char)0x016f, (char)0x0075,    // Latin Small Letter U With Ring Above -> u
687             (char)0x0170, (char)0x0055,    // Latin Capital Letter U With Double Acute -> U
688             (char)0x0171, (char)0x0075,    // Latin Small Letter U With Double Acute -> u
689             (char)0x0172, (char)0x0055,    // Latin Capital Letter U With Ogonek -> U
690             (char)0x0173, (char)0x0075,    // Latin Small Letter U With Ogonek -> u
691             (char)0x0174, (char)0x0057,    // Latin Capital Letter W With Circumflex -> W
692             (char)0x0175, (char)0x0077,    // Latin Small Letter W With Circumflex -> w
693             (char)0x0176, (char)0x0059,    // Latin Capital Letter Y With Circumflex -> Y
694             (char)0x0177, (char)0x0079,    // Latin Small Letter Y With Circumflex -> y
695             (char)0x0178, (char)0x0059,    // Latin Capital Letter Y With Diaeresis -> Y
696             (char)0x0179, (char)0x005a,    // Latin Capital Letter Z With Acute -> Z
697             (char)0x017a, (char)0x007a,    // Latin Small Letter Z With Acute -> z
698             (char)0x017b, (char)0x005a,    // Latin Capital Letter Z With Dot Above -> Z
699             (char)0x017c, (char)0x007a,    // Latin Small Letter Z With Dot Above -> z
700             (char)0x017d, (char)0x005a,    // Latin Capital Letter Z With Caron -> Z
701             (char)0x017e, (char)0x007a,    // Latin Small Letter Z With Caron -> z
702             (char)0x0180, (char)0x0062,    // Latin Small Letter B With Stroke -> b
703             (char)0x0189, (char)0x0044,    // Latin Capital Letter African D -> D
704             (char)0x0191, (char)0x0046,    // Latin Capital Letter F With Hook -> F
705             (char)0x0192, (char)0x0066,    // Latin Small Letter F With Hook -> f
706             (char)0x0197, (char)0x0049,    // Latin Capital Letter I With Stroke -> I
707             (char)0x019a, (char)0x006c,    // Latin Small Letter L With Bar -> l
708             (char)0x019f, (char)0x004f,    // Latin Capital Letter O With Middle Tilde -> O
709             (char)0x01a0, (char)0x004f,    // Latin Capital Letter O With Horn -> O
710             (char)0x01a1, (char)0x006f,    // Latin Small Letter O With Horn -> o
711             (char)0x01ab, (char)0x0074,    // Latin Small Letter T With Palatal Hook -> t
712             (char)0x01ae, (char)0x0054,    // Latin Capital Letter T With Retroflex Hook -> T
713             (char)0x01af, (char)0x0055,    // Latin Capital Letter U With Horn -> U
714             (char)0x01b0, (char)0x0075,    // Latin Small Letter U With Horn -> u
715             (char)0x01b6, (char)0x007a,    // Latin Small Letter Z With Stroke -> z
716             (char)0x01cd, (char)0x0041,    // Latin Capital Letter A With Caron -> A
717             (char)0x01ce, (char)0x0061,    // Latin Small Letter A With Caron -> a
718             (char)0x01cf, (char)0x0049,    // Latin Capital Letter I With Caron -> I
719             (char)0x01d0, (char)0x0069,    // Latin Small Letter I With Caron -> i
720             (char)0x01d1, (char)0x004f,    // Latin Capital Letter O With Caron -> O
721             (char)0x01d2, (char)0x006f,    // Latin Small Letter O With Caron -> o
722             (char)0x01d3, (char)0x0055,    // Latin Capital Letter U With Caron -> U
723             (char)0x01d4, (char)0x0075,    // Latin Small Letter U With Caron -> u
724             (char)0x01d5, (char)0x0055,    // Latin Capital Letter U With Diaeresis And Macron -> U
725             (char)0x01d6, (char)0x0075,    // Latin Small Letter U With Diaeresis And Macron -> u
726             (char)0x01d7, (char)0x0055,    // Latin Capital Letter U With Diaeresis And Acute -> U
727             (char)0x01d8, (char)0x0075,    // Latin Small Letter U With Diaeresis And Acute -> u
728             (char)0x01d9, (char)0x0055,    // Latin Capital Letter U With Diaeresis And Caron -> U
729             (char)0x01da, (char)0x0075,    // Latin Small Letter U With Diaeresis And Caron -> u
730             (char)0x01db, (char)0x0055,    // Latin Capital Letter U With Diaeresis And Grave -> U
731             (char)0x01dc, (char)0x0075,    // Latin Small Letter U With Diaeresis And Grave -> u
732             (char)0x01de, (char)0x0041,    // Latin Capital Letter A With Diaeresis And Macron -> A
733             (char)0x01df, (char)0x0061,    // Latin Small Letter A With Diaeresis And Macron -> a
734             (char)0x01e4, (char)0x0047,    // Latin Capital Letter G With Stroke -> G
735             (char)0x01e5, (char)0x0067,    // Latin Small Letter G With Stroke -> g
736             (char)0x01e6, (char)0x0047,    // Latin Capital Letter G With Caron -> G
737             (char)0x01e7, (char)0x0067,    // Latin Small Letter G With Caron -> g
738             (char)0x01e8, (char)0x004b,    // Latin Capital Letter K With Caron -> K
739             (char)0x01e9, (char)0x006b,    // Latin Small Letter K With Caron -> k
740             (char)0x01ea, (char)0x004f,    // Latin Capital Letter O With Ogonek -> O
741             (char)0x01eb, (char)0x006f,    // Latin Small Letter O With Ogonek -> o
742             (char)0x01ec, (char)0x004f,    // Latin Capital Letter O With Ogonek And Macron -> O
743             (char)0x01ed, (char)0x006f,    // Latin Small Letter O With Ogonek And Macron -> o
744             (char)0x01f0, (char)0x006a,    // Latin Small Letter J With Caron -> j
745             (char)0x0261, (char)0x0067,    // Latin Small Letter Script G -> g
746             (char)0x02b9, (char)0x0027,    // Modifier Letter Prime -> '
747             (char)0x02ba, (char)0x0022,    // Modifier Letter Double Prime -> "
748             (char)0x02bc, (char)0x0027,    // Modifier Letter Apostrophe -> '
749             (char)0x02c4, (char)0x005e,    // Modifier Letter Up Arrowhead -> ^
750             (char)0x02c6, (char)0x005e,    // Modifier Letter Circumflex Accent -> ^
751             (char)0x02c8, (char)0x0027,    // Modifier Letter Vertical Line -> '
752             (char)0x02c9, (char)0x003f,    // Modifier Letter Macron
753             (char)0x02ca, (char)0x003f,    // Modifier Letter Acute Accent
754             (char)0x02cb, (char)0x0060,    // Modifier Letter Grave Accent -> `
755             (char)0x02cd, (char)0x005f,    // Modifier Letter Low Macron -> _
756             (char)0x02da, (char)0x003f,    // Ring Above
757             (char)0x02dc, (char)0x007e,    // Small Tilde -> ~
758             (char)0x0300, (char)0x0060,    // Combining Grave Accent -> `
759             (char)0x0302, (char)0x005e,    // Combining Circumflex Accent -> ^
760             (char)0x0303, (char)0x007e,    // Combining Tilde -> ~
761             (char)0x030e, (char)0x0022,    // Combining Double Vertical Line Above -> "
762             (char)0x0331, (char)0x005f,    // Combining Macron Below -> _
763             (char)0x0332, (char)0x005f,    // Combining Low Line -> _
764             (char)0x2000, (char)0x0020,    // En Quad
765             (char)0x2001, (char)0x0020,    // Em Quad
766             (char)0x2002, (char)0x0020,    // En Space
767             (char)0x2003, (char)0x0020,    // Em Space
768             (char)0x2004, (char)0x0020,    // Three-Per-Em Space
769             (char)0x2005, (char)0x0020,    // Four-Per-Em Space
770             (char)0x2006, (char)0x0020,    // Six-Per-Em Space
771             (char)0x2010, (char)0x002d,    // Hyphen -> -
772             (char)0x2011, (char)0x002d,    // Non-Breaking Hyphen -> -
773             (char)0x2013, (char)0x002d,    // En Dash -> -
774             (char)0x2014, (char)0x002d,    // Em Dash -> -
775             (char)0x2018, (char)0x0027,    // Left Single Quotation Mark -> '
776             (char)0x2019, (char)0x0027,    // Right Single Quotation Mark -> '
777             (char)0x201a, (char)0x002c,    // Single Low-9 Quotation Mark -> ,
778             (char)0x201c, (char)0x0022,    // Left Double Quotation Mark -> "
779             (char)0x201d, (char)0x0022,    // Right Double Quotation Mark -> "
780             (char)0x201e, (char)0x0022,    // Double Low-9 Quotation Mark -> "
781             (char)0x2020, (char)0x003f,    // Dagger
782             (char)0x2021, (char)0x003f,    // Double Dagger
783             (char)0x2022, (char)0x002e,    // Bullet -> .
784             (char)0x2026, (char)0x002e,    // Horizontal Ellipsis -> .
785             (char)0x2030, (char)0x003f,    // Per Mille Sign
786             (char)0x2032, (char)0x0027,    // Prime -> '
787             (char)0x2035, (char)0x0060,    // Reversed Prime -> `
788             (char)0x2039, (char)0x003c,    // Single Left-Pointing Angle Quotation Mark -> <
789             (char)0x203a, (char)0x003e,    // Single Right-Pointing Angle Quotation Mark -> >
790             (char)0x2122, (char)0x0054,    // Trade Mark Sign -> T
791             (char)0xff01, (char)0x0021,    // Fullwidth Exclamation Mark -> !
792             (char)0xff02, (char)0x0022,    // Fullwidth Quotation Mark -> "
793             (char)0xff03, (char)0x0023,    // Fullwidth Number Sign -> #
794             (char)0xff04, (char)0x0024,    // Fullwidth Dollar Sign -> $
795             (char)0xff05, (char)0x0025,    // Fullwidth Percent Sign -> %
796             (char)0xff06, (char)0x0026,    // Fullwidth Ampersand -> &
797             (char)0xff07, (char)0x0027,    // Fullwidth Apostrophe -> '
798             (char)0xff08, (char)0x0028,    // Fullwidth Left Parenthesis -> (
799             (char)0xff09, (char)0x0029,    // Fullwidth Right Parenthesis -> )
800             (char)0xff0a, (char)0x002a,    // Fullwidth Asterisk -> *
801             (char)0xff0b, (char)0x002b,    // Fullwidth Plus Sign -> +
802             (char)0xff0c, (char)0x002c,    // Fullwidth Comma -> ,
803             (char)0xff0d, (char)0x002d,    // Fullwidth Hyphen-Minus -> -
804             (char)0xff0e, (char)0x002e,    // Fullwidth Full Stop -> .
805             (char)0xff0f, (char)0x002f,    // Fullwidth Solidus -> /
806             (char)0xff10, (char)0x0030,    // Fullwidth Digit Zero -> 0
807             (char)0xff11, (char)0x0031,    // Fullwidth Digit One -> 1
808             (char)0xff12, (char)0x0032,    // Fullwidth Digit Two -> 2
809             (char)0xff13, (char)0x0033,    // Fullwidth Digit Three -> 3
810             (char)0xff14, (char)0x0034,    // Fullwidth Digit Four -> 4
811             (char)0xff15, (char)0x0035,    // Fullwidth Digit Five -> 5
812             (char)0xff16, (char)0x0036,    // Fullwidth Digit Six -> 6
813             (char)0xff17, (char)0x0037,    // Fullwidth Digit Seven -> 7
814             (char)0xff18, (char)0x0038,    // Fullwidth Digit Eight -> 8
815             (char)0xff19, (char)0x0039,    // Fullwidth Digit Nine -> 9
816             (char)0xff1a, (char)0x003a,    // Fullwidth Colon -> :
817             (char)0xff1b, (char)0x003b,    // Fullwidth Semicolon -> ;
818             (char)0xff1c, (char)0x003c,    // Fullwidth Less-Than Sign -> <
819             (char)0xff1d, (char)0x003d,    // Fullwidth Equals Sign -> =
820             (char)0xff1e, (char)0x003e,    // Fullwidth Greater-Than Sign -> >
821             (char)0xff1f, (char)0x003f,    // Fullwidth Question Mark
822             (char)0xff20, (char)0x0040,    // Fullwidth Commercial At -> @
823             (char)0xff21, (char)0x0041,    // Fullwidth Latin Capital Letter A -> A
824             (char)0xff22, (char)0x0042,    // Fullwidth Latin Capital Letter B -> B
825             (char)0xff23, (char)0x0043,    // Fullwidth Latin Capital Letter C -> C
826             (char)0xff24, (char)0x0044,    // Fullwidth Latin Capital Letter D -> D
827             (char)0xff25, (char)0x0045,    // Fullwidth Latin Capital Letter E -> E
828             (char)0xff26, (char)0x0046,    // Fullwidth Latin Capital Letter F -> F
829             (char)0xff27, (char)0x0047,    // Fullwidth Latin Capital Letter G -> G
830             (char)0xff28, (char)0x0048,    // Fullwidth Latin Capital Letter H -> H
831             (char)0xff29, (char)0x0049,    // Fullwidth Latin Capital Letter I -> I
832             (char)0xff2a, (char)0x004a,    // Fullwidth Latin Capital Letter J -> J
833             (char)0xff2b, (char)0x004b,    // Fullwidth Latin Capital Letter K -> K
834             (char)0xff2c, (char)0x004c,    // Fullwidth Latin Capital Letter L -> L
835             (char)0xff2d, (char)0x004d,    // Fullwidth Latin Capital Letter M -> M
836             (char)0xff2e, (char)0x004e,    // Fullwidth Latin Capital Letter N -> N
837             (char)0xff2f, (char)0x004f,    // Fullwidth Latin Capital Letter O -> O
838             (char)0xff30, (char)0x0050,    // Fullwidth Latin Capital Letter P -> P
839             (char)0xff31, (char)0x0051,    // Fullwidth Latin Capital Letter Q -> Q
840             (char)0xff32, (char)0x0052,    // Fullwidth Latin Capital Letter R -> R
841             (char)0xff33, (char)0x0053,    // Fullwidth Latin Capital Letter S -> S
842             (char)0xff34, (char)0x0054,    // Fullwidth Latin Capital Letter T -> T
843             (char)0xff35, (char)0x0055,    // Fullwidth Latin Capital Letter U -> U
844             (char)0xff36, (char)0x0056,    // Fullwidth Latin Capital Letter V -> V
845             (char)0xff37, (char)0x0057,    // Fullwidth Latin Capital Letter W -> W
846             (char)0xff38, (char)0x0058,    // Fullwidth Latin Capital Letter X -> X
847             (char)0xff39, (char)0x0059,    // Fullwidth Latin Capital Letter Y -> Y
848             (char)0xff3a, (char)0x005a,    // Fullwidth Latin Capital Letter Z -> Z
849             (char)0xff3b, (char)0x005b,    // Fullwidth Left Square Bracket -> [
850             (char)0xff3c, (char)0x005c,    // Fullwidth Reverse Solidus -> \
851             (char)0xff3d, (char)0x005d,    // Fullwidth Right Square Bracket -> ]
852             (char)0xff3e, (char)0x005e,    // Fullwidth Circumflex Accent -> ^
853             (char)0xff3f, (char)0x005f,    // Fullwidth Low Line -> _
854             (char)0xff40, (char)0x0060,    // Fullwidth Grave Accent -> `
855             (char)0xff41, (char)0x0061,    // Fullwidth Latin Small Letter A -> a
856             (char)0xff42, (char)0x0062,    // Fullwidth Latin Small Letter B -> b
857             (char)0xff43, (char)0x0063,    // Fullwidth Latin Small Letter C -> c
858             (char)0xff44, (char)0x0064,    // Fullwidth Latin Small Letter D -> d
859             (char)0xff45, (char)0x0065,    // Fullwidth Latin Small Letter E -> e
860             (char)0xff46, (char)0x0066,    // Fullwidth Latin Small Letter F -> f
861             (char)0xff47, (char)0x0067,    // Fullwidth Latin Small Letter G -> g
862             (char)0xff48, (char)0x0068,    // Fullwidth Latin Small Letter H -> h
863             (char)0xff49, (char)0x0069,    // Fullwidth Latin Small Letter I -> i
864             (char)0xff4a, (char)0x006a,    // Fullwidth Latin Small Letter J -> j
865             (char)0xff4b, (char)0x006b,    // Fullwidth Latin Small Letter K -> k
866             (char)0xff4c, (char)0x006c,    // Fullwidth Latin Small Letter L -> l
867             (char)0xff4d, (char)0x006d,    // Fullwidth Latin Small Letter M -> m
868             (char)0xff4e, (char)0x006e,    // Fullwidth Latin Small Letter N -> n
869             (char)0xff4f, (char)0x006f,    // Fullwidth Latin Small Letter O -> o
870             (char)0xff50, (char)0x0070,    // Fullwidth Latin Small Letter P -> p
871             (char)0xff51, (char)0x0071,    // Fullwidth Latin Small Letter Q -> q
872             (char)0xff52, (char)0x0072,    // Fullwidth Latin Small Letter R -> r
873             (char)0xff53, (char)0x0073,    // Fullwidth Latin Small Letter S -> s
874             (char)0xff54, (char)0x0074,    // Fullwidth Latin Small Letter T -> t
875             (char)0xff55, (char)0x0075,    // Fullwidth Latin Small Letter U -> u
876             (char)0xff56, (char)0x0076,    // Fullwidth Latin Small Letter V -> v
877             (char)0xff57, (char)0x0077,    // Fullwidth Latin Small Letter W -> w
878             (char)0xff58, (char)0x0078,    // Fullwidth Latin Small Letter X -> x
879             (char)0xff59, (char)0x0079,    // Fullwidth Latin Small Letter Y -> y
880             (char)0xff5a, (char)0x007a,    // Fullwidth Latin Small Letter Z -> z
881             (char)0xff5b, (char)0x007b,    // Fullwidth Left Curly Bracket -> {
882             (char)0xff5c, (char)0x007c,    // Fullwidth Vertical Line -> |
883             (char)0xff5d, (char)0x007d,    // Fullwidth Right Curly Bracket -> }
884             (char)0xff5e, (char)0x007e     // Fullwidth Tilde -> ~
885         };
886     }
887 }