Kate
katetextloader.h
Go to the documentation of this file.
118 bool eof () const { return m_eof && !m_lastWasEndOfLine && (m_lastLineStart == m_text.length()); }
246 QString unicode = m_codec->toUnicode (m_buffer.constData() + bomBytes, c - bomBytes, m_converterState);
Definition: katetextbuffer.h:63
QString & append(QChar ch)
TextBuffer::EndOfLineMode eol() const
Detected end of line mode for this file.
Definition: katetextloader.h:125
Definition: katetextbuffer.h:62
int size() const
QString & remove(int position, int n)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual void close()
void clear()
const char * constData() const
void addData(const char *data, int length)
qint64 read(char *data, qint64 maxSize)
bool isOpen() const
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
TextLoader(const QString &filename, KEncodingProber::ProberType proberType)
Construct file loader for given file.
Definition: katetextloader.h:52
static const qint64 KATE_FILE_LOADER_BS
loader block size, load 256 kb at once per default if file size is smaller, fall back to file size mu...
Definition: katetextloader.h:39
const QChar * unicode() const
Definition: katetextbuffer.h:61
Definition: katetextbuffer.h:60
bool readLine(int &offset, int &length)
read a line, return length + offset in unicode data
Definition: katetextloader.h:157
const QChar at(int position) const
const QString & mimeTypeForFilterDev() const
mime type used to create filter dev
Definition: katetextloader.h:137
QTextCodec * codecForName(const QByteArray &name)
int length() const
char * data()
QByteArray result() const
File Loader, will handle reading of files + detecting encoding.
Definition: katetextloader.h:44
int size() const
QString toUnicode(const QByteArray &a) const
QTextCodec * codecForUtfText(const QByteArray &ba)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.