Internationalisierung
-
Hi,
kennt sich jemand von Euch mit 'locales' aus?
The Standard C locale is a global resource: there is only one locale for the entire application. This makes it hard to build an application that has to handle several locales at a time.
The Standard C++ locale is a class. Numerous instances of class locale can be created at will, so you can have as many locale objects as you need.It may well happen that you have to work with multiple locales. For example, if you have to implement an application for Switzerland, you might want to output messages in Italian, French, and German. As the C locale is a global data structure, you will have to switch locales several times.
#include <locale> locale loc("deu"); char *c = "Ä"; char d = tolower(c[0], loc);
Es gibt ein paar nette Funktionen wie tolower/upper, compare .. denen ich die richtige locale übergeben kann. Aber das war's schon. Ich brauche etwas wie _stricoll. Wie's aussieht bleibt mir nichts anderes übrig als selbst eine eigene Such-Methode zu implementieren.
Falls ihr Ratschläge oder Tipps habt, immer her damit.
Danke
-
In der 4-ten Auflage von Bjarne Stroustrups Werk werden die locales sehr gut beschrieben.
Hätte wohl früher nachschlagen sollen