scripts
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
using System;
|
||||
|
||||
namespace System.Text.RegularExpressions.Syntax
|
||||
{
|
||||
// Token: 0x020002E5 RID: 741
|
||||
internal class Literal : Expression
|
||||
{
|
||||
// Token: 0x06001AE7 RID: 6887 RVA: 0x000631C0 File Offset: 0x000613C0
|
||||
public Literal(string str, bool ignore)
|
||||
{
|
||||
this.str = str;
|
||||
this.ignore = ignore;
|
||||
}
|
||||
|
||||
// Token: 0x17000838 RID: 2104
|
||||
// (get) Token: 0x06001AE8 RID: 6888 RVA: 0x000631D8 File Offset: 0x000613D8
|
||||
// (set) Token: 0x06001AE9 RID: 6889 RVA: 0x000631E0 File Offset: 0x000613E0
|
||||
public string String
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.str = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000839 RID: 2105
|
||||
// (get) Token: 0x06001AEA RID: 6890 RVA: 0x000631EC File Offset: 0x000613EC
|
||||
// (set) Token: 0x06001AEB RID: 6891 RVA: 0x000631F4 File Offset: 0x000613F4
|
||||
public bool IgnoreCase
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ignore;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ignore = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001AEC RID: 6892 RVA: 0x00063200 File Offset: 0x00061400
|
||||
public static void CompileLiteral(string str, ICompiler cmp, bool ignore, bool reverse)
|
||||
{
|
||||
if (str.Length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (str.Length == 1)
|
||||
{
|
||||
cmp.EmitCharacter(str[0], false, ignore, reverse);
|
||||
}
|
||||
else
|
||||
{
|
||||
cmp.EmitString(str, ignore, reverse);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001AED RID: 6893 RVA: 0x00063244 File Offset: 0x00061444
|
||||
public override void Compile(ICompiler cmp, bool reverse)
|
||||
{
|
||||
Literal.CompileLiteral(this.str, cmp, this.ignore, reverse);
|
||||
}
|
||||
|
||||
// Token: 0x06001AEE RID: 6894 RVA: 0x0006325C File Offset: 0x0006145C
|
||||
public override void GetWidth(out int min, out int max)
|
||||
{
|
||||
min = (max = this.str.Length);
|
||||
}
|
||||
|
||||
// Token: 0x06001AEF RID: 6895 RVA: 0x0006327C File Offset: 0x0006147C
|
||||
public override AnchorInfo GetAnchorInfo(bool reverse)
|
||||
{
|
||||
return new AnchorInfo(this, 0, this.str.Length, this.str, this.ignore);
|
||||
}
|
||||
|
||||
// Token: 0x06001AF0 RID: 6896 RVA: 0x0006329C File Offset: 0x0006149C
|
||||
public override bool IsComplex()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x040015BD RID: 5565
|
||||
private string str;
|
||||
|
||||
// Token: 0x040015BE RID: 5566
|
||||
private bool ignore;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user