comp.lang.ada
 help / color / mirror / Atom feed
* Convert a Wide_String (or a Wide_Character) to an Integer.
@ 2015-02-10 21:16 lomoscompany
  2015-02-10 21:38 ` Jeffrey Carter
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: lomoscompany @ 2015-02-10 21:16 UTC (permalink / raw)


Why does it have to be so damn complicated?

I have the following function:

function Get_Lexical_Category (Input : in Wide_String)
    return Lexical_Category_Id is
    -- Retrieves the number representing the lexical category
    -- of the word.

    Number_Index : Integer
                 := Lexical_Category_Position;
    Lexical_Category : Wide_Character
                     := Input(Input'First - 1 + Number_Index);
begin
    -- NEED TO RETURN AN INTEGER CREATED FROM A SINGLE CHARACTER IN A WIDE 
    -- STRING HERE
end Get_Lexical_Category;

How does one convert a Wide_String into a normal String? Or, in my case, a Wide_Character to a Character.

Or is there any version of "Integer'Value" that takes Wide_Strings?


Thanks a lot for any help, this is really frustrating.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-13 22:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-10 21:16 Convert a Wide_String (or a Wide_Character) to an Integer lomoscompany
2015-02-10 21:38 ` Jeffrey Carter
2015-02-10 21:51 ` Randy Brukardt
2015-02-10 22:38 ` lomoscompany
2015-02-11  1:18   ` David Botton
2015-02-11 21:59     ` lomoscompany
2015-02-11 22:05       ` David Botton
2015-02-12 20:09         ` Randy Brukardt
2015-02-13 22:11 ` lomoscompany

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox