int (int offset) { int pos = offset; while (pos < myBufferEndOffset) { char c = locateCharAt(pos); pos += mySymbolLength; if (c == '*' && pos < myBufferEndOffset && locateCharAt(pos) == '/') break; } return pos + mySymbolLength; }