Re: Code to create a UC_UTF8_STRING from STRING_GENERAL

"Colin Adams" <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
On 21/04/2008, Eric Bezault <[email protected]> wrote:
>  In fact having it as creation procedure will allow us to avoid
>  having to create the intermediary object `l_bytes'.
>
>  After looking at class UC_STRING, I'm wondering whether we should
>  just adapt the routines `make_from_string' and `make_from_substring'
>  so that we can pass a STRING_GENERAL. Perhaps we will have to

We could do that, as we have the is_string_8 query to choose between
the current implementation and the STRING_32 one.

>  rename the version of `make_from_string' inherited from STRING.
>  Or add `make_from_string_general', `make_from_substring_general',
>  make `make_from_substring' obsolete (make it call
>  `make_from_substring_general') and modify `make_from_string'
>  to call `make_from_string_general'. I'm not sure what the best
>  naming convention is.

I don't think we need to rename anything.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.