[gtkmm] Announce: the compose library, v. 1.0
- From: Ole Laursen <olau hardworking dk>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Announce: the compose library, v. 1.0
- Date: 09 Nov 2002 20:05:41 +0100
Hi,
I think I've forgotten to announce the release of my string
composition library. Basically, it supports syntax like this:
Glib::ustring s;
s = ucompose("Account no. %1 has a total of %2.", account_no, total);
Why is this on-topic here? Because it is almost impossible to i18n a
GUI application that concatenates user visible strings without making
use of such a library.
Benefits:
- produces very i18n-friendly strings
- much more readable code than e.g. with operator+ and
boost::lexical_cast
- native C++, no type-insafe, awkward snprintf
- flexible, supports all types with ostream operator<<
- very simple, just one header file
Fetch it here:
http://www.cs.auc.dk/~olau/compose/
Note that you need to remove a line in the header if you're using GCC
2.95. I know this is a bit lame, but that's the price you pay for
avoiding a full-blown library with configure script etc. :-)
--
Ole Laursen
http://www.cs.auc.dk/~olau/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]