diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-31 17:56:24 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-31 17:56:24 +0000 |
commit | 3969ea67cd0834862659426cf5e2c8087522b4b5 (patch) | |
tree | 05efa139ac2fbcb141b5b06f6b620f9dbfb2156e /gcc/ada/s-valwch.ads | |
parent | 4a07180b5fbf70f15bd7db3b0067c4155ebbeffa (diff) | |
download | gcc-3969ea67cd0834862659426cf5e2c8087522b4b5.tar.gz |
2006-10-31 Robert Dewar <dewar@adacore.com>
* exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
cases, pass the encoding method, since it is now required by the run
time.
* s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
assumption that Str'First = 1.
(Value_Wide_Character): Takes EM (encoding method) parameter and passes
it on to the Value_Wide_Wide_Character call.
(Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
properly handles a string of the form quote-encoded_wide_char-quote.
* s-wchcnv.adb: Minor reformatting
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118266 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-valwch.ads')
-rw-r--r-- | gcc/ada/s-valwch.ads | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ada/s-valwch.ads b/gcc/ada/s-valwch.ads index 32a4b508f27..46a417fb911 100644 --- a/gcc/ada/s-valwch.ads +++ b/gcc/ada/s-valwch.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -33,15 +33,23 @@ -- Processing for Wide_[Wide_]Value attribute +with System.WCh_Con; + package System.Val_WChar is pragma Pure; function Value_Wide_Character - (Str : String) return Wide_Character; - -- Computes Wide_Character'Value (Str) + (Str : String; + EM : System.WCh_Con.WC_Encoding_Method) return Wide_Character; + -- Computes Wide_Character'Value (Str). The parameter EM is the encoding + -- method used for any Wide_Character sequences in Str. Note that brackets + -- notation is always permitted. function Value_Wide_Wide_Character - (Str : String) return Wide_Wide_Character; - -- Computes Wide_Character'Value (Str) + (Str : String; + EM : System.WCh_Con.WC_Encoding_Method) return Wide_Wide_Character; + -- Computes Wide_Character'Value (Str). The parameter EM is the encoding + -- method used for any wide_character sequences in Str. Note that brackets + -- notation is always permitted. end System.Val_WChar; |