131 references to SR
System.Text.RegularExpressions (131)
System\Text\RegularExpressions\CaptureCollection.cs (14)
193throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 216throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 219throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 224set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 228throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 231throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 237throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 240throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 243throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 252throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 257throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 260throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 265set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 301throw new InvalidOperationException(SR.EnumNotStarted);
System\Text\RegularExpressions\GroupCollection.cs (15)
249throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 272throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 275throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 280set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 284throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 287throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 293throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 296throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 299throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 308throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 313throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 316throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 321set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 422throw new InvalidOperationException(SR.EnumNotStarted); 435throw new InvalidOperationException(SR.EnumNotStarted);
System\Text\RegularExpressions\Match.cs (1)
203Regex? regex = _regex ?? throw new NotSupportedException(SR.NoResultOnFailed);
System\Text\RegularExpressions\MatchCollection.cs (13)
296throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 299throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 304set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 308throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 311throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 320throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 323throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 326throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 335throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 340throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 343throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 348set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 389throw new InvalidOperationException(SR.EnumNotStarted);
System\Text\RegularExpressions\Regex.Timeout.cs (4)
118throw new InvalidCastException(SR.Format(SR.IllegalDefaultRegexMatchTimeoutInAppDomain, DefaultMatchTimeout_ConfigKeyName, defaultTimeout)); 129throw new ArgumentOutOfRangeException(SR.Format(SR.IllegalDefaultRegexMatchTimeoutInAppDomain, DefaultMatchTimeout_ConfigKeyName, defaultMatchTimeOut));
System\Text\RegularExpressions\RegexCharClass.cs (4)
1858SR.Format(SR.MakeException, pattern, currentPos, SR.Format(SR.UnrecognizedUnicodeProperty, capname)));
System\Text\RegularExpressions\RegexMatchTimeoutException.cs (4)
70: base(SR.RegexMatchTimeoutException_Occurred) 86public RegexMatchTimeoutException() : base(SR.RegexMatchTimeoutException_Occurred) { } 98public RegexMatchTimeoutException(string message) : base(message ?? SR.RegexMatchTimeoutException_Occurred) { } 120public RegexMatchTimeoutException(string message, Exception inner) : base(message ?? SR.RegexMatchTimeoutException_Occurred, inner) { }
System\Text\RegularExpressions\RegexParser.cs (60)
371throw MakeException(RegexParseError.InsufficientOpeningParentheses, SR.InsufficientOpeningParentheses); 387throw MakeException(RegexParseError.UnescapedEndingBackslash, SR.UnescapedEndingBackslash); 437MakeException(RegexParseError.NestedQuantifiersNotParenthesized, SR.Format(SR.NestedQuantifiersNotParenthesized, ch)) : 438MakeException(RegexParseError.QuantifierAfterNothing, SR.Format(SR.QuantifierAfterNothing, ch)); 517throw MakeException(RegexParseError.ReversedQuantifierRange, SR.ReversedQuantifierRange); 533throw MakeException(RegexParseError.InsufficientClosingParentheses, SR.InsufficientClosingParentheses); 649throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 670throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 682throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 694throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 707throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 725throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 769throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 807throw MakeException(RegexParseError.UnterminatedBracket, SR.UnterminatedBracket); 927throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 932throw MakeException(RegexParseError.CaptureGroupOfZero, SR.CaptureGroupOfZero); 947throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 957throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 973throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, uncapnum)); 979throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 988throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, uncapname)); 993throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 999throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 1032throw MakeException(RegexParseError.AlternationHasUndefinedReference, SR.Format(SR.AlternationHasUndefinedReference, capnum.ToString())); 1035throw MakeException(RegexParseError.AlternationHasMalformedReference, SR.Format(SR.AlternationHasMalformedReference, capnum.ToString())); 1057throw MakeException(RegexParseError.AlternationHasComment, SR.AlternationHasComment); 1063throw MakeException(RegexParseError.AlternationHasNamedCapture, SR.AlternationHasNamedCapture); 1104throw MakeException(RegexParseError.InvalidGroupingConstruct, SR.InvalidGroupingConstruct); 1134throw MakeException(RegexParseError.UnterminatedComment, SR.UnterminatedComment); 1252throw MakeException(RegexParseError.MalformedNamedReference, SR.MalformedNamedReference); 1279throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1329throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1345throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, capname)); 1405throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1543throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1574throw MakeException(RegexParseError.InsufficientOrInvalidHexDigits, SR.InsufficientOrInvalidHexDigits); 1585throw MakeException(RegexParseError.MissingControlCharacter, SR.MissingControlCharacter); 1602throw MakeException(RegexParseError.UnrecognizedControlCharacter, SR.UnrecognizedControlCharacter); 1686throw MakeException(RegexParseError.UnrecognizedEscape, SR.Format(SR.UnrecognizedEscape, ch)); 1697throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 1703throw MakeException(RegexParseError.MalformedUnicodePropertyEscape, SR.MalformedUnicodePropertyEscape); 1721throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 2232throw MakeException(RegexParseError.AlternationHasMalformedCondition, SR.AlternationHasMalformedCondition); 2274throw MakeException(RegexParseError.AlternationHasTooManyConditions, SR.AlternationHasTooManyConditions); 2288new RegexParseException(error, _pos, SR.Format(SR.MakeException, _pattern, _pos, message));
System\Text\RegularExpressions\RegexRunner.cs (1)
146throw new NotSupportedException(SR.UsingSpanAPIsWithCompiledToAssembly);
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (10)
178throw new NotSupportedException(SR.Format(SR.NotSupported_NonBacktrackingConflictingExpression, node.Kind switch 180RegexNodeKind.Atomic or RegexNodeKind.Setloopatomic or RegexNodeKind.Oneloopatomic or RegexNodeKind.Notoneloopatomic => SR.ExpressionDescription_AtomicSubexpressions, 181RegexNodeKind.Backreference => SR.ExpressionDescription_Backreference, 182RegexNodeKind.BackreferenceConditional => SR.ExpressionDescription_Conditional, 183RegexNodeKind.Capture => SR.ExpressionDescription_BalancingGroup, 184RegexNodeKind.ExpressionConditional => SR.ExpressionDescription_IfThenElse, 185RegexNodeKind.NegativeLookaround => SR.ExpressionDescription_NegativeLookaround, 186RegexNodeKind.PositiveLookaround => SR.ExpressionDescription_PositiveLookaround, 187RegexNodeKind.Start => SR.ExpressionDescription_ContiguousMatches,
System\Text\RegularExpressions\Symbolic\SymbolicRegexRunnerFactory.cs (2)
35throw new NotSupportedException(SR.Format(SR.NotSupported_NonBacktrackingUnsafeSize, size, threshold));
System\Text\RegularExpressions\ThrowHelper.cs (3)
48ExceptionResource.BeginIndexNotNegative => SR.BeginIndexNotNegative, 49ExceptionResource.CountTooSmall => SR.CountTooSmall, 50ExceptionResource.LengthNotNegative => SR.LengthNotNegative,