63 lines
1.3 KiB
C#
63 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Diagnostics;
|
|
|
|
namespace CobXmlSupport
|
|
{
|
|
public class RowWord
|
|
{
|
|
private string __wordSource;
|
|
private int __startPos;
|
|
private int __length;
|
|
private bool __quoted;
|
|
|
|
public RowWord(string wordSource, int strtPos,bool quoted)
|
|
{
|
|
__startPos = strtPos;
|
|
__wordSource = wordSource;
|
|
__length = __wordSource.Length;
|
|
__quoted = quoted;
|
|
//Debug.WriteLine(strtPos.ToString("00") + " " + wordSource);
|
|
}
|
|
|
|
public int startPos
|
|
{
|
|
get { return __startPos; }
|
|
set { __startPos = value; }
|
|
}
|
|
|
|
|
|
public int length
|
|
{
|
|
get { return __length; }
|
|
}
|
|
|
|
public bool isQuoted
|
|
{
|
|
get { return __quoted; }
|
|
}
|
|
|
|
public bool isComment
|
|
{
|
|
get {
|
|
return (this.__wordSource.StartsWith("*>") || this.__wordSource.StartsWith("*"));
|
|
}
|
|
}
|
|
|
|
public int endPos
|
|
{
|
|
get { return __startPos+__length-1; }
|
|
}
|
|
|
|
public string ToString()
|
|
{
|
|
return __wordSource;
|
|
}
|
|
|
|
|
|
}
|
|
}
|