132 references to SR
System.Text.RegularExpressions (132)
System\Text\RegularExpressions\CaptureCollection.cs (14)
105throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 128throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 131throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 136set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 140throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 143throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 149throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 152throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 155throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 164throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 169throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 172throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 177set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 213throw new InvalidOperationException(SR.EnumNotStarted);
System\Text\RegularExpressions\GroupCollection.cs (15)
119throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 142throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 145throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 150set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 154throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 157throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 163throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 166throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 169throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 178throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 183throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 186throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 191set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 266throw new InvalidOperationException(SR.EnumNotStarted); 279throw new InvalidOperationException(SR.EnumNotStarted);
System\Text\RegularExpressions\Match.cs (1)
119Regex? regex = _regex ?? throw new NotSupportedException(SR.NoResultOnFailed);
System\Text\RegularExpressions\MatchCollection.cs (13)
138throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 141throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 146set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 150throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 153throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 162throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 165throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 168throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 177throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 182throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 185throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 190set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 231throw new InvalidOperationException(SR.EnumNotStarted);
System\Text\RegularExpressions\Regex.Timeout.cs (4)
81throw new InvalidCastException(SR.Format(SR.IllegalDefaultRegexMatchTimeoutInAppDomain, DefaultMatchTimeout_ConfigKeyName, defaultTimeout)); 92throw new ArgumentOutOfRangeException(SR.Format(SR.IllegalDefaultRegexMatchTimeoutInAppDomain, DefaultMatchTimeout_ConfigKeyName, defaultMatchTimeOut));
System\Text\RegularExpressions\RegexCharClass.cs (4)
1868SR.Format(SR.MakeException, pattern, currentPos, SR.Format(SR.UnrecognizedUnicodeProperty, capname)));
System\Text\RegularExpressions\RegexMatchTimeoutException.cs (4)
23: base(SR.RegexMatchTimeoutException_Occurred) 35public RegexMatchTimeoutException() : base(SR.RegexMatchTimeoutException_Occurred) { } 43public RegexMatchTimeoutException(string message) : base(message ?? SR.RegexMatchTimeoutException_Occurred) { } 52public RegexMatchTimeoutException(string message, Exception inner) : base(message ?? SR.RegexMatchTimeoutException_Occurred, inner) { }
System\Text\RegularExpressions\RegexParser.cs (61)
371throw MakeException(RegexParseError.InsufficientOpeningParentheses, SR.InsufficientOpeningParentheses); 387throw MakeException(RegexParseError.UnescapedEndingBackslash, SR.UnescapedEndingBackslash); 414MakeException(RegexParseError.NestedQuantifiersNotParenthesized, SR.Format(SR.NestedQuantifiersNotParenthesized, ch)) : 415MakeException(RegexParseError.QuantifierAfterNothing, SR.Format(SR.QuantifierAfterNothing, ch)); 494throw MakeException(RegexParseError.ReversedQuantifierRange, SR.ReversedQuantifierRange); 510throw MakeException(RegexParseError.InsufficientClosingParentheses, SR.InsufficientClosingParentheses); 592throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 604throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 616throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 629throw MakeException(RegexParseError.ShorthandClassInCharacterRange, SR.Format(SR.ShorthandClassInCharacterRange, ch)); 647throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 684throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 692throw MakeException(RegexParseError.ReversedCharacterRange, SR.ReversedCharacterRange); 717throw MakeException(RegexParseError.ExclusionGroupNotLast, SR.ExclusionGroupNotLast); 732throw MakeException(RegexParseError.UnterminatedBracket, SR.UnterminatedBracket); 857throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 862throw MakeException(RegexParseError.CaptureGroupOfZero, SR.CaptureGroupOfZero); 877throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 887throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 903throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, uncapnum)); 909throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 918throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, uncapname)); 923throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 929throw MakeException(RegexParseError.CaptureGroupNameInvalid, SR.CaptureGroupNameInvalid); 962throw MakeException(RegexParseError.AlternationHasUndefinedReference, SR.Format(SR.AlternationHasUndefinedReference, capnum.ToString())); 965throw MakeException(RegexParseError.AlternationHasMalformedReference, SR.Format(SR.AlternationHasMalformedReference, capnum.ToString())); 987throw MakeException(RegexParseError.AlternationHasComment, SR.AlternationHasComment); 993throw MakeException(RegexParseError.AlternationHasNamedCapture, SR.AlternationHasNamedCapture); 1033throw MakeException(RegexParseError.InvalidGroupingConstruct, SR.InvalidGroupingConstruct); 1063throw MakeException(RegexParseError.UnterminatedComment, SR.UnterminatedComment); 1177throw MakeException(RegexParseError.MalformedNamedReference, SR.MalformedNamedReference); 1204throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1254throw MakeException(RegexParseError.UndefinedNumberedReference, SR.Format(SR.UndefinedNumberedReference, capnum.ToString())); 1270throw MakeException(RegexParseError.UndefinedNamedReference, SR.Format(SR.UndefinedNamedReference, capname)); 1330throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1468throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, SR.QuantifierOrCaptureGroupOutOfRange); 1499throw MakeException(RegexParseError.InsufficientOrInvalidHexDigits, SR.InsufficientOrInvalidHexDigits); 1510throw MakeException(RegexParseError.MissingControlCharacter, SR.MissingControlCharacter); 1527throw MakeException(RegexParseError.UnrecognizedControlCharacter, SR.UnrecognizedControlCharacter); 1611throw MakeException(RegexParseError.UnrecognizedEscape, SR.Format(SR.UnrecognizedEscape, ch)); 1622throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 1628throw MakeException(RegexParseError.MalformedUnicodePropertyEscape, SR.MalformedUnicodePropertyEscape); 1646throw MakeException(RegexParseError.InvalidUnicodePropertyEscape, SR.InvalidUnicodePropertyEscape); 2056throw MakeException(RegexParseError.AlternationHasMalformedCondition, SR.AlternationHasMalformedCondition); 2098throw MakeException(RegexParseError.AlternationHasTooManyConditions, SR.AlternationHasTooManyConditions); 2112new RegexParseException(error, _pos, SR.Format(SR.MakeException, _pattern, _pos, message));
System\Text\RegularExpressions\RegexRunner.cs (1)
145throw 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,