96 references to ISO2022Modes
System.Text.Encoding.CodePages (96)
System\Text\ISO2022Encoding.cs (96)
362
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Mode
363
ISO2022Modes
shiftInMode =
ISO2022Modes
.ModeASCII; // Mode that shift in will go back to (only used by CP 50222)
419
if (currentMode !=
ISO2022Modes
.ModeHalfwidthKatakana)
432
currentMode =
ISO2022Modes
.ModeHalfwidthKatakana;
443
currentMode =
ISO2022Modes
.ModeHalfwidthKatakana;
462
if (CodePage == 50222 && currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
476
if (currentMode !=
ISO2022Modes
.ModeJIS0208)
482
currentMode =
ISO2022Modes
.ModeJIS0208;
494
if (CodePage == 50222 && currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
505
if (currentMode !=
ISO2022Modes
.ModeASCII)
510
currentMode =
ISO2022Modes
.ModeASCII;
524
if (currentMode !=
ISO2022Modes
.ModeASCII &&
528
if (CodePage == 50222 && currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
541
if (currentMode !=
ISO2022Modes
.ModeASCII &&
542
(CodePage != 50222 || currentMode !=
ISO2022Modes
.ModeHalfwidthKatakana))
546
currentMode =
ISO2022Modes
.ModeASCII;
603
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Mode
604
ISO2022Modes
shiftOutMode =
ISO2022Modes
.ModeASCII; // ModeKR if already stamped lead bytes
643
if (shiftOutMode !=
ISO2022Modes
.ModeKR)
649
shiftOutMode =
ISO2022Modes
.ModeKR;
653
if (currentMode !=
ISO2022Modes
.ModeKR)
658
currentMode =
ISO2022Modes
.ModeKR;
669
if (currentMode !=
ISO2022Modes
.ModeASCII)
674
currentMode =
ISO2022Modes
.ModeASCII;
688
if (currentMode !=
ISO2022Modes
.ModeASCII &&
693
currentMode =
ISO2022Modes
.ModeASCII;
722
encoder.shiftInOutMode =
ISO2022Modes
.ModeASCII;
752
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII;
806
if (currentMode !=
ISO2022Modes
.ModeHZ)
812
currentMode =
ISO2022Modes
.ModeHZ;
822
if (currentMode !=
ISO2022Modes
.ModeASCII)
829
currentMode =
ISO2022Modes
.ModeASCII;
847
if (currentMode !=
ISO2022Modes
.ModeASCII &&
853
currentMode =
ISO2022Modes
.ModeASCII;
885
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Our current Mode
886
ISO2022Modes
shiftInMode =
ISO2022Modes
.ModeASCII; // Mode that we'll shift in to
926
ISO2022Modes
modeReturn =
929
if (modeReturn !=
ISO2022Modes
.ModeInvalidEscape)
931
if (modeReturn !=
ISO2022Modes
.ModeIncompleteEscape)
974
currentMode =
ISO2022Modes
.ModeHalfwidthKatakana;
987
if (currentMode ==
ISO2022Modes
.ModeJIS0208)
1047
else if (currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
1099
decoder.currentMode =
ISO2022Modes
.ModeASCII;
1100
decoder.shiftInOutMode =
ISO2022Modes
.ModeASCII;
1113
private static
ISO2022Modes
CheckEscapeSequenceJP(byte[] bytes, int escapeCount)
1117
return
ISO2022Modes
.ModeInvalidEscape;
1120
return
ISO2022Modes
.ModeIncompleteEscape;
1126
return
ISO2022Modes
.ModeASCII;
1132
return
ISO2022Modes
.ModeASCII;
1138
return
ISO2022Modes
.ModeASCII;
1142
return
ISO2022Modes
.ModeHalfwidthKatakana;
1150
return
ISO2022Modes
.ModeJIS0208;
1156
return
ISO2022Modes
.ModeIncompleteEscape;
1161
return
ISO2022Modes
.ModeJIS0208;
1170
return
ISO2022Modes
.ModeNOOP;
1175
return
ISO2022Modes
.ModeInvalidEscape;
1210
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Our current Mode
1250
ISO2022Modes
modeReturn =
1253
if (modeReturn !=
ISO2022Modes
.ModeInvalidEscape)
1255
if (modeReturn !=
ISO2022Modes
.ModeIncompleteEscape)
1295
currentMode =
ISO2022Modes
.ModeKR;
1300
currentMode =
ISO2022Modes
.ModeASCII;
1309
if (currentMode ==
ISO2022Modes
.ModeKR && ch != ' ' && ch != '\t' && ch != '\n')
1397
decoder.currentMode =
ISO2022Modes
.ModeASCII;
1398
decoder.shiftInOutMode =
ISO2022Modes
.ModeASCII;
1410
private static
ISO2022Modes
CheckEscapeSequenceKR(byte[] bytes, int escapeCount)
1414
return
ISO2022Modes
.ModeInvalidEscape;
1417
return
ISO2022Modes
.ModeIncompleteEscape;
1420
return
ISO2022Modes
.ModeKR;
1423
return
ISO2022Modes
.ModeInvalidEscape;
1450
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII;
1514
if (ch == '~' && currentMode ==
ISO2022Modes
.ModeASCII)
1527
currentMode =
ISO2022Modes
.ModeHZ;
1533
currentMode =
ISO2022Modes
.ModeASCII;
1550
if (currentMode !=
ISO2022Modes
.ModeASCII)
1553
Debug.Assert(currentMode ==
ISO2022Modes
.ModeHZ, "[ISO2022Encoding.GetCharsCP52936]Expected ModeHZ");
1672
decoder.currentMode =
ISO2022Modes
.ModeASCII;
1792
internal
ISO2022Modes
currentMode;
1793
internal
ISO2022Modes
shiftInOutMode;
1803
currentMode =
ISO2022Modes
.ModeASCII;
1804
shiftInOutMode =
ISO2022Modes
.ModeASCII;
1816
currentMode !=
ISO2022Modes
.ModeASCII);
1825
internal
ISO2022Modes
currentMode;
1826
internal
ISO2022Modes
shiftInOutMode;
1838
currentMode =
ISO2022Modes
.ModeASCII;
1839
shiftInOutMode =
ISO2022Modes
.ModeASCII;
1850
currentMode !=
ISO2022Modes
.ModeASCII);