241 references to SR
System.Text.Encoding.CodePages (241)
System\Text\BaseCodePageEncoding.cs (2)
255
throw new NotSupportedException(
SR
.Format(
SR
.NotSupported_NoCodepageData, CodePage));
System\Text\BaseCodePageEncoding.netcoreapp.cs (1)
70
if (!
SR
.UsingResourceKeys())
System\Text\DBCSCodePageEncoding.cs (10)
99
throw new NotSupportedException(
SR
.Format(
SR
.NotSupported_NoCodepageData, CodePage));
541
throw new ArgumentException(
SR
.Format(
SR
.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType()));
657
throw new ArgumentException(
SR
.Format(
SR
.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType()));
1121
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
1133
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_GetByteCountOverflow);
1141
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
1151
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\DecoderFallbackBufferHelper.cs (6)
65
throw new ArgumentException(
SR
.Argument_InvalidCharSequenceNoIndex);
72
throw new ArgumentException(
SR
.Argument_InvalidCharSequenceNoIndex);
88
throw new ArgumentException(
SR
.Argument_InvalidCharSequenceNoIndex);
121
throw new ArgumentException(
SR
.Argument_InvalidCharSequenceNoIndex);
128
throw new ArgumentException(
SR
.Argument_InvalidCharSequenceNoIndex);
138
throw new ArgumentException(
SR
.Argument_InvalidCharSequenceNoIndex);
System\Text\DecoderNLS.cs (12)
86
throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
89
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
104
throw new ArgumentOutOfRangeException(nameof(count),
SR
.ArgumentOutOfRange_NeedNonNegNum);
130
throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
133
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
136
throw new ArgumentOutOfRangeException(nameof(charIndex),
SR
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
159
throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
182
throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
185
throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
188
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
191
throw new ArgumentOutOfRangeException(nameof(chars),
SR
.ArgumentOutOfRange_IndexCountBuffer);
215
throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncoderBestFitFallback.cs (4)
100
throw new ArgumentOutOfRangeException(nameof(charUnknownHigh),
SR
.Format(
SR
.ArgumentOutOfRange_Range, 0xD800, 0xDBFF));
103
throw new ArgumentOutOfRangeException(nameof(charUnknownLow),
SR
.Format(
SR
.ArgumentOutOfRange_Range, 0xDC00, 0xDFFF));
System\Text\EncoderFallbackBufferHelper.cs (2)
133
throw new ArgumentException(
SR
.Format(
SR
.Argument_RecursiveFallback, charRecursive), "chars");
System\Text\EncoderNLS.cs (12)
84
throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
87
throw new ArgumentOutOfRangeException(nameof(chars),
SR
.ArgumentOutOfRange_IndexCountBuffer);
102
throw new ArgumentOutOfRangeException(nameof(count),
SR
.ArgumentOutOfRange_NeedNonNegNum);
119
throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
122
throw new ArgumentOutOfRangeException(nameof(chars),
SR
.ArgumentOutOfRange_IndexCountBuffer);
125
throw new ArgumentOutOfRangeException(nameof(byteIndex),
SR
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
147
throw new ArgumentOutOfRangeException((byteCount < 0 ? nameof(byteCount) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
167
throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
170
throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
173
throw new ArgumentOutOfRangeException(nameof(chars),
SR
.ArgumentOutOfRange_IndexCountBuffer);
176
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
200
throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
System\Text\EncodingByteBuffer.cs (2)
42
throw new ArgumentException(
SR
.Format(
SR
.Argument_EncoderFallbackNotEmpty, _encoder.Encoding.EncodingName, _encoder.Fallback.GetType()));
System\Text\EncodingNLS.cs (170)
55
throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
58
throw new ArgumentOutOfRangeException(nameof(chars),
SR
.ArgumentOutOfRange_IndexCountBuffer);
89
throw new ArgumentOutOfRangeException(nameof(count),
SR
.ArgumentOutOfRange_NeedNonNegNum);
109
throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
112
throw new ArgumentOutOfRangeException(nameof(s),
SR
.ArgumentOutOfRange_IndexCount);
115
throw new ArgumentOutOfRangeException(nameof(byteIndex),
SR
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
149
throw new ArgumentOutOfRangeException((charIndex < 0 ? nameof(charIndex) : nameof(charCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
152
throw new ArgumentOutOfRangeException(nameof(chars),
SR
.ArgumentOutOfRange_IndexCountBuffer);
155
throw new ArgumentOutOfRangeException(nameof(byteIndex),
SR
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
184
throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
201
throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
204
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
223
throw new ArgumentOutOfRangeException(nameof(count),
SR
.ArgumentOutOfRange_NeedNonNegNum);
241
throw new ArgumentOutOfRangeException((byteIndex < 0 ? nameof(byteIndex) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
244
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
247
throw new ArgumentOutOfRangeException(nameof(charIndex),
SR
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
276
throw new ArgumentOutOfRangeException((charCount < 0 ? nameof(charCount) : nameof(byteCount)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
293
throw new ArgumentOutOfRangeException((index < 0 ? nameof(index) : nameof(count)),
SR
.ArgumentOutOfRange_NeedNonNegNum);
296
throw new ArgumentOutOfRangeException(nameof(bytes),
SR
.ArgumentOutOfRange_IndexCountBuffer);
351
throw new ArgumentException(
SR
.Format(
SR
.Argument_EncodingConversionOverflowBytes, EncodingName, EncoderFallback.GetType()), "bytes");
359
throw new ArgumentException(
SR
.Format(
SR
.Argument_EncodingConversionOverflowChars, EncodingName, DecoderFallback.GetType()), "chars");
372
SR
.Format(
SR
.MissingEncodingNameResource, WebName, CodePage));
385
SR
.Format(
SR
.MissingEncodingNameResource, WebName, CodePage));
396
37 =>
SR
.Globalization_cp_37,
397
437 =>
SR
.Globalization_cp_437,
398
500 =>
SR
.Globalization_cp_500,
399
708 =>
SR
.Globalization_cp_708,
400
720 =>
SR
.Globalization_cp_720,
401
737 =>
SR
.Globalization_cp_737,
402
775 =>
SR
.Globalization_cp_775,
403
850 =>
SR
.Globalization_cp_850,
404
852 =>
SR
.Globalization_cp_852,
405
855 =>
SR
.Globalization_cp_855,
406
857 =>
SR
.Globalization_cp_857,
407
858 =>
SR
.Globalization_cp_858,
408
860 =>
SR
.Globalization_cp_860,
409
861 =>
SR
.Globalization_cp_861,
410
862 =>
SR
.Globalization_cp_862,
411
863 =>
SR
.Globalization_cp_863,
412
864 =>
SR
.Globalization_cp_864,
413
865 =>
SR
.Globalization_cp_865,
414
866 =>
SR
.Globalization_cp_866,
415
869 =>
SR
.Globalization_cp_869,
416
870 =>
SR
.Globalization_cp_870,
417
874 =>
SR
.Globalization_cp_874,
418
875 =>
SR
.Globalization_cp_875,
419
932 =>
SR
.Globalization_cp_932,
420
936 =>
SR
.Globalization_cp_936,
421
949 =>
SR
.Globalization_cp_949,
422
950 =>
SR
.Globalization_cp_950,
423
1026 =>
SR
.Globalization_cp_1026,
424
1047 =>
SR
.Globalization_cp_1047,
425
1140 =>
SR
.Globalization_cp_1140,
426
1141 =>
SR
.Globalization_cp_1141,
427
1142 =>
SR
.Globalization_cp_1142,
428
1143 =>
SR
.Globalization_cp_1143,
429
1144 =>
SR
.Globalization_cp_1144,
430
1145 =>
SR
.Globalization_cp_1145,
431
1146 =>
SR
.Globalization_cp_1146,
432
1147 =>
SR
.Globalization_cp_1147,
433
1148 =>
SR
.Globalization_cp_1148,
434
1149 =>
SR
.Globalization_cp_1149,
435
1250 =>
SR
.Globalization_cp_1250,
436
1251 =>
SR
.Globalization_cp_1251,
437
1252 =>
SR
.Globalization_cp_1252,
438
1253 =>
SR
.Globalization_cp_1253,
439
1254 =>
SR
.Globalization_cp_1254,
440
1255 =>
SR
.Globalization_cp_1255,
441
1256 =>
SR
.Globalization_cp_1256,
442
1257 =>
SR
.Globalization_cp_1257,
443
1258 =>
SR
.Globalization_cp_1258,
444
1361 =>
SR
.Globalization_cp_1361,
445
10000 =>
SR
.Globalization_cp_10000,
446
10001 =>
SR
.Globalization_cp_10001,
447
10002 =>
SR
.Globalization_cp_10002,
448
10003 =>
SR
.Globalization_cp_10003,
449
10004 =>
SR
.Globalization_cp_10004,
450
10005 =>
SR
.Globalization_cp_10005,
451
10006 =>
SR
.Globalization_cp_10006,
452
10007 =>
SR
.Globalization_cp_10007,
453
10008 =>
SR
.Globalization_cp_10008,
454
10010 =>
SR
.Globalization_cp_10010,
455
10017 =>
SR
.Globalization_cp_10017,
456
10021 =>
SR
.Globalization_cp_10021,
457
10029 =>
SR
.Globalization_cp_10029,
458
10079 =>
SR
.Globalization_cp_10079,
459
10081 =>
SR
.Globalization_cp_10081,
460
10082 =>
SR
.Globalization_cp_10082,
461
20000 =>
SR
.Globalization_cp_20000,
462
20001 =>
SR
.Globalization_cp_20001,
463
20002 =>
SR
.Globalization_cp_20002,
464
20003 =>
SR
.Globalization_cp_20003,
465
20004 =>
SR
.Globalization_cp_20004,
466
20005 =>
SR
.Globalization_cp_20005,
467
20105 =>
SR
.Globalization_cp_20105,
468
20106 =>
SR
.Globalization_cp_20106,
469
20107 =>
SR
.Globalization_cp_20107,
470
20108 =>
SR
.Globalization_cp_20108,
471
20261 =>
SR
.Globalization_cp_20261,
472
20269 =>
SR
.Globalization_cp_20269,
473
20273 =>
SR
.Globalization_cp_20273,
474
20277 =>
SR
.Globalization_cp_20277,
475
20278 =>
SR
.Globalization_cp_20278,
476
20280 =>
SR
.Globalization_cp_20280,
477
20284 =>
SR
.Globalization_cp_20284,
478
20285 =>
SR
.Globalization_cp_20285,
479
20290 =>
SR
.Globalization_cp_20290,
480
20297 =>
SR
.Globalization_cp_20297,
481
20420 =>
SR
.Globalization_cp_20420,
482
20423 =>
SR
.Globalization_cp_20423,
483
20424 =>
SR
.Globalization_cp_20424,
484
20833 =>
SR
.Globalization_cp_20833,
485
20838 =>
SR
.Globalization_cp_20838,
486
20866 =>
SR
.Globalization_cp_20866,
487
20871 =>
SR
.Globalization_cp_20871,
488
20880 =>
SR
.Globalization_cp_20880,
489
20905 =>
SR
.Globalization_cp_20905,
490
20924 =>
SR
.Globalization_cp_20924,
491
20932 =>
SR
.Globalization_cp_20932,
492
20936 =>
SR
.Globalization_cp_20936,
493
20949 =>
SR
.Globalization_cp_20949,
494
21025 =>
SR
.Globalization_cp_21025,
495
21027 =>
SR
.Globalization_cp_21027,
496
21866 =>
SR
.Globalization_cp_21866,
497
28592 =>
SR
.Globalization_cp_28592,
498
28593 =>
SR
.Globalization_cp_28593,
499
28594 =>
SR
.Globalization_cp_28594,
500
28595 =>
SR
.Globalization_cp_28595,
501
28596 =>
SR
.Globalization_cp_28596,
502
28597 =>
SR
.Globalization_cp_28597,
503
28598 =>
SR
.Globalization_cp_28598,
504
28599 =>
SR
.Globalization_cp_28599,
505
28603 =>
SR
.Globalization_cp_28603,
506
28605 =>
SR
.Globalization_cp_28605,
507
29001 =>
SR
.Globalization_cp_29001,
508
38598 =>
SR
.Globalization_cp_38598,
509
50000 =>
SR
.Globalization_cp_50000,
510
50220 =>
SR
.Globalization_cp_50220,
511
50221 =>
SR
.Globalization_cp_50221,
512
50222 =>
SR
.Globalization_cp_50222,
513
50225 =>
SR
.Globalization_cp_50225,
514
50227 =>
SR
.Globalization_cp_50227,
515
50229 =>
SR
.Globalization_cp_50229,
516
50930 =>
SR
.Globalization_cp_50930,
517
50931 =>
SR
.Globalization_cp_50931,
518
50933 =>
SR
.Globalization_cp_50933,
519
50935 =>
SR
.Globalization_cp_50935,
520
50937 =>
SR
.Globalization_cp_50937,
521
50939 =>
SR
.Globalization_cp_50939,
522
51932 =>
SR
.Globalization_cp_51932,
523
51936 =>
SR
.Globalization_cp_51936,
524
51949 =>
SR
.Globalization_cp_51949,
525
52936 =>
SR
.Globalization_cp_52936,
526
54936 =>
SR
.Globalization_cp_54936,
527
57002 =>
SR
.Globalization_cp_57002,
528
57003 =>
SR
.Globalization_cp_57003,
529
57004 =>
SR
.Globalization_cp_57004,
530
57005 =>
SR
.Globalization_cp_57005,
531
57006 =>
SR
.Globalization_cp_57006,
532
57007 =>
SR
.Globalization_cp_57007,
533
57008 =>
SR
.Globalization_cp_57008,
534
57009 =>
SR
.Globalization_cp_57009,
535
57010 =>
SR
.Globalization_cp_57010,
536
57011 =>
SR
.Globalization_cp_57011,
550
throw new NotSupportedException(
SR
.Format(
SR
.NotSupported_NoCodepageData, CodePage));
System\Text\GB18030Encoding.cs (4)
745
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
757
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_GetByteCountOverflow);
765
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
776
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISCIIEncoding.cs (6)
65
throw new ArgumentException(
SR
.Format(
SR
.Argument_CodepageNotSupported, codePage), nameof(codePage));
79
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
91
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_GetByteCountOverflow);
101
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
113
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\ISO2022Encoding.cs (4)
1694
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
1739
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_GetByteCountOverflow);
1747
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
1775
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_GetCharCountOverflow);
System\Text\SBCSCodePageEncoding.cs (6)
73
throw new NotSupportedException(
SR
.Format(
SR
.NotSupported_NoCodepageData, CodePage));
906
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
917
throw new ArgumentOutOfRangeException(nameof(charCount),
SR
.ArgumentOutOfRange_GetByteCountOverflow);
924
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_NeedNonNegNum);
934
throw new ArgumentOutOfRangeException(nameof(byteCount),
SR
.ArgumentOutOfRange_GetCharCountOverflow);