« Return to Thread: Code to create a UC_UTF8_STRING from STRING_GENERAL

Re: Code to create a UC_UTF8_STRING from STRING_GENERAL

by Eric Bezault :: Rate this Message:

Reply to Author | View in Thread

Colin Adams wrote:

> 2008/4/29 Colin Adams <colinpauladams@...>:
>> On 21/04/2008, Eric Bezault <ericb@...> wrote:
>>
>>>  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
>>>  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 think the last suggestion (adding make_from_string_general and
>> changing make_from_string to call make_from_string_general, etc.) is
>> best.
>>
>
> Shall we do this then?
>
> I've just this minute encountered the need for it.

I just added `make_from_string_general' in UC_STRING.
It should be easy to make it accept READABLE_STRING
by just replacing any occurrence of STRING_GENERAL
by READABLE_STRING in classes UC_STRING and
UC_UTF8_ROUTINES.

--
Eric Bezault
mailto:ericb@...
http://www.gobosoft.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gobo-eiffel-develop mailing list
gobo-eiffel-develop@...
https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop

 « Return to Thread: Code to create a UC_UTF8_STRING from STRING_GENERAL