Date: Friday, March 17, 2006 @ 20:17:25
  Author: marc
    Path: /cvsroot/carob/carob/include

Modified: StringCodecs.hpp (1.11 -> 1.12)

Enhanced comments about locales


------------------+
 StringCodecs.hpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: carob/include/StringCodecs.hpp
diff -u carob/include/StringCodecs.hpp:1.11 carob/include/StringCodecs.hpp:1.12
--- carob/include/StringCodecs.hpp:1.11 Fri Mar 17 10:06:55 2006
+++ carob/include/StringCodecs.hpp      Fri Mar 17 20:17:25 2006
@@ -61,6 +61,10 @@
 
 class MBSCodec
 {
+    // TODO: replace loc by an accessor, so we could dynamically use
+    // the (possibly changing) current locale() instead of a constant
+    // one.
+
     // Here order matters (see init below)
     const std::locale loc; // hold our own (and cheap) copy for safety
     const mbs_codecvt& codecvt;
@@ -72,7 +76,9 @@
     // Default constructor for the default converter, using
     // user-defined locale (typically LANG, LC_etc).  If you want the
     // C locale instead of this LANG-one use for instance this CTOR:
-    // MBSCodec(locale::classic())
+    //   MBSCodec(locale::classic())
+    // or if you want the current (global) locale:
+    //   MBSCodec(locale())
     MBSCodec() :
         loc(std::locale("")),
         codecvt (std::use_facet<mbs_codecvt>(loc))

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to