57 lines
1.3 KiB
C#
57 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace System.Text.RegularExpressions.Syntax
|
|
{
|
|
// Token: 0x020002DC RID: 732
|
|
internal class RegularExpression : Group
|
|
{
|
|
// Token: 0x06001AAD RID: 6829 RVA: 0x000628FC File Offset: 0x00060AFC
|
|
public RegularExpression()
|
|
{
|
|
this.group_count = 0;
|
|
}
|
|
|
|
// Token: 0x17000827 RID: 2087
|
|
// (get) Token: 0x06001AAE RID: 6830 RVA: 0x0006290C File Offset: 0x00060B0C
|
|
// (set) Token: 0x06001AAF RID: 6831 RVA: 0x00062914 File Offset: 0x00060B14
|
|
public int GroupCount
|
|
{
|
|
get
|
|
{
|
|
return this.group_count;
|
|
}
|
|
set
|
|
{
|
|
this.group_count = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001AB0 RID: 6832 RVA: 0x00062920 File Offset: 0x00060B20
|
|
public override void Compile(ICompiler cmp, bool reverse)
|
|
{
|
|
int num;
|
|
int num2;
|
|
this.GetWidth(out num, out num2);
|
|
cmp.EmitInfo(this.group_count, num, num2);
|
|
AnchorInfo anchorInfo = this.GetAnchorInfo(reverse);
|
|
LinkRef linkRef = cmp.NewLink();
|
|
cmp.EmitAnchor(reverse, anchorInfo.Offset, linkRef);
|
|
if (anchorInfo.IsPosition)
|
|
{
|
|
cmp.EmitPosition(anchorInfo.Position);
|
|
}
|
|
else if (anchorInfo.IsSubstring)
|
|
{
|
|
cmp.EmitString(anchorInfo.Substring, anchorInfo.IgnoreCase, reverse);
|
|
}
|
|
cmp.EmitTrue();
|
|
cmp.ResolveLink(linkRef);
|
|
base.Compile(cmp, reverse);
|
|
cmp.EmitTrue();
|
|
}
|
|
|
|
// Token: 0x040015B1 RID: 5553
|
|
private int group_count;
|
|
}
|
|
}
|