protected int completeLineComment(TokenizerProperty prop) throws TokenizerException {
    String[]  images = prop.getImages();
    int       len    = images[0].length();

    while (_currentReadPos + len < _currentWritePos || readMoreDataFromBase() > 0) {
      switch (getChar(_currentReadPos + len)) {
      case '\r':
        len++;
        if (_currentReadPos + len < _currentWritePos || readMoreDataFromBase() > 0) {
          if (getChar(_currentReadPos + len) == '\n') {
            len++;
          }
        }
        return len;
      case '\n':
        len++;      
        return len;
      default:
        len++;
      }
    }
    return len;
  }