|
|
Choosing A Webhost: |
CVS update of carob/include (StringCodecs.hpp): msg#00094db.carob.cvs
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))
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of carob/src (Common.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob/src (StringCodecs.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob/include (StringCodecs.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob (publisher.sh), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|