\section{Kate\-Text\-Line Class Reference}
\label{classKateTextLine}\index{KateTextLine@{KateTextLine}}
The Kate\-Text\-Line represents a line of text.  


{\tt \#include $<$katetextline.h$>$}

Inheritance diagram for Kate\-Text\-Line:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKateTextLine__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for Kate\-Text\-Line:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=196pt]{classKateTextLine__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef {\bf KShared\-Ptr}$<$ {\bf Kate\-Text\-Line} $>$ {\bf Ptr}
\item 
enum {\bf Flags} \{ {\bf flag\-No\-Other\-Data} =  0x1, 
{\bf flag\-Hl\-Continue} =  0x2, 
{\bf flag\-Auto\-Wrapped} =  0x4, 
{\bf flag\-Folding\-Columns\-Outdated} = 0x8
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Kate\-Text\-Line} ()
\item 
{\bf $\sim$Kate\-Text\-Line} ()
\item 
void {\bf set\-Folding\-Columns\-Outdated} (bool set)
\item 
bool {\bf folding\-Columns\-Outdated} ()
\item 
uint {\bf length} () const 
\item 
bool {\bf hl\-Line\-Continue} () const 
\item 
bool {\bf is\-Auto\-Wrapped} () const 
\item 
int {\bf first\-Char} () const 
\item 
int {\bf last\-Char} () const 
\item 
int {\bf next\-Non\-Space\-Char} (uint pos) const 
\item 
int {\bf previous\-Non\-Space\-Char} (uint pos) const 
\item 
{\bf QChar} {\bf get\-Char} (uint pos) const 
\item 
const {\bf QChar} $\ast$ {\bf text} () const 
\item 
uchar $\ast$ {\bf attributes} () const 
\item 
const {\bf QString} \& {\bf string} () const 
\item 
{\bf QString} {\bf string} (uint start\-Col, uint length) const 
\item 
void {\bf string\-As\-Html} (uint start\-Col, uint length, {\bf Kate\-Renderer} $\ast$renderer, {\bf QText\-Stream} $\ast$output\-Stream) const 
\item 
void {\bf string\-As\-Html} ({\bf Kate\-Renderer} $\ast$renderer, {\bf QText\-Stream} $\ast$output\-Stream) const 
\item 
const {\bf QChar} $\ast$ {\bf first\-Non\-Space} () const 
\item 
uint {\bf indent\-Depth} (uint tabwidth) const 
\item 
int {\bf cursor\-X} (uint pos, uint tab\-Chars) const 
\item 
uint {\bf length\-With\-Tabs} (uint tab\-Chars) const 
\item 
bool {\bf string\-At\-Pos} (uint pos, const {\bf QString} \&match) const 
\item 
bool {\bf starting\-With} (const {\bf QString} \&match) const 
\item 
bool {\bf ending\-With} (const {\bf QString} \&match) const 
\item 
bool {\bf search\-Text} (uint start\-Col, const {\bf QString} \&text, uint $\ast$found\-At\-Col, uint $\ast$match\-Len, bool casesensitive=true, bool backwards=false)
\item 
bool {\bf search\-Text} (uint start\-Col, const {\bf QReg\-Exp} \&regexp, uint $\ast$found\-At\-Col, uint $\ast$match\-Len, bool backwards=false)
\item 
uchar {\bf attribute} (uint pos) const 
\item 
const {\bf QMem\-Array}$<$ short $>$ \& {\bf ctx\-Array} () const 
\item 
const {\bf QMem\-Array}$<$ uint $>$ \& {\bf folding\-List\-Array} () const 
\item 
const {\bf QMem\-Array}$<$ unsigned short $>$ \& {\bf indentation\-Depth\-Array} () const 
\item 
void {\bf insert\-Text} (uint pos, uint ins\-Len, const {\bf QChar} $\ast$ins\-Text, uchar $\ast$ins\-Attribs=0)
\item 
void {\bf remove\-Text} (uint pos, uint del\-Len)
\item 
void {\bf truncate} (uint new\-Len)
\item 
void {\bf set\-Hl\-Line\-Continue} (bool cont)
\item 
void {\bf set\-Auto\-Wrapped} (bool wrapped)
\item 
void {\bf set\-Context} ({\bf QMem\-Array}$<$ short $>$ \&val)
\item 
void {\bf set\-Folding\-List} ({\bf QMem\-Array}$<$ uint $>$ \&val)
\item 
void {\bf set\-Indentation\-Depth} ({\bf QMem\-Array}$<$ unsigned short $>$ \&val)
\item 
uint {\bf dump\-Size} (bool with\-Highlighting) const 
\item 
char $\ast$ {\bf dump} (char $\ast$buf, bool with\-Highlighting) const 
\item 
char $\ast$ {\bf restore} (char $\ast$buf)
\end{CompactItemize}


\subsection{Detailed Description}
The Kate\-Text\-Line represents a line of text. 

A text line that contains the text, an attribute for each character, an attribute for the free space behind the last character and a context number for the syntax highlight. The attribute stores the index to a table that contains fonts and colors and also if a character is selected. 



Definition at line 41 of file katetextline.h.

\subsection{Member Typedef Documentation}
\index{KateTextLine@{Kate\-Text\-Line}!Ptr@{Ptr}}
\index{Ptr@{Ptr}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf KShared\-Ptr}$<${\bf Kate\-Text\-Line}$>$ {\bf Kate\-Text\-Line::Ptr}}\label{classKateTextLine_w0}


