96 references to ISO2022Modes
mscorlib (96)
system\text\iso2022encoding.cs (96)
420
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Mode
421
ISO2022Modes
shiftInMode =
ISO2022Modes
.ModeASCII; // Mode that shift in will go back to (only used by CP 50222)
477
if (currentMode !=
ISO2022Modes
.ModeHalfwidthKatakana)
490
currentMode =
ISO2022Modes
.ModeHalfwidthKatakana;
501
currentMode =
ISO2022Modes
.ModeHalfwidthKatakana;
520
if (CodePage == 50222 && currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
534
if (currentMode !=
ISO2022Modes
.ModeJIS0208)
540
currentMode =
ISO2022Modes
.ModeJIS0208;
552
if (CodePage == 50222 && currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
563
if (currentMode !=
ISO2022Modes
.ModeASCII)
568
currentMode =
ISO2022Modes
.ModeASCII;
582
if (currentMode !=
ISO2022Modes
.ModeASCII &&
586
if (CodePage == 50222 && currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana)
599
if (currentMode !=
ISO2022Modes
.ModeASCII &&
600
(CodePage != 50222 || currentMode !=
ISO2022Modes
.ModeHalfwidthKatakana))
604
currentMode =
ISO2022Modes
.ModeASCII;
663
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Mode
664
ISO2022Modes
shiftOutMode =
ISO2022Modes
.ModeASCII; // ModeKR if already stamped lead bytes
703
if (shiftOutMode !=
ISO2022Modes
.ModeKR)
709
shiftOutMode =
ISO2022Modes
.ModeKR;
713
if (currentMode !=
ISO2022Modes
.ModeKR)
718
currentMode =
ISO2022Modes
.ModeKR;
729
if (currentMode !=
ISO2022Modes
.ModeASCII)
734
currentMode =
ISO2022Modes
.ModeASCII;
748
if (currentMode !=
ISO2022Modes
.ModeASCII &&
753
currentMode =
ISO2022Modes
.ModeASCII;
782
encoder.shiftInOutMode =
ISO2022Modes
.ModeASCII;
814
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII;
868
if (currentMode !=
ISO2022Modes
.ModeHZ)
874
currentMode =
ISO2022Modes
.ModeHZ;
884
if (currentMode !=
ISO2022Modes
.ModeASCII)
891
currentMode =
ISO2022Modes
.ModeASCII;
909
if (currentMode !=
ISO2022Modes
.ModeASCII &&
915
currentMode =
ISO2022Modes
.ModeASCII;
949
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Our current Mode
950
ISO2022Modes
shiftInMode =
ISO2022Modes
.ModeASCII; // Mode that we'll shift in to
990
ISO2022Modes
modeReturn =
993
if (modeReturn !=
ISO2022Modes
.ModeInvalidEscape)
995
if (modeReturn !=
ISO2022Modes
.ModeIncompleteEscape)
1039
currentMode =
ISO2022Modes
.ModeHalfwidthKatakana;
1052
if (currentMode ==
ISO2022Modes
.ModeJIS0208)
1112
else if (currentMode ==
ISO2022Modes
.ModeHalfwidthKatakana )
1164
decoder.currentMode =
ISO2022Modes
.ModeASCII;
1165
decoder.shiftInOutMode =
ISO2022Modes
.ModeASCII;
1178
private
ISO2022Modes
CheckEscapeSequenceJP( byte[] bytes, int escapeCount )
1182
return
ISO2022Modes
.ModeInvalidEscape;
1185
return
ISO2022Modes
.ModeIncompleteEscape;
1191
return
ISO2022Modes
.ModeASCII;
1197
return
ISO2022Modes
.ModeASCII;
1203
return
ISO2022Modes
.ModeASCII;
1207
return
ISO2022Modes
.ModeHalfwidthKatakana;
1215
return
ISO2022Modes
.ModeJIS0208;
1221
return
ISO2022Modes
.ModeIncompleteEscape;
1226
return
ISO2022Modes
.ModeJIS0208;
1235
return
ISO2022Modes
.ModeNOOP;
1240
return
ISO2022Modes
.ModeInvalidEscape;
1277
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII; // Our current Mode
1317
ISO2022Modes
modeReturn =
1320
if (modeReturn !=
ISO2022Modes
.ModeInvalidEscape)
1322
if (modeReturn !=
ISO2022Modes
.ModeIncompleteEscape)
1363
currentMode =
ISO2022Modes
.ModeKR;
1368
currentMode =
ISO2022Modes
.ModeASCII;
1377
if (currentMode ==
ISO2022Modes
.ModeKR && ch != ' ' && ch != '\t' && ch != '\n')
1465
decoder.currentMode =
ISO2022Modes
.ModeASCII;
1466
decoder.shiftInOutMode =
ISO2022Modes
.ModeASCII;
1478
private
ISO2022Modes
CheckEscapeSequenceKR( byte[] bytes, int escapeCount )
1482
return
ISO2022Modes
.ModeInvalidEscape;
1485
return
ISO2022Modes
.ModeIncompleteEscape;
1488
return
ISO2022Modes
.ModeKR;
1491
return
ISO2022Modes
.ModeInvalidEscape;
1520
ISO2022Modes
currentMode =
ISO2022Modes
.ModeASCII;
1585
if (ch == '~' && currentMode ==
ISO2022Modes
.ModeASCII)
1598
currentMode =
ISO2022Modes
.ModeHZ;
1604
currentMode =
ISO2022Modes
.ModeASCII;
1621
if (currentMode !=
ISO2022Modes
.ModeASCII)
1624
Contract.Assert(currentMode ==
ISO2022Modes
.ModeHZ, "[ISO2022Encoding.GetCharsCP52936]Expected ModeHZ");
1744
decoder.currentMode =
ISO2022Modes
.ModeASCII;
1869
internal
ISO2022Modes
currentMode;
1870
internal
ISO2022Modes
shiftInOutMode;
1880
currentMode =
ISO2022Modes
.ModeASCII;
1881
shiftInOutMode =
ISO2022Modes
.ModeASCII;
1894
currentMode !=
ISO2022Modes
.ModeASCII);
1904
internal
ISO2022Modes
currentMode;
1905
internal
ISO2022Modes
shiftInOutMode;
1917
currentMode =
ISO2022Modes
.ModeASCII;
1918
shiftInOutMode =
ISO2022Modes
.ModeASCII;
1930
currentMode !=
ISO2022Modes
.ModeASCII);