Skip to main content.
home | support | download

Back to List Archive

converting 8 bit chars to lowercase

From: Reino Va'inaste <reino(at)not-real.postimees.ee>
Date: Sat Nov 08 1997 - 16:08:15 GMT
Hi everyone!

It seems, that function tolower() works correctly with chars with
code less than 128. Words with umlauf chars (C0 ... ) go to index
as they are (i.e. without conversion (e.g. C4 --> E4 ) ) - so you may  get
two words in index, one with capital letter and another without.

Solution may be new macro tolower(x)  (x>191 && x<224) ? x+32 : tolower(x)  ??

but then all char's in program must be unsigned, but are they ...

best wishes
Reino


-----------------------------------------------| Poor man wanna be rich
Reino Va'inaste     e-mail  reino@postimees.ee | Rich man wanna be king
phone (372) 7 390379   Postimees  Gildi 1      | And a king ain't satisfied
fax   (372) 7 390345   Tartu Estonia           | Till he rules everything
                                               |      B. Springsteen
Received on Sat Nov 8 08:14:33 1997