Define a Shared-Pointer type. 



Definition at line 47 of file katetextline.h.

\subsection{Member Enumeration Documentation}
\index{KateTextLine@{Kate\-Text\-Line}!Flags@{Flags}}
\index{Flags@{Flags}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Kate\-Text\-Line::Flags}}\label{classKateTextLine_w5}


Used Flags. 



Definition at line 53 of file katetextline.h.

\subsection{Constructor \& Destructor Documentation}
\index{KateTextLine@{Kate\-Text\-Line}!KateTextLine@{KateTextLine}}
\index{KateTextLine@{KateTextLine}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Kate\-Text\-Line::Kate\-Text\-Line ()}\label{classKateTextLine_a0}


Constructor Creates an empty text line with given attribute and syntax highlight context. 



Definition at line 31 of file katetextline.cpp.\index{KateTextLine@{Kate\-Text\-Line}!~KateTextLine@{$\sim$KateTextLine}}
\index{~KateTextLine@{$\sim$KateTextLine}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Kate\-Text\-Line::$\sim${\bf Kate\-Text\-Line} ()}\label{classKateTextLine_a1}


Destructor. 



Definition at line 36 of file katetextline.cpp.

\subsection{Member Function Documentation}
\index{KateTextLine@{Kate\-Text\-Line}!setFoldingColumnsOutdated@{setFoldingColumnsOutdated}}
\index{setFoldingColumnsOutdated@{setFoldingColumnsOutdated}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::set\-Folding\-Columns\-Outdated (bool {\em set})\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a2}


Set the flag that only positions have changed, not folding region begins/ends themselve. 



Definition at line 81 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!foldingColumnsOutdated@{foldingColumnsOutdated}}
\index{foldingColumnsOutdated@{foldingColumnsOutdated}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::folding\-Columns\-Outdated ()\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a3}


folding columns outdated ? 

\begin{Desc}
\item[Returns:]folding columns outdated? \end{Desc}


Definition at line 88 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!length@{length}}
\index{length@{length}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint Kate\-Text\-Line::length () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a4}


Returns the length. 

\begin{Desc}
\item[Returns:]length of text in line \end{Desc}


Definition at line 95 of file katetextline.h.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!hlLineContinue@{hlLineContinue}}
\index{hlLineContinue@{hlLineContinue}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::hl\-Line\-Continue () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a5}


has the line the hl continue flag set 

\begin{Desc}
\item[Returns:]hl continue set? \end{Desc}


Definition at line 101 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!isAutoWrapped@{isAutoWrapped}}
\index{isAutoWrapped@{isAutoWrapped}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::is\-Auto\-Wrapped () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a6}


was this line automagically wrapped 

\begin{Desc}
\item[Returns:]line auto-wrapped \end{Desc}


Definition at line 107 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!firstChar@{firstChar}}
\index{firstChar@{firstChar}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Kate\-Text\-Line::first\-Char () const}\label{classKateTextLine_a7}


Returns the position of the first non-whitespace character. 

