public static final int endOfParagraph(byte[] b, int start) {int ptr = start;final int sz = b.length;while (ptr < sz && (b[ptr] != '\n' && b[ptr] != '\r'))ptr = nextLF(b, ptr);if (ptr > start && b[ptr - 1] == '\n')ptr--;if (ptr > start && b[ptr - 1] == '\r')ptr--;return ptr;}

public static int EndOfParagraph(byte[] b, int start){int ptr = start;int sz = b.Length;while (ptr < sz && b[ptr] != '\n'){ptr = NextLF(b, ptr);}while (0 < ptr && start < ptr && b[ptr - 1] == '\n'){ptr--;}return ptr;}
