Re: Character conversion
- Posted by "Igor Kachan" <kinz at peterlink.ru> Oct 23, 2004
- 478 views
Juergen Luethje wrote: > ( It was high time to change the subject. ) It seems to be > > There is wildcarr.e in my ru_eu_9_.zip package. > > It has the additional functions with the bilingual (English/Russian) names. > > > > English names of those functions are case_la() - for Latin alphabet, > > This is just standard lower() and upper() combined in 1 function. > > > and case_ru() - for Russian alphabet in 5 different encodings. > > This one was interesting for me. > > > I did not test the speed of those functions, they just work for me and I do > > not care. > > > > Try please, any alphabet may be supported that Russian way, I think. > > First, I had to remove all Russian routine names from 'wildcarr.e', > because my Euphoria complained. You can use ex_e.exe without camplainigs - unlimited alphabet for DOS32 with English diagnostics. Or just copy/paste these functions into your standard wildcard.e, there are no conflicting names in The Archive, as far as I can see. > Then I run the following test program: > > }}} <eucode> > include wildcarr.e > constant CP = {"dos","win","koi","iso","mac"} > sequence s > s = "heLLo" > for i = 1 to length(CP) do > printf(1, "'%s'\n", {case_ru(0,s,CP[i])}) > end for > </eucode> {{{ > > This test program just printed 5 times "heLLo" (German Windows 98). > Thanks for the suggestion anyway. Do not mention it. About your test was answered already in my previous post. I'm offline now - just day or two. Regards, Igor Kachan kinz at peterlink.ru