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)
86throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 89throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 104throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 130throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 133throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 136throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 159throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 182throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 185throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 188throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 191throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 215throw 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)
84throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 87throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 102throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 119throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 122throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 125throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 147throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 167throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 170throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 173throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 176throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 200throw 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)
55throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 58throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 89throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 109throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 112throw new ArgumentOutOfRangeException(nameof(s), SR.ArgumentOutOfRange_IndexCount); 115throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 149throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 152throw new ArgumentOutOfRangeException(nameof(chars), SR.ArgumentOutOfRange_IndexCountBuffer); 155throw new ArgumentOutOfRangeException(nameof(byteIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 184throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 201throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 204throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 223throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); 241throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 244throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 247throw new ArgumentOutOfRangeException(nameof(charIndex), SR.ArgumentOutOfRange_IndexMustBeLessOrEqual); 276throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)), SR.ArgumentOutOfRange_NeedNonNegNum); 293throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)), SR.ArgumentOutOfRange_NeedNonNegNum); 296throw new ArgumentOutOfRangeException(nameof(bytes), SR.ArgumentOutOfRange_IndexCountBuffer); 351throw new ArgumentException(SR.Format(SR.Argument_EncodingConversionOverflowBytes, EncodingName, EncoderFallback.GetType()), "bytes"); 359throw new ArgumentException(SR.Format(SR.Argument_EncodingConversionOverflowChars, EncodingName, DecoderFallback.GetType()), "chars"); 372SR.Format(SR.MissingEncodingNameResource, WebName, CodePage)); 385SR.Format(SR.MissingEncodingNameResource, WebName, CodePage)); 39637 => SR.Globalization_cp_37, 397437 => SR.Globalization_cp_437, 398500 => SR.Globalization_cp_500, 399708 => SR.Globalization_cp_708, 400720 => SR.Globalization_cp_720, 401737 => SR.Globalization_cp_737, 402775 => SR.Globalization_cp_775, 403850 => SR.Globalization_cp_850, 404852 => SR.Globalization_cp_852, 405855 => SR.Globalization_cp_855, 406857 => SR.Globalization_cp_857, 407858 => SR.Globalization_cp_858, 408860 => SR.Globalization_cp_860, 409861 => SR.Globalization_cp_861, 410862 => SR.Globalization_cp_862, 411863 => SR.Globalization_cp_863, 412864 => SR.Globalization_cp_864, 413865 => SR.Globalization_cp_865, 414866 => SR.Globalization_cp_866, 415869 => SR.Globalization_cp_869, 416870 => SR.Globalization_cp_870, 417874 => SR.Globalization_cp_874, 418875 => SR.Globalization_cp_875, 419932 => SR.Globalization_cp_932, 420936 => SR.Globalization_cp_936, 421949 => SR.Globalization_cp_949, 422950 => SR.Globalization_cp_950, 4231026 => SR.Globalization_cp_1026, 4241047 => SR.Globalization_cp_1047, 4251140 => SR.Globalization_cp_1140, 4261141 => SR.Globalization_cp_1141, 4271142 => SR.Globalization_cp_1142, 4281143 => SR.Globalization_cp_1143, 4291144 => SR.Globalization_cp_1144, 4301145 => SR.Globalization_cp_1145, 4311146 => SR.Globalization_cp_1146, 4321147 => SR.Globalization_cp_1147, 4331148 => SR.Globalization_cp_1148, 4341149 => SR.Globalization_cp_1149, 4351250 => SR.Globalization_cp_1250, 4361251 => SR.Globalization_cp_1251, 4371252 => SR.Globalization_cp_1252, 4381253 => SR.Globalization_cp_1253, 4391254 => SR.Globalization_cp_1254, 4401255 => SR.Globalization_cp_1255, 4411256 => SR.Globalization_cp_1256, 4421257 => SR.Globalization_cp_1257, 4431258 => SR.Globalization_cp_1258, 4441361 => SR.Globalization_cp_1361, 44510000 => SR.Globalization_cp_10000, 44610001 => SR.Globalization_cp_10001, 44710002 => SR.Globalization_cp_10002, 44810003 => SR.Globalization_cp_10003, 44910004 => SR.Globalization_cp_10004, 45010005 => SR.Globalization_cp_10005, 45110006 => SR.Globalization_cp_10006, 45210007 => SR.Globalization_cp_10007, 45310008 => SR.Globalization_cp_10008, 45410010 => SR.Globalization_cp_10010, 45510017 => SR.Globalization_cp_10017, 45610021 => SR.Globalization_cp_10021, 45710029 => SR.Globalization_cp_10029, 45810079 => SR.Globalization_cp_10079, 45910081 => SR.Globalization_cp_10081, 46010082 => SR.Globalization_cp_10082, 46120000 => SR.Globalization_cp_20000, 46220001 => SR.Globalization_cp_20001, 46320002 => SR.Globalization_cp_20002, 46420003 => SR.Globalization_cp_20003, 46520004 => SR.Globalization_cp_20004, 46620005 => SR.Globalization_cp_20005, 46720105 => SR.Globalization_cp_20105, 46820106 => SR.Globalization_cp_20106, 46920107 => SR.Globalization_cp_20107, 47020108 => SR.Globalization_cp_20108, 47120261 => SR.Globalization_cp_20261, 47220269 => SR.Globalization_cp_20269, 47320273 => SR.Globalization_cp_20273, 47420277 => SR.Globalization_cp_20277, 47520278 => SR.Globalization_cp_20278, 47620280 => SR.Globalization_cp_20280, 47720284 => SR.Globalization_cp_20284, 47820285 => SR.Globalization_cp_20285, 47920290 => SR.Globalization_cp_20290, 48020297 => SR.Globalization_cp_20297, 48120420 => SR.Globalization_cp_20420, 48220423 => SR.Globalization_cp_20423, 48320424 => SR.Globalization_cp_20424, 48420833 => SR.Globalization_cp_20833, 48520838 => SR.Globalization_cp_20838, 48620866 => SR.Globalization_cp_20866, 48720871 => SR.Globalization_cp_20871, 48820880 => SR.Globalization_cp_20880, 48920905 => SR.Globalization_cp_20905, 49020924 => SR.Globalization_cp_20924, 49120932 => SR.Globalization_cp_20932, 49220936 => SR.Globalization_cp_20936, 49320949 => SR.Globalization_cp_20949, 49421025 => SR.Globalization_cp_21025, 49521027 => SR.Globalization_cp_21027, 49621866 => SR.Globalization_cp_21866, 49728592 => SR.Globalization_cp_28592, 49828593 => SR.Globalization_cp_28593, 49928594 => SR.Globalization_cp_28594, 50028595 => SR.Globalization_cp_28595, 50128596 => SR.Globalization_cp_28596, 50228597 => SR.Globalization_cp_28597, 50328598 => SR.Globalization_cp_28598, 50428599 => SR.Globalization_cp_28599, 50528603 => SR.Globalization_cp_28603, 50628605 => SR.Globalization_cp_28605, 50729001 => SR.Globalization_cp_29001, 50838598 => SR.Globalization_cp_38598, 50950000 => SR.Globalization_cp_50000, 51050220 => SR.Globalization_cp_50220, 51150221 => SR.Globalization_cp_50221, 51250222 => SR.Globalization_cp_50222, 51350225 => SR.Globalization_cp_50225, 51450227 => SR.Globalization_cp_50227, 51550229 => SR.Globalization_cp_50229, 51650930 => SR.Globalization_cp_50930, 51750931 => SR.Globalization_cp_50931, 51850933 => SR.Globalization_cp_50933, 51950935 => SR.Globalization_cp_50935, 52050937 => SR.Globalization_cp_50937, 52150939 => SR.Globalization_cp_50939, 52251932 => SR.Globalization_cp_51932, 52351936 => SR.Globalization_cp_51936, 52451949 => SR.Globalization_cp_51949, 52552936 => SR.Globalization_cp_52936, 52654936 => SR.Globalization_cp_54936, 52757002 => SR.Globalization_cp_57002, 52857003 => SR.Globalization_cp_57003, 52957004 => SR.Globalization_cp_57004, 53057005 => SR.Globalization_cp_57005, 53157006 => SR.Globalization_cp_57006, 53257007 => SR.Globalization_cp_57007, 53357008 => SR.Globalization_cp_57008, 53457009 => SR.Globalization_cp_57009, 53557010 => SR.Globalization_cp_57010, 53657011 => SR.Globalization_cp_57011, 550throw 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);