This commit is contained in:
chudov
2009-05-10 18:34:49 +00:00
parent 7d538d752e
commit 00c229caad
5 changed files with 138 additions and 85 deletions

View File

@@ -837,6 +837,8 @@ namespace JDP {
private static int WordLength(string text, int pos)
{
if (pos >= text.Length)
return 1;
if ((text[pos] >= 'a' && text[pos] <= 'z') ||
(text[pos] >= 'A' && text[pos] <= 'Z') ||
(text[pos] == '_'))