SILUBS.ScriptureChecks.UnitTestTokenizer.GetCVNumber C# (CSharp) Method

GetCVNumber() private method

Return the text of a chapter or verse number starting at the specified offset.
private GetCVNumber ( string text, int offset ) : string
text string
offset int
return string
		private string GetCVNumber(string text, int offset)
		{
			while (offset < text.Length && char.IsWhiteSpace(text[offset]))
				++offset;

			int start = offset;

			while (offset < text.Length && !char.IsWhiteSpace(text[offset]) &&
					text[offset] != '\\')
				++offset;

			string num = text.Substring(start, offset - start);
			return num;
		}
	}