[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: How does kate / kwrite store text internally
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2022-05-19 12:37:46
Message-ID: CALi_srC_CTbcLC4LSM6O0WtyYe0H=1nVhp-Q=LbM1jSQUsTF8w () mail ! gmail ! com
[Download RAW message or body]

You will find all answers here:
https://invent.kde.org/frameworks/ktexteditor/-/tree/master/src/buffer

Best regards
Dominik

<rhkramer@gmail.com> schrieb am Do., 19. Mai 2022, 14:34:

> Thanks!
>
> Out of further curiosity, is it a fixed or variable number of lines per
> block?
>
> Nothing new below this line.
>
> On Tuesday, May 17, 2022 10:55:54 AM Waqar Ahmed wrote:
> > Kate doesn't use any fancy data structure. Internally its an array of
> > blocks where each block contains a certain number of lines. You can
> > take a look at the code inside src/buffer directory of KTextEditor to
> > see how it works internally.
>

[Attachment #3 (text/html)]

<div dir="auto">You will find all answers here:<div dir="auto"><a \
href="https://invent.kde.org/frameworks/ktexteditor/-/tree/master/src/buffer">https://invent.kde.org/frameworks/ktexteditor/-/tree/master/src/buffer</a><br></div><div \
dir="auto"><br></div><div dir="auto">Best regards</div><div \
dir="auto">Dominik</div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr"> &lt;<a \
href="mailto:rhkramer@gmail.com">rhkramer@gmail.com</a>&gt; schrieb am Do., 19. Mai \
2022, 14:34:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks!   <br> <br>
Out of further curiosity, is it a fixed or variable number of lines per block?<br>
<br>
Nothing new below this line.<br>
<br>
On Tuesday, May 17, 2022 10:55:54 AM Waqar Ahmed wrote:<br>
&gt; Kate doesn&#39;t use any fancy data structure. Internally its an array of<br>
&gt; blocks where each block contains a certain number of lines. You can<br>
&gt; take a look at the code inside src/buffer directory of KTextEditor to<br>
&gt; see how it works internally.<br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic