gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] utf8 and emacs text/string multibyte representation


From: Camm Maguire
Subject: Re: [Gcl-devel] utf8 and emacs text/string multibyte representation
Date: Thu, 30 Oct 2014 12:27:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Greetings, and thanks so much for the feedback!  Almost done --

Eli Zaretskii <address@hidden> writes:

>> From: Camm Maguire <address@hidden>
>> Cc: address@hidden,  address@hidden
>> Date: Thu, 30 Oct 2014 10:13:20 -0400
>> 
>> >> Does every string access in emacs proceed through the utf8 decoder?
>> >
>> > If you need to look at the character, yes.  E.g., if you need some
>> > property of the character, you need to index the appropriate table by
>> > that character's codepoint.  But in most operations that is not
>> > needed.  You just need to recognize several specific characters, like
>> > the null character, the slash, etc., most of which are ASCII.
>> >
>> 
>> Do you allocate a fresh boxed character on each aref, or output an
>> integer referring to a fixed ~2^22 sized table?
>
> I'm not sure what you mean by a "boxed character".  A character in
> Emacs is just an int.
>

Then how do you distinguish integers from characters at the lisp level?

Take care,
-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]