35 lines
631 B
C#
35 lines
631 B
C#
![]() |
using System;
|
|||
|
|
|||
|
namespace CPF.ReoGrid.Formula
|
|||
|
{
|
|||
|
internal class STStringNode : STNode
|
|||
|
{
|
|||
|
internal string Text { get; set; }
|
|||
|
|
|||
|
public STStringNode(string input, int start, int len) : base(STNodeType.STRING, start, len)
|
|||
|
{
|
|||
|
bool flag = input != null;
|
|||
|
if (flag)
|
|||
|
{
|
|||
|
bool flag2 = input[start] == '"' || input[start] == '\'';
|
|||
|
if (flag2)
|
|||
|
{
|
|||
|
this.Text = input.Substring(start + 1, len - 2);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
this.Text = input.Substring(start, len);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public override object Clone()
|
|||
|
{
|
|||
|
return new STStringNode(null, base.Start, base.Length)
|
|||
|
{
|
|||
|
Text = this.Text
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|