\begin{Desc}
\item[Returns:]position of first non-whitespace char or -1 if there is none \end{Desc}


Definition at line 136 of file katetextline.cpp.

References next\-Non\-Space\-Char().

Referenced by first\-Non\-Space().\index{KateTextLine@{Kate\-Text\-Line}!lastChar@{lastChar}}
\index{lastChar@{lastChar}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Kate\-Text\-Line::last\-Char () const}\label{classKateTextLine_a8}


Returns the position of the last non-whitespace character. 

\begin{Desc}
\item[Returns:]position of last non-whitespace char or -1 if there is none \end{Desc}


Definition at line 141 of file katetextline.cpp.

References QString::length(), and previous\-Non\-Space\-Char().\index{KateTextLine@{Kate\-Text\-Line}!nextNonSpaceChar@{nextNonSpaceChar}}
\index{nextNonSpaceChar@{nextNonSpaceChar}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Kate\-Text\-Line::next\-Non\-Space\-Char (uint {\em pos}) const}\label{classKateTextLine_a9}


Find the position of the next char that is not a space. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]Column of the character which is examined first. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]True if the specified or a following character is not a space Otherwise false. \end{Desc}


Definition at line 111 of file katetextline.cpp.

References QString::length().

Referenced by first\-Char().\index{KateTextLine@{Kate\-Text\-Line}!previousNonSpaceChar@{previousNonSpaceChar}}
\index{previousNonSpaceChar@{previousNonSpaceChar}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Kate\-Text\-Line::previous\-Non\-Space\-Char (uint {\em pos}) const}\label{classKateTextLine_a10}


Find the position of the previous char that is not a space. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]Column of the character which is examined first. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The position of the first none-whitespace character preceeding pos, or -1 if none is found. \end{Desc}


Definition at line 122 of file katetextline.cpp.

References QString::length().

Referenced by last\-Char().\index{KateTextLine@{Kate\-Text\-Line}!getChar@{getChar}}
\index{getChar@{getChar}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QChar} Kate\-Text\-Line::get\-Char (uint {\em pos}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a11}


Gets the char at the given position. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]position \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]character at the given position or QChar::null if position is beyond the length of the string \end{Desc}


Definition at line 143 of file katetextline.h.

Referenced by string\-As\-Html().\index{KateTextLine@{Kate\-Text\-Line}!text@{text}}
\index{text@{text}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QChar}$\ast$ Kate\-Text\-Line::text () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a12}


Gets the text as a unicode representation. 

\begin{Desc}
\item[Returns:]text of this line as {\bf QChar} array \end{Desc}


Definition at line 149 of file katetextline.h.

References QString::unicode().

Referenced by search\-Text().\index{KateTextLine@{Kate\-Text\-Line}!attributes@{attributes}}
\index{attributes@{attributes}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uchar$\ast$ Kate\-Text\-Line::attributes () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a13}


Highlighting array The size of this is {\bf string()}{\rm (p.\,\pageref{classKateTextLine_a14})}.{\bf length()}{\rm (p.\,\pageref{classKateTextLine_a4})}. 

This contains the index for the attributes (so you can only have a maximum of 2$^\wedge$8 different highlighting styles in a document)

To turn this into actual attributes (bold, green, etc), you need to feed these values into KRenderer::attributes

e.g: m\_\-renderer-$>$attributes(attributes[3]);

\begin{Desc}
\item[Returns:]hl-attributes array \end{Desc}


Definition at line 165 of file katetextline.h.

References QMem\-Array::data().\index{KateTextLine@{Kate\-Text\-Line}!string@{string}}
\index{string@{string}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& Kate\-Text\-Line::string () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a14}


Gets a {\bf QString}. 

\begin{Desc}
\item[Returns:]text of line as {\bf QString} reference \end{Desc}


Definition at line 171 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!string@{string}}
\index{string@{string}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Kate\-Text\-Line::string (uint {\em start\-Col}, uint {\em length}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a15}


Gets a substring. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Col}]start column of substring \item[{\em length}]length of substring \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]wanted substring \end{Desc}


Definition at line 179 of file katetextline.h.

