Absinthe.Core.ParsePage.SplitByString(string, string)

Here are the examples of the csharp api class Absinthe.Core.ParsePage.SplitByString(string, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: Absinthe
Source File: ParsePage.cs
View license
public static double[] GetHtmlPageSignature(string HtmlPage, string Delimiter)
		{
			string[] PageStringArray;
			List<double> SumArray = new List<double>();
			int Sum;

			PageStringArray = SplitByString(HtmlPage, Delimiter);

			for (int i = 0; i < PageStringArray.Length; i++)
			{
				int j = 0;
				char[] LineArray = PageStringArray[i].ToCharArray();

				Sum = 0;
				while (j < PageStringArray[i].Length)
				{
					Sum += LineArray[j];
					j++;
				}
				SumArray.Add(double.Parse(Sum.ToString()));
			}

			return SumArray.ToArray();
		}