This commit is contained in:
2014-11-17 00:24:51 +01:00
commit 05390b4bdd
26 changed files with 14585 additions and 0 deletions

62
CobXmlSupport/RowWord.cs Normal file
View File

@ -0,0 +1,62 @@
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;
}
}
}