<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> <head> <title>kate: KateTextLine Class Reference (kate)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <div id="nav_header_title" align="left">KDE API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_right" style="text-align: left;"> / <a href="../..">API Reference</a> / <a href=".">kate</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <a name="content"></a> <!-- Generated by Doxygen 1.7.4 --> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">KateTextLine Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="KateTextLine" --><!-- doxytag: inherits="KShared" --> <p>The <a class="el" href="classKateTextLine.html" title="The KateTextLine represents a line of text.">KateTextLine</a> represents a line of text. <a href="classKateTextLine.html#details">More...</a></p> <p><code>#include <<a class="el" href="katetextline_8h_source.html">katetextline.h</a>></code></p> <div class="dynheader"> Inheritance diagram for KateTextLine:</div> <div class="dyncontent"> <div class="center"> <img src="classKateTextLine.png" usemap="#KateTextLine_map" alt=""/> <map id="KateTextLine_map" name="KateTextLine_map"> <area doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKShared.html" alt="KShared" shape="rect" coords="0,0,84,24"/> </map> </div></div> <p><a href="classKateTextLine-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a091a298f3c9fb048e47eb2141545fa69">Flags</a> { <br/>   <b>flagNoOtherData</b> = 1, <b>flagHlContinue</b> = 2, <b>flagAutoWrapped</b> = 4, <b>flagFoldingColumnsOutdated</b> = 8, <br/>   <b>flagNoIndentationBasedFolding</b> = 16, <b>flagNoIndentationBasedFoldingAtStart</b> = 32 <br/> }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKSharedPtr.html">KSharedPtr</a>< <a class="el" href="classKateTextLine.html">KateTextLine</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a885ffc06d0ec9f4a4b45491dc434fc03">Ptr</a></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a92d05e01c751dd48730abc75183b5eb3">KateTextLine</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#abe766f14675511b12c1bab4bddea49ae">~KateTextLine</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a42534f8f5bfa9ffc529f8e652204d573">setFoldingColumnsOutdated</a> (bool set)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a649a5c7c079544b329aa657100da279f">foldingColumnsOutdated</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a0de7e5208c832129e968bc9d40e2813f">length</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ab7d550542974efdc54824e6216ffdd4e">hlLineContinue</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#afcd08bba9031e8b9babb1c402264ee5b">isAutoWrapped</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a6258d6b9ab9c478687cd53e331058911">firstChar</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a4e51c66b81d23f7af5623b3849c0a77c">lastChar</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#aeed4be9b9b25c963291e6fb68957eb3a">nextNonSpaceChar</a> (uint pos) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#aed10dacecfde0a827d8d3849ee4535ec">previousNonSpaceChar</a> (uint pos) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qchar.html">QChar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a59fe14d55fba04925cf275d2f3d51c3c">getChar</a> (uint pos) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qchar.html">QChar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a4160ed7578dc159706ea45a51ba693e4">text</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">uchar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a2c057a281b2c86b874305b0ecb77cd2e">attributes</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qstring.html">QString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a648073639993399eb479323d90221f02">string</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ae32b8c6254b68a2b9a5fb39ab8c43128">string</a> (uint startCol, uint length) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qchar.html">QChar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a8fc6a638a8088a5a061a668f04b591b1">firstNonSpace</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a23933aee94b1e068d516395576c8b48e">indentDepth</a> (uint tabwidth) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ab1ddf55dab4762640f101153d9f23c44">cursorX</a> (uint pos, uint tabChars) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ac95406e6a00f1ff76eb18816e31877dc">lengthWithTabs</a> (uint tabChars) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#af6c331fd84c13bbbe156951d1785d7f8">stringAtPos</a> (uint pos, const <a class="elRef" href="qstring.html">QString</a> &match) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a35ac9baf650dcc967f29336d9d39446c">startingWith</a> (const <a class="elRef" href="qstring.html">QString</a> &match) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#acac0c923a66ccee5fb81da7758d7894a">endingWith</a> (const <a class="elRef" href="qstring.html">QString</a> &match) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#af05fb278af3b9ec96c276b3cf42daadf">searchText</a> (uint startCol, const <a class="elRef" href="qstring.html">QString</a> &text, uint *foundAtCol, uint *matchLen, bool casesensitive=true, bool backwards=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a7b8facc98015162c302b252ca834ed69">searchText</a> (uint startCol, const <a class="elRef" href="qregexp.html">QRegExp</a> &regexp, uint *foundAtCol, uint *matchLen, bool backwards=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">uchar </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ab9d12604235ce2e0ec4135800d4ba938">attribute</a> (uint pos) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qmemarray.html">QMemArray</a>< short > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#aa26fb6952e140ddcf985dfb6b1be6c6e">ctxArray</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a3c5387e57c1f471fc41d21552adc579e">noIndentBasedFolding</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23a0f28b3dc71fb2c7902cd3476d76bb"></a><!-- doxytag: member="KateTextLine::noIndentBasedFoldingAtStart" ref="a23a0f28b3dc71fb2c7902cd3476d76bb" args="() const " --> const bool </td><td class="memItemRight" valign="bottom"><b>noIndentBasedFoldingAtStart</b> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qmemarray.html">QMemArray</a>< uint > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a8f28beb30ad3f35a88288b7b13833ab5">foldingListArray</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="elRef" href="qmemarray.html">QMemArray</a>< unsigned short > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a81d9075226e2888dfab074b8aa5f213f">indentationDepthArray</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a13fc8337c79348a1d0a40b769f20c912">insertText</a> (uint pos, uint insLen, const <a class="elRef" href="qchar.html">QChar</a> *insText, uchar *insAttribs=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ad5a3fba950a5affb042de925848fee6c">removeText</a> (uint pos, uint delLen)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a9836e356f5980231415142081ceaef4d">truncate</a> (uint newLen)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#af26cc13d8bed45bef9b6c0119c97eaa8">setHlLineContinue</a> (bool cont)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a2fd482a76fbd6b0a488f083cde68f7a7">setAutoWrapped</a> (bool wrapped)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a96654b526069acb40c7adae3c66389b5">setContext</a> (<a class="elRef" href="qmemarray.html">QMemArray</a>< short > &val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#abb164973f00dc603376d6540bfb48c99">setNoIndentBasedFolding</a> (bool val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61530a7bd2127c29a4a8ba022ae9d858"></a><!-- doxytag: member="KateTextLine::setNoIndentBasedFoldingAtStart" ref="a61530a7bd2127c29a4a8ba022ae9d858" args="(bool val)" --> void </td><td class="memItemRight" valign="bottom"><b>setNoIndentBasedFoldingAtStart</b> (bool val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a5652d9859d7a68ff0f323c23112dca7f">setFoldingList</a> (<a class="elRef" href="qmemarray.html">QMemArray</a>< uint > &val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a9db970e998ff681ae5e180667ec9515a">setIndentationDepth</a> (<a class="elRef" href="qmemarray.html">QMemArray</a>< unsigned short > &val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#a8c87b14b26450ebc49d79ce64ac5a7ee">dumpSize</a> (bool withHighlighting) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#aa92689ce4bda4de035070c21ffa80827">dump</a> (char *buf, bool withHighlighting) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKateTextLine.html#ac9f1d61226359f3d0c03955ad0f7eb29">restore</a> (char *buf)</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>The <a class="el" href="classKateTextLine.html" title="The KateTextLine represents a line of text.">KateTextLine</a> represents a line of text. </p> <p>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. </p> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00041">41</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a885ffc06d0ec9f4a4b45491dc434fc03"></a><!-- doxytag: member="KateTextLine::Ptr" ref="a885ffc06d0ec9f4a4b45491dc434fc03" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKSharedPtr.html">KSharedPtr</a><<a class="el" href="classKateTextLine.html">KateTextLine</a>> <a class="elRef" doxygen="kdecore.tag:../../kdecore/html/" href="../../kdecore/html/classKSharedPtr.html">KateTextLine::Ptr</a></td> </tr> </table> </div> <div class="memdoc"> <p>Define a Shared-Pointer type. </p> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00047">47</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="a091a298f3c9fb048e47eb2141545fa69"></a><!-- doxytag: member="KateTextLine::Flags" ref="a091a298f3c9fb048e47eb2141545fa69" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKateTextLine.html#a091a298f3c9fb048e47eb2141545fa69">KateTextLine::Flags</a></td> </tr> </table> </div> <div class="memdoc"> <p>Used Flags. </p> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00053">53</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a92d05e01c751dd48730abc75183b5eb3"></a><!-- doxytag: member="KateTextLine::KateTextLine" ref="a92d05e01c751dd48730abc75183b5eb3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KateTextLine::KateTextLine </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor Creates an empty text line with given attribute and syntax highlight context. </p> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00030">30</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="abe766f14675511b12c1bab4bddea49ae"></a><!-- doxytag: member="KateTextLine::~KateTextLine" ref="abe766f14675511b12c1bab4bddea49ae" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KateTextLine::~KateTextLine </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00035">35</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ab9d12604235ce2e0ec4135800d4ba938"></a><!-- doxytag: member="KateTextLine::attribute" ref="ab9d12604235ce2e0ec4135800d4ba938" args="(uint pos) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uchar KateTextLine::attribute </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the attribute at the given position use KRenderer::attributes to get the KTextAttribute for this. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>position of attribute requested </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>value of attribute </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKateTextLine.html#a2c057a281b2c86b874305b0ecb77cd2e" title="Highlighting array The size of this is string().length()">attributes</a> </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00271">271</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a2c057a281b2c86b874305b0ecb77cd2e"></a><!-- doxytag: member="KateTextLine::attributes" ref="a2c057a281b2c86b874305b0ecb77cd2e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uchar* KateTextLine::attributes </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Highlighting array The size of this is <a class="el" href="classKateTextLine.html#a648073639993399eb479323d90221f02" title="Gets a QString.">string()</a>.<a class="el" href="classKateTextLine.html#a0de7e5208c832129e968bc9d40e2813f" title="Returns the length.">length()</a> </p> <p>This contains the index for the attributes (so you can only have a maximum of 2^8 different highlighting styles in a document)</p> <p>To turn this into actual attributes (bold, green, etc), you need to feed these values into KRenderer::attributes</p> <p>e.g: m_renderer->attributes(attributes[3]);</p> <dl class="return"><dt><b>Returns:</b></dt><dd>hl-attributes array </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00167">167</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="aa26fb6952e140ddcf985dfb6b1be6c6e"></a><!-- doxytag: member="KateTextLine::ctxArray" ref="aa26fb6952e140ddcf985dfb6b1be6c6e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="elRef" href="qmemarray.html">QMemArray</a><short>& KateTextLine::ctxArray </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>context stack </p> <dl class="return"><dt><b>Returns:</b></dt><dd>context stack </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00281">281</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="ab1ddf55dab4762640f101153d9f23c44"></a><!-- doxytag: member="KateTextLine::cursorX" ref="ab1ddf55dab4762640f101153d9f23c44" args="(uint pos, uint tabChars) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KateTextLine::cursorX </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint </td> <td class="paramname"><em>tabChars</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the x position of the cursor at the given position, which depends on the number of tab characters. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>position in chars </td></tr> <tr><td class="paramname">tabChars</td><td>tabulator width in chars </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>position with tabulators calculated </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00237">237</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="aa92689ce4bda4de035070c21ffa80827"></a><!-- doxytag: member="KateTextLine::dump" ref="aa92689ce4bda4de035070c21ffa80827" args="(char *buf, bool withHighlighting) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char * KateTextLine::dump </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"><em>buf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>withHighlighting</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Dumps the line to *buf and counts buff dumpSize bytes up as return value. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">buf</td><td>buffer to dump to </td></tr> <tr><td class="paramname">withHighlighting</td><td>dump hl data, too? </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>buffer index after dumping </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00335">335</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a8c87b14b26450ebc49d79ce64ac5a7ee"></a><!-- doxytag: member="KateTextLine::dumpSize" ref="a8c87b14b26450ebc49d79ce64ac5a7ee" args="(bool withHighlighting) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint KateTextLine::dumpSize </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>withHighlighting</em></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Methodes for dump/restore of the line in the buffer. </p> <p>Dumpsize in bytes </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">withHighlighting</td><td>should we dump the hl, too? </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>size of line for dumping </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00384">384</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="acac0c923a66ccee5fb81da7758d7894a"></a><!-- doxytag: member="KateTextLine::endingWith" ref="acac0c923a66ccee5fb81da7758d7894a" args="(const QString &match) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::endingWith </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"><em>match</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Is the line ending with the given string. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">match</td><td>string to test </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>does the line end with given string? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00219">219</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a6258d6b9ab9c478687cd53e331058911"></a><!-- doxytag: member="KateTextLine::firstChar" ref="a6258d6b9ab9c478687cd53e331058911" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KateTextLine::firstChar </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the position of the first non-whitespace character. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>position of first non-whitespace char or -1 if there is none </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00142">142</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a8fc6a638a8088a5a061a668f04b591b1"></a><!-- doxytag: member="KateTextLine::firstNonSpace" ref="a8fc6a638a8088a5a061a668f04b591b1" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="elRef" href="qchar.html">QChar</a> * KateTextLine::firstNonSpace </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets a null terminated pointer to first non space char. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>array of QChars starting at first non-whitespace char </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00152">152</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a649a5c7c079544b329aa657100da279f"></a><!-- doxytag: member="KateTextLine::foldingColumnsOutdated" ref="a649a5c7c079544b329aa657100da279f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::foldingColumnsOutdated </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>folding columns outdated ? </p> <dl class="return"><dt><b>Returns:</b></dt><dd>folding columns outdated? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00090">90</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a8f28beb30ad3f35a88288b7b13833ab5"></a><!-- doxytag: member="KateTextLine::foldingListArray" ref="a8f28beb30ad3f35a88288b7b13833ab5" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="elRef" href="qmemarray.html">QMemArray</a><uint>& KateTextLine::foldingListArray </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>folding list </p> <dl class="return"><dt><b>Returns:</b></dt><dd>folding array </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00292">292</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a59fe14d55fba04925cf275d2f3d51c3c"></a><!-- doxytag: member="KateTextLine::getChar" ref="a59fe14d55fba04925cf275d2f3d51c3c" args="(uint pos) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qchar.html">QChar</a> KateTextLine::getChar </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the char at the given position. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>position </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>character at the given position or QChar::null if position is beyond the length of the string </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00145">145</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="ab7d550542974efdc54824e6216ffdd4e"></a><!-- doxytag: member="KateTextLine::hlLineContinue" ref="ab7d550542974efdc54824e6216ffdd4e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::hlLineContinue </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>has the line the hl continue flag set </p> <dl class="return"><dt><b>Returns:</b></dt><dd>hl continue set? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00103">103</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a81d9075226e2888dfab074b8aa5f213f"></a><!-- doxytag: member="KateTextLine::indentationDepthArray" ref="a81d9075226e2888dfab074b8aa5f213f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="elRef" href="qmemarray.html">QMemArray</a><unsigned short>& KateTextLine::indentationDepthArray </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>indentation stack </p> <dl class="return"><dt><b>Returns:</b></dt><dd>indentation array </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00298">298</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a23933aee94b1e068d516395576c8b48e"></a><!-- doxytag: member="KateTextLine::indentDepth" ref="a23933aee94b1e068d516395576c8b48e" args="(uint tabwidth) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint KateTextLine::indentDepth </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>tabwidth</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>indentation depth of this line </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">tabwidth</td><td>width of the tabulators </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>indentation width </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00158">158</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a13fc8337c79348a1d0a40b769f20c912"></a><!-- doxytag: member="KateTextLine::insertText" ref="a13fc8337c79348a1d0a40b769f20c912" args="(uint pos, uint insLen, const QChar *insText, uchar *insAttribs=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::insertText </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint </td> <td class="paramname"><em>insLen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qchar.html">QChar</a> * </td> <td class="paramname"><em>insText</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uchar * </td> <td class="paramname"><em>insAttribs</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>insert text into line </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>insert position </td></tr> <tr><td class="paramname">insLen</td><td>insert length </td></tr> <tr><td class="paramname">insText</td><td>text to insert </td></tr> <tr><td class="paramname">insAttribs</td><td>attributes for the insert text </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00039">39</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="afcd08bba9031e8b9babb1c402264ee5b"></a><!-- doxytag: member="KateTextLine::isAutoWrapped" ref="afcd08bba9031e8b9babb1c402264ee5b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::isAutoWrapped </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>was this line automagically wrapped </p> <dl class="return"><dt><b>Returns:</b></dt><dd>line auto-wrapped </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00109">109</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a4e51c66b81d23f7af5623b3849c0a77c"></a><!-- doxytag: member="KateTextLine::lastChar" ref="a4e51c66b81d23f7af5623b3849c0a77c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KateTextLine::lastChar </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the position of the last non-whitespace character. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>position of last non-whitespace char or -1 if there is none </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00147">147</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a0de7e5208c832129e968bc9d40e2813f"></a><!-- doxytag: member="KateTextLine::length" ref="a0de7e5208c832129e968bc9d40e2813f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint KateTextLine::length </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the length. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>length of text in line </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00097">97</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="ac95406e6a00f1ff76eb18816e31877dc"></a><!-- doxytag: member="KateTextLine::lengthWithTabs" ref="ac95406e6a00f1ff76eb18816e31877dc" args="(uint tabChars) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint KateTextLine::lengthWithTabs </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>tabChars</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the text length with tabs calced in. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">tabChars</td><td>tabulator width in chars </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>text length </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00256">256</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="aeed4be9b9b25c963291e6fb68957eb3a"></a><!-- doxytag: member="KateTextLine::nextNonSpaceChar" ref="aeed4be9b9b25c963291e6fb68957eb3a" args="(uint pos) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KateTextLine::nextNonSpaceChar </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Find the position of the next char that is not a space. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>Column of the character which is examined first. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>True if the specified or a following character is not a space Otherwise false. </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00110">110</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a3c5387e57c1f471fc41d21552adc579e"></a><!-- doxytag: member="KateTextLine::noIndentBasedFolding" ref="a3c5387e57c1f471fc41d21552adc579e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const bool KateTextLine::noIndentBasedFolding </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>true if any context at the line end has the noIndentBasedFolding flag set </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00286">286</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="aed10dacecfde0a827d8d3849ee4535ec"></a><!-- doxytag: member="KateTextLine::previousNonSpaceChar" ref="aed10dacecfde0a827d8d3849ee4535ec" args="(uint pos) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KateTextLine::previousNonSpaceChar </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Find the position of the previous char that is not a space. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>Column of the character which is examined first. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The position of the first none-whitespace character preceeding pos, or -1 if none is found. </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00124">124</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="ad5a3fba950a5affb042de925848fee6c"></a><!-- doxytag: member="KateTextLine::removeText" ref="ad5a3fba950a5affb042de925848fee6c" args="(uint pos, uint delLen)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::removeText </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint </td> <td class="paramname"><em>delLen</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>remove text at given position </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>start position of remove </td></tr> <tr><td class="paramname">delLen</td><td>length to remove </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00076">76</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="ac9f1d61226359f3d0c03955ad0f7eb29"></a><!-- doxytag: member="KateTextLine::restore" ref="ac9f1d61226359f3d0c03955ad0f7eb29" args="(char *buf)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char * KateTextLine::restore </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"><em>buf</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Restores the line from *buf and counts buff dumpSize bytes up as return value. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">buf</td><td>buffer to restore from </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>buffer index after restoring </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00383">383</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="af05fb278af3b9ec96c276b3cf42daadf"></a><!-- doxytag: member="KateTextLine::searchText" ref="af05fb278af3b9ec96c276b3cf42daadf" args="(uint startCol, const QString &text, uint *foundAtCol, uint *matchLen, bool casesensitive=true, bool backwards=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::searchText </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>startCol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"><em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint * </td> <td class="paramname"><em>foundAtCol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint * </td> <td class="paramname"><em>matchLen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>casesensitive</em> = <code>true</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>backwards</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>search given string </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">startCol</td><td>column to start search </td></tr> <tr><td class="paramname">text</td><td>string to search for </td></tr> <tr><td class="paramname">foundAtCol</td><td>column where text was found </td></tr> <tr><td class="paramname">matchLen</td><td>length of matching </td></tr> <tr><td class="paramname">casesensitive</td><td>should search be case-sensitive </td></tr> <tr><td class="paramname">backwards</td><td>search backwards? </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>string found? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00273">273</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a7b8facc98015162c302b252ca834ed69"></a><!-- doxytag: member="KateTextLine::searchText" ref="a7b8facc98015162c302b252ca834ed69" args="(uint startCol, const QRegExp &regexp, uint *foundAtCol, uint *matchLen, bool backwards=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::searchText </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>startCol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qregexp.html">QRegExp</a> & </td> <td class="paramname"><em>regexp</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint * </td> <td class="paramname"><em>foundAtCol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint * </td> <td class="paramname"><em>matchLen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>backwards</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>search given regexp </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">startCol</td><td>column to start search </td></tr> <tr><td class="paramname">regexp</td><td>regex to search for </td></tr> <tr><td class="paramname">foundAtCol</td><td>column where text was found </td></tr> <tr><td class="paramname">matchLen</td><td>length of matching </td></tr> <tr><td class="paramname">backwards</td><td>search backwards? </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>regexp found? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00304">304</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a2fd482a76fbd6b0a488f083cde68f7a7"></a><!-- doxytag: member="KateTextLine::setAutoWrapped" ref="a2fd482a76fbd6b0a488f083cde68f7a7" args="(bool wrapped)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setAutoWrapped </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>wrapped</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>auto-wrapped </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">wrapped</td><td>line was wrapped? </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00336">336</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a96654b526069acb40c7adae3c66389b5"></a><!-- doxytag: member="KateTextLine::setContext" ref="a96654b526069acb40c7adae3c66389b5" args="(QMemArray< short > &val)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setContext </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qmemarray.html">QMemArray</a>< short > & </td> <td class="paramname"><em>val</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the syntax highlight context number. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">val</td><td>new context array </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00346">346</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a42534f8f5bfa9ffc529f8e652204d573"></a><!-- doxytag: member="KateTextLine::setFoldingColumnsOutdated" ref="a42534f8f5bfa9ffc529f8e652204d573" args="(bool set)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setFoldingColumnsOutdated </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>set</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Methods to get data. </p> <p>Set the flag that only positions have changed, not folding region begins/ends themselve </p> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00083">83</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a5652d9859d7a68ff0f323c23112dca7f"></a><!-- doxytag: member="KateTextLine::setFoldingList" ref="a5652d9859d7a68ff0f323c23112dca7f" args="(QMemArray< uint > &val)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setFoldingList </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qmemarray.html">QMemArray</a>< uint > & </td> <td class="paramname"><em>val</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>update folding list </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">val</td><td>new folding list </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00367">367</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="af26cc13d8bed45bef9b6c0119c97eaa8"></a><!-- doxytag: member="KateTextLine::setHlLineContinue" ref="af26cc13d8bed45bef9b6c0119c97eaa8" args="(bool cont)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setHlLineContinue </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>cont</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>set hl continue flag </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">cont</td><td>continue flag? </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00326">326</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a9db970e998ff681ae5e180667ec9515a"></a><!-- doxytag: member="KateTextLine::setIndentationDepth" ref="a9db970e998ff681ae5e180667ec9515a" args="(QMemArray< unsigned short > &val)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setIndentationDepth </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qmemarray.html">QMemArray</a>< unsigned short > & </td> <td class="paramname"><em>val</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>update indentation stack </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">val</td><td>new indentation stack </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00373">373</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="abb164973f00dc603376d6540bfb48c99"></a><!-- doxytag: member="KateTextLine::setNoIndentBasedFolding" ref="abb164973f00dc603376d6540bfb48c99" args="(bool val)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::setNoIndentBasedFolding </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>val</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>sets if for the next line indent based folding should be disabled </p> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00351">351</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a35ac9baf650dcc967f29336d9d39446c"></a><!-- doxytag: member="KateTextLine::startingWith" ref="a35ac9baf650dcc967f29336d9d39446c" args="(const QString &match) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::startingWith </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"><em>match</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Is the line starting with the given string. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">match</td><td>string to test </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>does line start with given string? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00202">202</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a648073639993399eb479323d90221f02"></a><!-- doxytag: member="KateTextLine::string" ref="a648073639993399eb479323d90221f02" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="elRef" href="qstring.html">QString</a>& KateTextLine::string </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets a <a class="elRef" href="qstring.html">QString</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>text of line as <a class="elRef" href="qstring.html">QString</a> reference </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00173">173</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="ae32b8c6254b68a2b9a5fb39ab8c43128"></a><!-- doxytag: member="KateTextLine::string" ref="ae32b8c6254b68a2b9a5fb39ab8c43128" args="(uint startCol, uint length) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qstring.html">QString</a> KateTextLine::string </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>startCol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint </td> <td class="paramname"><em>length</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets a substring. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">startCol</td><td>start column of substring </td></tr> <tr><td class="paramname">length</td><td>length of substring </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>wanted substring </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00181">181</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="af6c331fd84c13bbbe156951d1785d7f8"></a><!-- doxytag: member="KateTextLine::stringAtPos" ref="af6c331fd84c13bbbe156951d1785d7f8" args="(uint pos, const QString &match) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KateTextLine::stringAtPos </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>pos</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> & </td> <td class="paramname"><em>match</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Can we find the given string at the given position. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pos</td><td>startpostion of given string </td></tr> <tr><td class="paramname">match</td><td>string to match at given pos </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>did the string match? </dd></dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00180">180</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <a class="anchor" id="a4160ed7578dc159706ea45a51ba693e4"></a><!-- doxytag: member="KateTextLine::text" ref="a4160ed7578dc159706ea45a51ba693e4" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="elRef" href="qchar.html">QChar</a>* KateTextLine::text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the text as a unicode representation. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>text of this line as <a class="elRef" href="qchar.html">QChar</a> array </dd></dl> <p>Definition at line <a class="el" href="katetextline_8h_source.html#l00151">151</a> of file <a class="el" href="katetextline_8h_source.html">katetextline.h</a>.</p> </div> </div> <a class="anchor" id="a9836e356f5980231415142081ceaef4d"></a><!-- doxytag: member="KateTextLine::truncate" ref="a9836e356f5980231415142081ceaef4d" args="(uint newLen)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KateTextLine::truncate </td> <td>(</td> <td class="paramtype">uint </td> <td class="paramname"><em>newLen</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Truncates the textline to the new length. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">newLen</td><td>new length of line </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="katetextline_8cpp_source.html#l00101">101</a> of file <a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="katetextline_8h_source.html">katetextline.h</a></li> <li><a class="el" href="katetextline_8cpp_source.html">katetextline.cpp</a></li> </ul> </div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kate</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classIndenterConfigPage.html">indenterconfigpage</option>, <option value="classKate_1_1Command.html">kate::command</option>, <option value="classKate_1_1CommandExtension.html">kate::commandextension</option>, <option value="classKate_1_1Document.html">kate::document</option>, <option value="classKate_1_1DocumentExt.html">kate::documentext</option>, <option value="classKate_1_1View.html">kate::view</option>, <option value="classKateArbitraryHighlight.html">katearbitraryhighlight</option>, <option value="classKateAttribute.html">kateattribute</option>, <option value="classKateAutoIndent.html">kateautoindent</option>, <option value="classKateBrowserExtension.html">katebrowserextension</option>, <option value="classKateBufBlock.html">katebufblock</option>, <option value="classKateBufBlockList.html">katebufblocklist</option>, <option value="classKateBuffer.html">katebuffer</option>, <option value="classKateCmdShellCompletion.html">katecmdshellcompletion</option>, <option value="classKateCommands_1_1Character.html">katecommands::character</option>, <option value="classKateCommands_1_1CoreCommands.html">katecommands::corecommands</option>, <option value="classKateCommands_1_1Date.html">katecommands::date</option>, <option value="classKateCommands_1_1SedReplace.html">katecommands::sedreplace</option>, <option value="classKateConfig.html">kateconfig</option>, <option value="classKateDocCursor.html">katedoccursor</option>, <option value="classKateJScript.html">katejscript</option>, <option value="classKateModOnHdPrompt.html">katemodonhdprompt</option>, <option value="classKateNormalIndent.html">katenormalindent</option>, <option value="classKateRenderer.html">katerenderer</option>, <option value="classKateReplacePrompt.html">katereplaceprompt</option>, <option value="classKateScrollBar.html">katescrollbar</option>, <option value="classKateSuperCursor.html">katesupercursor</option>, <option value="classKateSuperRange.html">katesuperrange</option>, <option value="classKateSyntaxContextData.html">katesyntaxcontextdata</option>, <option value="classKateSyntaxDocument.html">katesyntaxdocument</option>, <option value="classKateSyntaxModeListItem.html">katesyntaxmodelistitem</option>, <option value="classKateTextCursor.html">katetextcursor</option>, <option value="classKateTextLine.html">katetextline</option>, <option value="classKateUndoGroup.html">kateundogroup</option>, <option value="classKateVarIndent.html">katevarindent</option>, <option value="classKateViewIndentationAction.html">kateviewindentationaction</option>, <option value="classOutputFunction.html">outputfunction</option>, <option value="classOutputObject.html">outputobject</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li> <a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li> <a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../kio/kio/html/index.html">kio</a></li><li> <a href="../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li> <a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>