scripts
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
|
||||
namespace System.Text.RegularExpressions
|
||||
{
|
||||
/// <summary>Represents the results from a single capturing group. </summary>
|
||||
// Token: 0x020002AD RID: 685
|
||||
[Serializable]
|
||||
public class Group : Capture
|
||||
{
|
||||
// Token: 0x060018FE RID: 6398 RVA: 0x00055A90 File Offset: 0x00053C90
|
||||
internal Group(string text, int index, int length, int n_caps)
|
||||
: base(text, index, length)
|
||||
{
|
||||
this.success = true;
|
||||
this.captures = new CaptureCollection(n_caps);
|
||||
this.captures.SetValue(this, n_caps - 1);
|
||||
}
|
||||
|
||||
// Token: 0x060018FF RID: 6399 RVA: 0x00055AC0 File Offset: 0x00053CC0
|
||||
internal Group(string text, int index, int length)
|
||||
: base(text, index, length)
|
||||
{
|
||||
this.success = true;
|
||||
}
|
||||
|
||||
// Token: 0x06001900 RID: 6400 RVA: 0x00055AD4 File Offset: 0x00053CD4
|
||||
internal Group()
|
||||
: base(string.Empty)
|
||||
{
|
||||
this.success = false;
|
||||
this.captures = new CaptureCollection(0);
|
||||
}
|
||||
|
||||
/// <summary>Returns a Group object equivalent to the one supplied that is safe to share between multiple threads.</summary>
|
||||
/// <returns>A regular expression Group object. </returns>
|
||||
/// <param name="inner">The input <see cref="T:System.Text.RegularExpressions.Group" /> object.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="inner" /> is null.</exception>
|
||||
// Token: 0x06001902 RID: 6402 RVA: 0x00055B00 File Offset: 0x00053D00
|
||||
[global::System.MonoTODO("not thread-safe")]
|
||||
public static Group Synchronized(Group inner)
|
||||
{
|
||||
if (inner == null)
|
||||
{
|
||||
throw new ArgumentNullException("inner");
|
||||
}
|
||||
return inner;
|
||||
}
|
||||
|
||||
/// <summary>Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the <see cref="F:System.Text.RegularExpressions.RegexOptions.RightToLeft" /> option). The collection may have zero or more items.</summary>
|
||||
/// <returns>The collection of substrings matched by the group.</returns>
|
||||
// Token: 0x170007D6 RID: 2006
|
||||
// (get) Token: 0x06001903 RID: 6403 RVA: 0x00055B14 File Offset: 0x00053D14
|
||||
public CaptureCollection Captures
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.captures;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether the match is successful.</summary>
|
||||
/// <returns>true if the match is successful; otherwise, false.</returns>
|
||||
// Token: 0x170007D7 RID: 2007
|
||||
// (get) Token: 0x06001904 RID: 6404 RVA: 0x00055B1C File Offset: 0x00053D1C
|
||||
public bool Success
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.success;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040013C6 RID: 5062
|
||||
internal static Group Fail = new Group();
|
||||
|
||||
// Token: 0x040013C7 RID: 5063
|
||||
private bool success;
|
||||
|
||||
// Token: 0x040013C8 RID: 5064
|
||||
private CaptureCollection captures;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user