[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case mapping of sharp s
From: |
Eli Zaretskii |
Subject: |
Re: Case mapping of sharp s |
Date: |
Sat, 21 Nov 2009 13:45:14 +0200 |
> From: Andreas Schwab <address@hidden>
> Date: Sat, 21 Nov 2009 10:33:47 +0100
> Cc: grischka <address@hidden>, address@hidden, address@hidden,
> address@hidden
>
> Eli Zaretskii <address@hidden> writes:
>
> > CHAR_TO_BYTE could be expensive, yes. But how else can you convert an
> > arbitrary character position to the corresponding byte position? When
> > you scan forward, you know the byte length of a multi-byte UTF-8
> > sequence by the first byte, but what do you do when you scan backwards?
>
> The first byte of a UTF-8 sequence is easily recognizable, so finding
> out the length of the previous UTF-8 sequence is nearly as easy (see
> DEC_POS).
I guess simple_search should use DEC_POS, then.
- Re: Case mapping of sharp s, (continued)
- Re: Case mapping of sharp s, Richard Stallman, 2009/11/21
- Re: Case mapping of sharp s, Ulrich Mueller, 2009/11/20
- Re: Case mapping of sharp s, Stephen J. Turnbull, 2009/11/20
- Re: Case mapping of sharp s, Ulrich Mueller, 2009/11/20
- Re: Case mapping of sharp s, Stephen J. Turnbull, 2009/11/20
- Re: Case mapping of sharp s, grischka, 2009/11/19
- Re: Case mapping of sharp s, Stefan Monnier, 2009/11/19
- Re: Case mapping of sharp s, grischka, 2009/11/20
- Re: Case mapping of sharp s, Eli Zaretskii, 2009/11/21
- Re: Case mapping of sharp s, Andreas Schwab, 2009/11/21
- Re: Case mapping of sharp s,
Eli Zaretskii <=
- Re: Case mapping of sharp s, grischka, 2009/11/21
- Re: Case mapping of sharp s, Ulrich Mueller, 2009/11/21
- Re: Case mapping of sharp s, Andreas Schwab, 2009/11/21
- Re: Case mapping of sharp s, Ulrich Mueller, 2009/11/21
- Re: Case mapping of sharp s, Andreas Schwab, 2009/11/22
- Re: Case mapping of sharp s, Stefan Monnier, 2009/11/22
- Re: Case mapping of sharp s, Kenichi Handa, 2009/11/24
- Re: Case mapping of sharp s, grischka, 2009/11/24
- Re: Case mapping of sharp s, Kenichi Handa, 2009/11/24
- Re: Case mapping of sharp s, grischka, 2009/11/26