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