help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to see the value of each char in a string?


From: Oliver Scholz
Subject: Re: How to see the value of each char in a string?
Date: Wed, 27 Nov 2002 10:04:32 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600)

dkcombs@panix.com (David Combs) writes:
[...]
> The real question is: how to find the value of each
> char in a string.
>
> Is there a function that already does that?
>
> Maybe someone can show me the two or three lines
> of elisp code to show the string with, for each char,
> its numerical value (er, index, I guess).
>
> Like, for "foo":
>  
> f 146
> o 157
> o 157
[...]

(mapcar 'identity "foo")

    Oliver
-- 
7 Frimaire an 211 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

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