int[] AllRawIndexOf(string pattern, int startIndex, int endIndex) //all raw matches
{
ArrayList retval = new ArrayList();
int pos = code.IndexOf(pattern, startIndex, endIndex - startIndex);
while (pos != -1)
{
retval.Add(pos);
pos = code.IndexOf(pattern, pos + 1, endIndex - (pos + 1));
}
return (int[])retval.ToArray(typeof(int));
}
ArrayList stringRegions = new ArrayList();