} return lineCnt;
} return lineCount;
int lineCount(int startOffset, int length){	if (length == 0) {		return 0;	}	int lineCnt = 0;	int count = 0;	int i = startOffset;	if (i >= gapStart) {		i += gapEnd - gapStart;	}	while (count < length) {		if ((i >= gapStart) && (i < gapEnd)) {			// ignore the gap		} else {			char ch = textStore[i];						if (ch == SWT.CR) {				// see if the next character is a LF				if (i + 1 < textStore.length) {					ch = textStore[i+1];					if (ch == SWT.LF) {						i++;						count++;					} 				} 				lineCnt++;			} else if (ch == SWT.LF) {				lineCnt++;			}			count++;		}		i++;	}				return lineCnt;}