References QString::mid().\index{KateTextLine@{Kate\-Text\-Line}!stringAsHtml@{stringAsHtml}}
\index{stringAsHtml@{stringAsHtml}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::string\-As\-Html (uint {\em start\-Col}, uint {\em length}, {\bf Kate\-Renderer} $\ast$ {\em renderer}, {\bf QText\-Stream} $\ast$ {\em output\-Stream}) const}\label{classKateTextLine_a16}


Gets a substring in valid-xml html. 

Example: \char`\"{}$<$b$>$const$<$/b$>$ b = $<$i$>$34$<$/i$>$\char`\"{} It won't contain 

or $<$body$>$ or $<$html$>$ or anything like that.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Col}]start column of substring \item[{\em length}]length of substring \item[{\em renderer}]The katerenderer. This will have the schema information that describes how to render the attributes. \item[{\em output\-Stream}]A stream to write the html to \end{description}
\end{Desc}


Definition at line 411 of file katetextline.cpp.

References attribute(), Kate\-Attribute::bold(), QStyle\-Sheet::escape(), get\-Char(), Kate\-Attribute::italic(), QString::number(), QColor::rgb(), and Kate\-Attribute::text\-Color().

Referenced by string\-As\-Html().\index{KateTextLine@{Kate\-Text\-Line}!stringAsHtml@{stringAsHtml}}
\index{stringAsHtml@{stringAsHtml}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::string\-As\-Html ({\bf Kate\-Renderer} $\ast$ {\em renderer}, {\bf QText\-Stream} $\ast$ {\em output\-Stream}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a17}


Gets the string a valid-xml html. 

Overloaded version of string\-As\-Html

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em renderer}]The katerenderer. This will have the schema information that describes how to render the attributes. \item[{\em output\-Stream}]A stream to write the html to \end{description}
\end{Desc}


Definition at line 205 of file katetextline.h.

References QString::length(), and string\-As\-Html().\index{KateTextLine@{Kate\-Text\-Line}!firstNonSpace@{firstNonSpace}}
\index{firstNonSpace@{firstNonSpace}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QChar} $\ast$ Kate\-Text\-Line::first\-Non\-Space () const}\label{classKateTextLine_a18}


Gets a null terminated pointer to first non space char. 

\begin{Desc}
\item[Returns:]array of QChars starting at first non-whitespace char \end{Desc}


Definition at line 146 of file katetextline.cpp.

References first\-Char(), and QString::unicode().\index{KateTextLine@{Kate\-Text\-Line}!indentDepth@{indentDepth}}
\index{indentDepth@{indentDepth}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint Kate\-Text\-Line::indent\-Depth (uint {\em tabwidth}) const}\label{classKateTextLine_a19}


indentation depth of this line 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tabwidth}]width of the tabulators \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]indentation width \end{Desc}


Definition at line 152 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!cursorX@{cursorX}}
\index{cursorX@{cursorX}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Kate\-Text\-Line::cursor\-X (uint {\em pos}, uint {\em tab\-Chars}) const}\label{classKateTextLine_a20}


Returns the x position of the cursor at the given position, which depends on the number of tab characters. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]position in chars \item[{\em tab\-Chars}]tabulator width in chars \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]position with tabulators calculated \end{Desc}


Definition at line 209 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!lengthWithTabs@{lengthWithTabs}}
\index{lengthWithTabs@{lengthWithTabs}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint Kate\-Text\-Line::length\-With\-Tabs (uint {\em tab\-Chars}) const}\label{classKateTextLine_a21}


Returns the text length with tabs calced in. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tab\-Chars}]tabulator width in chars \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]text length \end{Desc}


Definition at line 225 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!stringAtPos@{stringAtPos}}
\index{stringAtPos@{stringAtPos}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::string\-At\-Pos (uint {\em pos}, const {\bf QString} \& {\em match}) const}\label{classKateTextLine_a22}


Can we find the given string at the given position. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]startpostion of given string \item[{\em match}]string to match at given pos \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]did the string match? \end{Desc}


Definition at line 172 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!startingWith@{startingWith}}
\index{startingWith@{startingWith}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::starting\-With (const {\bf QString} \& {\em match}) const}\label{classKateTextLine_a23}


Is the line starting with the given string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em match}]string to test \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]does line start with given string? \end{Desc}


Definition at line 184 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!endingWith@{endingWith}}
\index{endingWith@{endingWith}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::ending\-With (const {\bf QString} \& {\em match}) const}\label{classKateTextLine_a24}


