241 references to SR
System.Text.Encoding.CodePages (241)
System\Text\BaseCodePageEncoding.cs (2)
255throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage));
System\Text\BaseCodePageEncoding.netcoreapp.cs (1)
70if (!SR.UsingResourceKeys())
System\Text\DBCSCodePageEncoding.cs (10)
99throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage)); 541throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType())); 657throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType())); 1121throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1133throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1141throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1151throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\DecoderFallbackBufferHelper.cs (6)
65throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 72throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 88throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 121throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 128throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 138throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
System\Text\DecoderNLS.cs (12)
85throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 88throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 103throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 126throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 129throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 132throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 155throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 175throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 178throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 181throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 184throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 208throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncoderBestFitFallback.cs (4)
100throw new ArgumentOutOfRangeException(nameof(charUnknownHigh), SR.Format(SR.ArgumentOutOfRange_Range, 0xD800, 0xDBFF)); 103throw new ArgumentOutOfRangeException(nameof(charUnknownLow), SR.Format(SR.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
System\Text\EncoderFallbackBufferHelper.cs (2)
133throw new ArgumentException(SR.Format(SR.Argument_RecursiveFallback, charRecursive), "chars");
System\Text\EncoderNLS.cs (12)
83throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 86throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 101throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 115throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 118throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 121throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 143throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 160throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 163throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 166throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 169throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 193throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncodingByteBuffer.cs (2)
42throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, _encoder.Encoding.EncodingName, _encoder.Fallback.GetType()));
System\Text\EncodingNLS.cs (170)
54throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 57throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 87throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 104throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 107throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 110throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 141throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 144throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 147throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 176throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 192throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 195throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 214throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 229throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 232throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 235throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 264throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 280throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 283throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 338throw new ArgumentException(SR.Format(SR.Argument_EncodingConversionOverflowBytes, EncodingName, EncoderFallback.GetType()), "bytes"); 346throw new ArgumentException(SR.Format(SR.Argument_EncodingConversionOverflowChars, EncodingName, DecoderFallback.GetType()), "chars"); 359SR.Format(SR.MissingEncodingNameResource, WebName, CodePage)); 372SR.Format(SR.MissingEncodingNameResource, WebName, CodePage)); 38337 => SR.Globalization_cp_37, 384437 => SR.Globalization_cp_437, 385500 => SR.Globalization_cp_500, 386708 => SR.Globalization_cp_708, 387720 => SR.Globalization_cp_720, 388737 => SR.Globalization_cp_737, 389775 => SR.Globalization_cp_775, 390850 => SR.Globalization_cp_850, 391852 => SR.Globalization_cp_852, 392855 => SR.Globalization_cp_855, 393857 => SR.Globalization_cp_857, 394858 => SR.Globalization_cp_858, 395860 => SR.Globalization_cp_860, 396861 => SR.Globalization_cp_861, 397862 => SR.Globalization_cp_862, 398863 => SR.Globalization_cp_863, 399864 => SR.Globalization_cp_864, 400865 => SR.Globalization_cp_865, 401866 => SR.Globalization_cp_866, 402869 => SR.Globalization_cp_869, 403870 => SR.Globalization_cp_870, 404874 => SR.Globalization_cp_874, 405875 => SR.Globalization_cp_875, 406932 => SR.Globalization_cp_932, 407936 => SR.Globalization_cp_936, 408949 => SR.Globalization_cp_949, 409950 => SR.Globalization_cp_950, 4101026 => SR.Globalization_cp_1026, 4111047 => SR.Globalization_cp_1047, 4121140 => SR.Globalization_cp_1140, 4131141 => SR.Globalization_cp_1141, 4141142 => SR.Globalization_cp_1142, 4151143 => SR.Globalization_cp_1143, 4161144 => SR.Globalization_cp_1144, 4171145 => SR.Globalization_cp_1145, 4181146 => SR.Globalization_cp_1146, 4191147 => SR.Globalization_cp_1147, 4201148 => SR.Globalization_cp_1148, 4211149 => SR.Globalization_cp_1149, 4221250 => SR.Globalization_cp_1250, 4231251 => SR.Globalization_cp_1251, 4241252 => SR.Globalization_cp_1252, 4251253 => SR.Globalization_cp_1253, 4261254 => SR.Globalization_cp_1254, 4271255 => SR.Globalization_cp_1255, 4281256 => SR.Globalization_cp_1256, 4291257 => SR.Globalization_cp_1257, 4301258 => SR.Globalization_cp_1258, 4311361 => SR.Globalization_cp_1361, 43210000 => SR.Globalization_cp_10000, 43310001 => SR.Globalization_cp_10001, 43410002 => SR.Globalization_cp_10002, 43510003 => SR.Globalization_cp_10003, 43610004 => SR.Globalization_cp_10004, 43710005 => SR.Globalization_cp_10005, 43810006 => SR.Globalization_cp_10006, 43910007 => SR.Globalization_cp_10007, 44010008 => SR.Globalization_cp_10008, 44110010 => SR.Globalization_cp_10010, 44210017 => SR.Globalization_cp_10017, 44310021 => SR.Globalization_cp_10021, 44410029 => SR.Globalization_cp_10029, 44510079 => SR.Globalization_cp_10079, 44610081 => SR.Globalization_cp_10081, 44710082 => SR.Globalization_cp_10082, 44820000 => SR.Globalization_cp_20000, 44920001 => SR.Globalization_cp_20001, 45020002 => SR.Globalization_cp_20002, 45120003 => SR.Globalization_cp_20003, 45220004 => SR.Globalization_cp_20004, 45320005 => SR.Globalization_cp_20005, 45420105 => SR.Globalization_cp_20105, 45520106 => SR.Globalization_cp_20106, 45620107 => SR.Globalization_cp_20107, 45720108 => SR.Globalization_cp_20108, 45820261 => SR.Globalization_cp_20261, 45920269 => SR.Globalization_cp_20269, 46020273 => SR.Globalization_cp_20273, 46120277 => SR.Globalization_cp_20277, 46220278 => SR.Globalization_cp_20278, 46320280 => SR.Globalization_cp_20280, 46420284 => SR.Globalization_cp_20284, 46520285 => SR.Globalization_cp_20285, 46620290 => SR.Globalization_cp_20290, 46720297 => SR.Globalization_cp_20297, 46820420 => SR.Globalization_cp_20420, 46920423 => SR.Globalization_cp_20423, 47020424 => SR.Globalization_cp_20424, 47120833 => SR.Globalization_cp_20833, 47220838 => SR.Globalization_cp_20838, 47320866 => SR.Globalization_cp_20866, 47420871 => SR.Globalization_cp_20871, 47520880 => SR.Globalization_cp_20880, 47620905 => SR.Globalization_cp_20905, 47720924 => SR.Globalization_cp_20924, 47820932 => SR.Globalization_cp_20932, 47920936 => SR.Globalization_cp_20936, 48020949 => SR.Globalization_cp_20949, 48121025 => SR.Globalization_cp_21025, 48221027 => SR.Globalization_cp_21027, 48321866 => SR.Globalization_cp_21866, 48428592 => SR.Globalization_cp_28592, 48528593 => SR.Globalization_cp_28593, 48628594 => SR.Globalization_cp_28594, 48728595 => SR.Globalization_cp_28595, 48828596 => SR.Globalization_cp_28596, 48928597 => SR.Globalization_cp_28597, 49028598 => SR.Globalization_cp_28598, 49128599 => SR.Globalization_cp_28599, 49228603 => SR.Globalization_cp_28603, 49328605 => SR.Globalization_cp_28605, 49429001 => SR.Globalization_cp_29001, 49538598 => SR.Globalization_cp_38598, 49650000 => SR.Globalization_cp_50000, 49750220 => SR.Globalization_cp_50220, 49850221 => SR.Globalization_cp_50221, 49950222 => SR.Globalization_cp_50222, 50050225 => SR.Globalization_cp_50225, 50150227 => SR.Globalization_cp_50227, 50250229 => SR.Globalization_cp_50229, 50350930 => SR.Globalization_cp_50930, 50450931 => SR.Globalization_cp_50931, 50550933 => SR.Globalization_cp_50933, 50650935 => SR.Globalization_cp_50935, 50750937 => SR.Globalization_cp_50937, 50850939 => SR.Globalization_cp_50939, 50951932 => SR.Globalization_cp_51932, 51051936 => SR.Globalization_cp_51936, 51151949 => SR.Globalization_cp_51949, 51252936 => SR.Globalization_cp_52936, 51354936 => SR.Globalization_cp_54936, 51457002 => SR.Globalization_cp_57002, 51557003 => SR.Globalization_cp_57003, 51657004 => SR.Globalization_cp_57004, 51757005 => SR.Globalization_cp_57005, 51857006 => SR.Globalization_cp_57006, 51957007 => SR.Globalization_cp_57007, 52057008 => SR.Globalization_cp_57008, 52157009 => SR.Globalization_cp_57009, 52257010 => SR.Globalization_cp_57010, 52357011 => SR.Globalization_cp_57011, 537throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage));
System\Text\GB18030Encoding.cs (4)
745throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 757throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 765throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 776throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISCIIEncoding.cs (6)
65throw new ArgumentException(SR.Format(SR.Argument_CodepageNotSupported, codePage), nameof(codePage)); 79throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 91throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 101throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 113throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISO2022Encoding.cs (4)
1694throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1739throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 1747throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 1775throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\SBCSCodePageEncoding.cs (6)
73throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage)); 906throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_NeedNonNegNum); 917throw new ArgumentOutOfRangeException(nameof(charCount), SR.ArgumentOutOfRange_GetByteCountOverflow); 924throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_NeedNonNegNum); 934throw new ArgumentOutOfRangeException(nameof(byteCount), SR.ArgumentOutOfRange_GetCharCountOverflow);