[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] searching for certain UTF8 characters also finds ghosts
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] searching for certain UTF8 characters also finds ghosts |
Date: |
Sun, 22 Mar 2015 12:22:34 +0100 |
On Sun, Mar 22, 2015, at 02:08, Mark Majeres wrote:
> On 3/21/15, Benno Schulenberg <address@hidden> wrote:
> > On Sat, Mar 21, 2015, at 20:54, Mark Majeres wrote:
> >> Yes, shifting one multi-byte char to the left is a little bit of work.
> >> It's not very pretty.
> >
> > Well, I have a patch for that. Attached. I can't notice any
> > performance improvement anywhere, though. It could still
> > be made quite a bit faster by looking at the bytes themselves,
> > but that requires some thinking and won't look pretty.
>
> How about just providing a better initial starting point?
>
> size_t before = pos-mb_cur_max();
...
:)
Yes. *Much* better. Thanks!
A change based on that went into SVN, r5147.
Benno
--
http://www.fastmail.com - The way an email service should be