Is the line ending with the given string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em match}]string to test \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]does the line end with given string? \end{Desc}


Definition at line 196 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!searchText@{searchText}}
\index{searchText@{searchText}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::search\-Text (uint {\em start\-Col}, const {\bf QString} \& {\em text}, uint $\ast$ {\em found\-At\-Col}, uint $\ast$ {\em match\-Len}, bool {\em casesensitive} = {\tt true}, bool {\em backwards} = {\tt false})}\label{classKateTextLine_a25}


search given string 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Col}]column to start search \item[{\em text}]string to search for \item[{\em found\-At\-Col}]column where text was found \item[{\em match\-Len}]length of matching \item[{\em casesensitive}]should search be case-sensitive \item[{\em backwards}]search backwards? \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]string found? \end{Desc}


Definition at line 240 of file katetextline.cpp.

References QString::find(), QString::find\-Rev(), QString::length(), and text().\index{KateTextLine@{Kate\-Text\-Line}!searchText@{searchText}}
\index{searchText@{searchText}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Text\-Line::search\-Text (uint {\em start\-Col}, const {\bf QReg\-Exp} \& {\em regexp}, uint $\ast$ {\em found\-At\-Col}, uint $\ast$ {\em match\-Len}, bool {\em backwards} = {\tt false})}\label{classKateTextLine_a26}


search given regexp 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Col}]column to start search \item[{\em regexp}]regex to search for \item[{\em found\-At\-Col}]column where text was found \item[{\em match\-Len}]length of matching \item[{\em backwards}]search backwards? \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]regexp found? \end{Desc}


Definition at line 271 of file katetextline.cpp.

References QString::length().\index{KateTextLine@{Kate\-Text\-Line}!attribute@{attribute}}
\index{attribute@{attribute}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uchar Kate\-Text\-Line::attribute (uint {\em pos}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a27}


Gets the attribute at the given position use KRenderer::attributes to get the KText\-Attribute for this. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]position of attribute requested \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]value of attribute \end{Desc}
\begin{Desc}
\item[See also:]{\bf attributes}{\rm (p.\,\pageref{classKateTextLine_a13})} \end{Desc}


Definition at line 295 of file katetextline.h.

References QMem\-Array::size().

Referenced by string\-As\-Html().\index{KateTextLine@{Kate\-Text\-Line}!ctxArray@{ctxArray}}
\index{ctxArray@{ctxArray}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QMem\-Array}$<$short$>$\& Kate\-Text\-Line::ctx\-Array () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a28}


context stack 

\begin{Desc}
\item[Returns:]context stack \end{Desc}


Definition at line 305 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!foldingListArray@{foldingListArray}}
\index{foldingListArray@{foldingListArray}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QMem\-Array}$<$uint$>$\& Kate\-Text\-Line::folding\-List\-Array () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a29}


folding list 

\begin{Desc}
\item[Returns:]folding array \end{Desc}


Definition at line 311 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!indentationDepthArray@{indentationDepthArray}}
\index{indentationDepthArray@{indentationDepthArray}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QMem\-Array}$<$unsigned short$>$\& Kate\-Text\-Line::indentation\-Depth\-Array () const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a30}


indentation stack 

\begin{Desc}
\item[Returns:]indentation array \end{Desc}


Definition at line 317 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!insertText@{insertText}}
\index{insertText@{insertText}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::insert\-Text (uint {\em pos}, uint {\em ins\-Len}, const {\bf QChar} $\ast$ {\em ins\-Text}, uchar $\ast$ {\em ins\-Attribs} = {\tt 0})}\label{classKateTextLine_a31}


insert text into line 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]insert position \item[{\em ins\-Len}]insert length \item[{\em ins\-Text}]text to insert \item[{\em ins\-Attribs}]attributes for the insert text \end{description}
\end{Desc}


Definition at line 40 of file katetextline.cpp.

References QString::insert(), QString::length(), and QMem\-Array::resize().\index{KateTextLine@{Kate\-Text\-Line}!removeText@{removeText}}
\index{removeText@{removeText}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::remove\-Text (uint {\em pos}, uint {\em del\-Len})}\label{classKateTextLine_a32}


remove text at given position 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]start position of remove \item[{\em del\-Len}]length to remove \end{description}
\end{Desc}


