[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case mapping of sharp s
From: |
Andreas Schwab |
Subject: |
Re: Case mapping of sharp s |
Date: |
Sat, 21 Nov 2009 10:33:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
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).
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Case mapping of sharp s, (continued)
- Re: Case mapping of sharp s, Kenichi Handa, 2009/11/22
- 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 <=
- Re: Case mapping of sharp s, Eli Zaretskii, 2009/11/21
- 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