using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Cpp2IlInjected; namespace System.Text.RegularExpressions { /// Represents an immutable regular expression. // Token: 0x0200009D RID: 157 [Token(Token = "0x200009D")] [Serializable] public class Regex : ISerializable { /// Initializes a new instance of the class. // Token: 0x06000309 RID: 777 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000309")] [Address(RVA = "0x515DF0", Offset = "0x514BF0", VA = "0x180515DF0")] protected Regex() { } /// Initializes a new instance of the class for the specified regular expression. /// The regular expression pattern to match. /// A regular expression parsing error occurred. /// /// is . // Token: 0x0600030A RID: 778 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600030A")] [Address(RVA = "0x515620", Offset = "0x514420", VA = "0x180515620")] public Regex(string pattern) { } /// Initializes a new instance of the class for the specified regular expression, with options that modify the pattern. /// The regular expression pattern to match. /// A bitwise combination of the enumeration values that modify the regular expression. /// A regular expression parsing error occurred. /// /// is . /// /// contains an invalid flag. // Token: 0x0600030B RID: 779 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600030B")] [Address(RVA = "0x515C00", Offset = "0x514A00", VA = "0x180515C00")] public Regex(string pattern, RegexOptions options) { } // Token: 0x0600030C RID: 780 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600030C")] [Address(RVA = "0x5156B0", Offset = "0x5144B0", VA = "0x1805156B0")] private Regex(string pattern, RegexOptions options, TimeSpan matchTimeout, bool useCache) { } /// Initializes a new instance of the class by using serialized data. /// The object that contains a serialized pattern and information. /// The destination for this serialization. (This parameter is not used; specify .) /// A regular expression parsing error occurred. /// The pattern that contains is . /// /// contains an invalid flag. // Token: 0x0600030D RID: 781 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600030D")] [Address(RVA = "0x515CA0", Offset = "0x514AA0", VA = "0x180515CA0")] protected Regex(SerializationInfo info, StreamingContext context) { } /// Populates a object with the data necessary to deserialize the current object. /// The object to populate with serialization information. /// The place to store and retrieve serialized data. This parameter is reserved for future use. // Token: 0x0600030E RID: 782 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600030E")] [Address(RVA = "0x515230", Offset = "0x514030", VA = "0x180515230", Slot = "4")] void ISerializable.GetObjectData(SerializationInfo si, StreamingContext context) { } /// Checks whether a time-out interval is within an acceptable range. /// The time-out interval to check. // Token: 0x0600030F RID: 783 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600030F")] [Address(RVA = "0x515390", Offset = "0x514190", VA = "0x180515390")] protected internal static void ValidateMatchTimeout(TimeSpan matchTimeout) { } // Token: 0x06000310 RID: 784 RVA: 0x000032B8 File Offset: 0x000014B8 [Token(Token = "0x6000310")] [Address(RVA = "0x5134B0", Offset = "0x5122B0", VA = "0x1805134B0")] private static TimeSpan InitDefaultMatchTimeout() { return default(TimeSpan); } /// Converts any escaped characters in the input string. /// The input string containing the text to convert. /// A string of characters with any escaped characters converted to their unescaped form. /// /// includes an unrecognized escape sequence. /// /// is . // Token: 0x06000311 RID: 785 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000311")] [Address(RVA = "0x5152E0", Offset = "0x5140E0", VA = "0x1805152E0")] public static string Unescape(string str) { return null; } /// Gets the options that were passed into the constructor. /// One or more members of the enumeration that represent options that were passed to the constructor // Token: 0x1700007B RID: 123 // (get) Token: 0x06000312 RID: 786 RVA: 0x000032D0 File Offset: 0x000014D0 [Token(Token = "0x1700007B")] public RegexOptions Options { [Token(Token = "0x6000312")] [Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")] get { return RegexOptions.None; } } /// Gets the time-out interval of the current instance. /// The maximum time interval that can elapse in a pattern-matching operation before a is thrown, or if time-outs are disabled. // Token: 0x1700007C RID: 124 // (get) Token: 0x06000313 RID: 787 RVA: 0x000032E8 File Offset: 0x000014E8 [Token(Token = "0x1700007C")] public TimeSpan MatchTimeout { [Token(Token = "0x6000313")] [Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")] get { return default(TimeSpan); } } /// Gets a value that indicates whether the regular expression searches from right to left. /// /// if the regular expression searches from right to left; otherwise, . // Token: 0x1700007D RID: 125 // (get) Token: 0x06000314 RID: 788 RVA: 0x00003300 File Offset: 0x00001500 [Token(Token = "0x1700007D")] public bool RightToLeft { [Token(Token = "0x6000314")] [Address(RVA = "0x515380", Offset = "0x514180", VA = "0x180515380")] get { return default(bool); } } /// Returns the regular expression pattern that was passed into the constructor. /// The parameter that was passed into the constructor. // Token: 0x06000315 RID: 789 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000315")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "3")] public override string ToString() { return null; } /// Gets the group name that corresponds to the specified group number. /// The group number to convert to the corresponding group name. /// A string that contains the group name associated with the specified group number. If there is no group name that corresponds to , the method returns . // Token: 0x06000316 RID: 790 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000316")] [Address(RVA = "0x513340", Offset = "0x512140", VA = "0x180513340")] public string GroupNameFromNumber(int i) { return null; } /// Indicates whether the specified regular expression finds a match in the specified input string. /// The string to search for a match. /// The regular expression pattern to match. /// /// if the regular expression finds a match; otherwise, . /// A regular expression parsing error occurred. /// /// or is . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x06000317 RID: 791 RVA: 0x00003318 File Offset: 0x00001518 [Token(Token = "0x6000317")] [Address(RVA = "0x513850", Offset = "0x512650", VA = "0x180513850")] public static bool IsMatch(string input, string pattern) { return default(bool); } /// Indicates whether the specified regular expression finds a match in the specified input string, using the specified matching options and time-out interval. /// The string to search for a match. /// The regular expression pattern to match. /// A bitwise combination of the enumeration values that provide options for matching. /// A time-out interval, or to indicate that the method should not time out. /// /// if the regular expression finds a match; otherwise, . /// A regular expression parsing error occurred. /// /// or is . /// /// is not a valid value. /// -or- /// is negative, zero, or greater than approximately 24 days. /// A time-out occurred. // Token: 0x06000318 RID: 792 RVA: 0x00003330 File Offset: 0x00001530 [Token(Token = "0x6000318")] [Address(RVA = "0x513AB0", Offset = "0x5128B0", VA = "0x180513AB0")] public static bool IsMatch(string input, string pattern, RegexOptions options, TimeSpan matchTimeout) { return default(bool); } /// Indicates whether the regular expression specified in the constructor finds a match in a specified input string. /// The string to search for a match. /// /// if the regular expression finds a match; otherwise, . /// /// is . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x06000319 RID: 793 RVA: 0x00003348 File Offset: 0x00001548 [Token(Token = "0x6000319")] [Address(RVA = "0x5139D0", Offset = "0x5127D0", VA = "0x1805139D0")] public bool IsMatch(string input) { return default(bool); } /// Indicates whether the regular expression specified in the constructor finds a match in the specified input string, beginning at the specified starting position in the string. /// The string to search for a match. /// The character position at which to start the search. /// /// if the regular expression finds a match; otherwise, . /// /// is . /// /// is less than zero or greater than the length of . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x0600031A RID: 794 RVA: 0x00003360 File Offset: 0x00001560 [Token(Token = "0x600031A")] [Address(RVA = "0x5137A0", Offset = "0x5125A0", VA = "0x1805137A0")] public bool IsMatch(string input, int startat) { return default(bool); } /// Searches the specified input string for the first occurrence of the specified regular expression. /// The string to search for a match. /// The regular expression pattern to match. /// An object that contains information about the match. /// A regular expression parsing error occurred. /// /// or is . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x0600031B RID: 795 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600031B")] [Address(RVA = "0x513EE0", Offset = "0x512CE0", VA = "0x180513EE0")] public static Match Match(string input, string pattern) { return null; } /// Searches the input string for the first occurrence of the specified regular expression, using the specified matching options and time-out interval. /// The string to search for a match. /// The regular expression pattern to match. /// A bitwise combination of the enumeration values that provide options for matching. /// A time-out interval, or to indicate that the method should not time out. /// An object that contains information about the match. /// A regular expression parsing error occurred. /// /// or is . /// /// is not a valid bitwise combination of values. /// -or- /// is negative, zero, or greater than approximately 24 days. /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x0600031C RID: 796 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600031C")] [Address(RVA = "0x514130", Offset = "0x512F30", VA = "0x180514130")] public static Match Match(string input, string pattern, RegexOptions options, TimeSpan matchTimeout) { return null; } /// Searches the specified input string for the first occurrence of the regular expression specified in the constructor. /// The string to search for a match. /// An object that contains information about the match. /// /// is . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x0600031D RID: 797 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600031D")] [Address(RVA = "0x514060", Offset = "0x512E60", VA = "0x180514060")] public Match Match(string input) { return null; } /// Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position in the string. /// The string to search for a match. /// The zero-based character position at which to start the search. /// An object that contains information about the match. /// /// is . /// /// is less than zero or greater than the length of . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x0600031E RID: 798 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600031E")] [Address(RVA = "0x513E40", Offset = "0x512C40", VA = "0x180513E40")] public Match Match(string input, int startat) { return null; } /// Searches the specified input string for all occurrences of a specified regular expression. /// The string to search for a match. /// The regular expression pattern to match. /// A collection of the objects found by the search. If no matches are found, the method returns an empty collection object. /// A regular expression parsing error occurred. /// /// or is . // Token: 0x0600031F RID: 799 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600031F")] [Address(RVA = "0x514400", Offset = "0x513200", VA = "0x180514400")] public static MatchCollection Matches(string input, string pattern) { return null; } /// Searches the specified input string for all occurrences of a specified regular expression, using the specified matching options and time-out interval. /// The string to search for a match. /// The regular expression pattern to match. /// A bitwise combination of the enumeration values that specify options for matching. /// A time-out interval, or to indicate that the method should not time out. /// A collection of the objects found by the search. If no matches are found, the method returns an empty collection object. /// A regular expression parsing error occurred. /// /// or is . /// /// is not a valid bitwise combination of values. /// -or- /// is negative, zero, or greater than approximately 24 days. // Token: 0x06000320 RID: 800 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000320")] [Address(RVA = "0x514620", Offset = "0x513420", VA = "0x180514620")] public static MatchCollection Matches(string input, string pattern, RegexOptions options, TimeSpan matchTimeout) { return null; } /// Searches the specified input string for all occurrences of a regular expression. /// The string to search for a match. /// A collection of the objects found by the search. If no matches are found, the method returns an empty collection object. /// /// is . // Token: 0x06000321 RID: 801 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000321")] [Address(RVA = "0x514270", Offset = "0x513070", VA = "0x180514270")] public MatchCollection Matches(string input) { return null; } /// Searches the specified input string for all occurrences of a regular expression, beginning at the specified starting position in the string. /// The string to search for a match. /// The character position in the input string at which to start the search. /// A collection of the objects found by the search. If no matches are found, the method returns an empty collection object. /// /// is . /// /// is less than zero or greater than the length of . // Token: 0x06000322 RID: 802 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000322")] [Address(RVA = "0x514800", Offset = "0x513600", VA = "0x180514800")] public MatchCollection Matches(string input, int startat) { return null; } /// In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string. /// The string to search for a match. /// The regular expression pattern to match. /// The replacement string. /// A new string that is identical to the input string, except that the replacement string takes the place of each matched string. If is not matched in the current instance, the method returns the current instance unchanged. /// A regular expression parsing error occurred. /// /// , , or is . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x06000323 RID: 803 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000323")] [Address(RVA = "0x514A10", Offset = "0x513810", VA = "0x180514A10")] public static string Replace(string input, string pattern, string replacement) { return null; } /// In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string. Additional parameters specify options that modify the matching operation and a time-out interval if no match is found. /// The string to search for a match. /// The regular expression pattern to match. /// The replacement string. /// A bitwise combination of the enumeration values that provide options for matching. /// A time-out interval, or to indicate that the method should not time out. /// A new string that is identical to the input string, except that the replacement string takes the place of each matched string. If is not matched in the current instance, the method returns the current instance unchanged. /// A regular expression parsing error occurred. /// /// , , or is . /// /// is not a valid bitwise combination of values. /// -or- /// is negative, zero, or greater than approximately 24 days. /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x06000324 RID: 804 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000324")] [Address(RVA = "0x514B70", Offset = "0x513970", VA = "0x180514B70")] public static string Replace(string input, string pattern, string replacement, RegexOptions options, TimeSpan matchTimeout) { return null; } /// In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string. /// The string to search for a match. /// The replacement string. /// A new string that is identical to the input string, except that the replacement string takes the place of each matched string. If the regular expression pattern is not matched in the current instance, the method returns the current instance unchanged. /// /// or is . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x06000325 RID: 805 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000325")] [Address(RVA = "0x514960", Offset = "0x513760", VA = "0x180514960")] public string Replace(string input, string replacement) { return null; } /// In a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string. /// The string to search for a match. /// The replacement string. /// Maximum number of times the replacement can occur. /// The character position in the input string where the search begins. /// A new string that is identical to the input string, except that the replacement string takes the place of each matched string. If the regular expression pattern is not matched in the current instance, the method returns the current instance unchanged. /// /// or is . /// /// is less than zero or greater than the length of . /// A time-out occurred. For more information about time-outs, see the Remarks section. // Token: 0x06000326 RID: 806 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000326")] [Address(RVA = "0x514C90", Offset = "0x513A90", VA = "0x180514C90")] public string Replace(string input, string replacement, int count, int startat) { return null; } /// Used by a object generated by the method. /// References have already been initialized. // Token: 0x06000327 RID: 807 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6000327")] [Address(RVA = "0x5136E0", Offset = "0x5124E0", VA = "0x1805136E0")] protected void InitializeReferences() { } // Token: 0x06000328 RID: 808 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000328")] [Address(RVA = "0x514E50", Offset = "0x513C50", VA = "0x180514E50")] internal Match Run(bool quick, int prevlen, string input, int beginning, int length, int startat) { return null; } // Token: 0x06000329 RID: 809 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6000329")] [Address(RVA = "0x513C00", Offset = "0x512A00", VA = "0x180513C00")] private static CachedCodeEntry LookupCachedAndUpdate(string key) { return null; } // Token: 0x0600032A RID: 810 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600032A")] [Address(RVA = "0x512F70", Offset = "0x511D70", VA = "0x180512F70")] private CachedCodeEntry CacheCode(string key) { return null; } /// Used by a object generated by the method. /// /// if the property contains the option; otherwise, . // Token: 0x0600032B RID: 811 RVA: 0x00003378 File Offset: 0x00001578 [Token(Token = "0x600032B")] [Address(RVA = "0x515380", Offset = "0x514180", VA = "0x180515380")] protected bool UseOptionR() { return default(bool); } // Token: 0x0600032C RID: 812 RVA: 0x00003390 File Offset: 0x00001590 [Token(Token = "0x600032C")] [Address(RVA = "0x515370", Offset = "0x514170", VA = "0x180515370")] internal bool UseOptionInvariant() { return default(bool); } /// Used by a object generated by the method. // Token: 0x04000261 RID: 609 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4000261")] protected internal string pattern; /// Used by a object generated by the method. // Token: 0x04000262 RID: 610 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4000262")] protected internal RegexRunnerFactory factory; /// Used by a object generated by the method. // Token: 0x04000263 RID: 611 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4000263")] protected internal RegexOptions roptions; // Token: 0x04000264 RID: 612 [Token(Token = "0x4000264")] [NonSerialized] private static readonly TimeSpan MaximumMatchTimeout; /// Specifies that a pattern-matching operation should not time out. // Token: 0x04000265 RID: 613 [Token(Token = "0x4000265")] [NonSerialized] public static readonly TimeSpan InfiniteMatchTimeout; /// The maximum amount of time that can elapse in a pattern-matching operation before the operation times out. // Token: 0x04000266 RID: 614 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4000266")] [OptionalField] protected internal TimeSpan internalMatchTimeout; // Token: 0x04000267 RID: 615 [Token(Token = "0x4000267")] private const string DefaultMatchTimeout_ConfigKeyName = "REGEX_DEFAULT_MATCH_TIMEOUT"; // Token: 0x04000268 RID: 616 [Token(Token = "0x4000268")] [NonSerialized] internal static readonly TimeSpan FallbackDefaultMatchTimeout; // Token: 0x04000269 RID: 617 [Token(Token = "0x4000269")] [NonSerialized] internal static readonly TimeSpan DefaultMatchTimeout; /// Used by a object generated by the method. // Token: 0x0400026A RID: 618 [FieldOffset(Offset = "0x30")] [Token(Token = "0x400026A")] protected internal Hashtable caps; /// Used by a object generated by the method. // Token: 0x0400026B RID: 619 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400026B")] protected internal Hashtable capnames; /// Used by a object generated by the method. // Token: 0x0400026C RID: 620 [FieldOffset(Offset = "0x40")] [Token(Token = "0x400026C")] protected internal string[] capslist; /// Used by a object generated by the method. // Token: 0x0400026D RID: 621 [FieldOffset(Offset = "0x48")] [Token(Token = "0x400026D")] protected internal int capsize; // Token: 0x0400026E RID: 622 [FieldOffset(Offset = "0x50")] [Token(Token = "0x400026E")] internal ExclusiveReference runnerref; // Token: 0x0400026F RID: 623 [FieldOffset(Offset = "0x58")] [Token(Token = "0x400026F")] internal SharedReference replref; // Token: 0x04000270 RID: 624 [FieldOffset(Offset = "0x60")] [Token(Token = "0x4000270")] internal RegexCode code; // Token: 0x04000271 RID: 625 [FieldOffset(Offset = "0x68")] [Token(Token = "0x4000271")] internal bool refsInitialized; // Token: 0x04000272 RID: 626 [Token(Token = "0x4000272")] internal static LinkedList livecode; // Token: 0x04000273 RID: 627 [Token(Token = "0x4000273")] internal static int cacheSize; // Token: 0x04000274 RID: 628 [Token(Token = "0x4000274")] internal const int MaxOptionShift = 10; } }