gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Unicode toUpper/toLower

#146684 - theli - Fri Dec 07, 2007 4:27 pm

can anyone point me to some simple toLower/toUpper implementation in C for Unicode int32 character number?
or just an explanation of algorithms...
i think there are some options when doing such thing ...
but i need a simplest way :)

#147036 - theli - Thu Dec 13, 2007 4:52 pm

if anyone interested i found simple implementations in Vim's sources src/mbyte.c

#147053 - tepples - Thu Dec 13, 2007 9:16 pm

Do you need to support all scripts, or just the big 3 in Europe (Latin, Greek, Cyrillic)?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#147057 - theli - Thu Dec 13, 2007 9:25 pm

tepples wrote:
Do you need to support all scripts, or just the big 3 in Europe (Latin, Greek, Cyrillic)?

I need only Latin+Cyrillic ... though i want somewhat universal unicode solution
anyway vim's simple implementation is what i searched for :)