131 references to SR
System.Text.RegularExpressions (131)
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)
1858SR.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 (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)
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,