Definition at line 77 of file katetextline.cpp.

References QString::length(), QString::remove(), and QMem\-Array::resize().\index{KateTextLine@{Kate\-Text\-Line}!truncate@{truncate}}
\index{truncate@{truncate}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::truncate (uint {\em new\-Len})}\label{classKateTextLine_a33}


Truncates the textline to the new length. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em new\-Len}]new length of line \end{description}
\end{Desc}


Definition at line 102 of file katetextline.cpp.

References QString::length(), QMem\-Array::truncate(), and QString::truncate().\index{KateTextLine@{Kate\-Text\-Line}!setHlLineContinue@{setHlLineContinue}}
\index{setHlLineContinue@{setHlLineContinue}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::set\-Hl\-Line\-Continue (bool {\em cont})\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a34}


set hl continue flag 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cont}]continue flag? \end{description}
\end{Desc}


Definition at line 345 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!setAutoWrapped@{setAutoWrapped}}
\index{setAutoWrapped@{setAutoWrapped}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::set\-Auto\-Wrapped (bool {\em wrapped})\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a35}


auto-wrapped 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em wrapped}]line was wrapped? \end{description}
\end{Desc}


Definition at line 355 of file katetextline.h.\index{KateTextLine@{Kate\-Text\-Line}!setContext@{setContext}}
\index{setContext@{setContext}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::set\-Context ({\bf QMem\-Array}$<$ short $>$ \& {\em val})\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a36}


Sets the syntax highlight context number. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]new context array \end{description}
\end{Desc}


Definition at line 365 of file katetextline.h.

References QMem\-Array::assign().\index{KateTextLine@{Kate\-Text\-Line}!setFoldingList@{setFoldingList}}
\index{setFoldingList@{setFoldingList}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::set\-Folding\-List ({\bf QMem\-Array}$<$ uint $>$ \& {\em val})\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a37}


update folding list 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]new folding list \end{description}
\end{Desc}


Definition at line 371 of file katetextline.h.

References QMem\-Array::assign(), and QMem\-Array::detach().\index{KateTextLine@{Kate\-Text\-Line}!setIndentationDepth@{setIndentationDepth}}
\index{setIndentationDepth@{setIndentationDepth}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Text\-Line::set\-Indentation\-Depth ({\bf QMem\-Array}$<$ unsigned short $>$ \& {\em val})\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a38}


update indentation stack 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]new indentation stack \end{description}
\end{Desc}


Definition at line 377 of file katetextline.h.

References QMem\-Array::assign().\index{KateTextLine@{Kate\-Text\-Line}!dumpSize@{dumpSize}}
\index{dumpSize@{dumpSize}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint Kate\-Text\-Line::dump\-Size (bool {\em with\-Highlighting}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKateTextLine_a39}


Dumpsize in bytes. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em with\-Highlighting}]should we dump the hl, too? \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]size of line for dumping \end{Desc}


Definition at line 388 of file katetextline.h.

References QString::length(), and QMem\-Array::size().\index{KateTextLine@{Kate\-Text\-Line}!dump@{dump}}
\index{dump@{dump}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ Kate\-Text\-Line::dump (char $\ast$ {\em buf}, bool {\em with\-Highlighting}) const}\label{classKateTextLine_a40}


Dumps the line to $\ast$buf and counts buff dump\-Size bytes up as return value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]buffer to dump to \item[{\em with\-Highlight}]dump hl data, too? \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]buffer index after dumping \end{Desc}


Definition at line 302 of file katetextline.cpp.

References QMem\-Array::data(), QString::length(), QMem\-Array::size(), and QString::unicode().\index{KateTextLine@{Kate\-Text\-Line}!restore@{restore}}
\index{restore@{restore}!KateTextLine@{Kate\-Text\-Line}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ Kate\-Text\-Line::restore (char $\ast$ {\em buf})}\label{classKateTextLine_a41}


Restores the line from $\ast$buf and counts buff dump\-Size bytes up as return value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]buffer to restore from \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]buffer index after restoring \end{Desc}


Definition at line 350 of file katetextline.cpp.

References QMem\-Array::duplicate(), QMem\-Array::fill(), and QString::set\-Unicode().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
katetextline.h\item 
katetextline.cpp\end{CompactItemize}
