|
|
Choosing A Webhost: |
CVS update of carob/include (Common.hpp): msg#00061db.carob.cvs
Date: Friday, March 10, 2006 @ 18:11:38 Author: gilles Path: /cvsroot/carob/carob/include Modified: Common.hpp (1.33 -> 1.34) (javadoc) Detailed implemented types for toWString() and wstringTo ------------+ Common.hpp | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) Index: carob/include/Common.hpp diff -u carob/include/Common.hpp:1.33 carob/include/Common.hpp:1.34 --- carob/include/Common.hpp:1.33 Mon Mar 6 13:43:23 2006 +++ carob/include/Common.hpp Fri Mar 10 18:11:38 2006 @@ -119,8 +119,16 @@ /** * Converts any type to wstring - * @param i integer to convert - * @return a wstring representation of the integer + * Implemented so far: + * uint16_t + * int16_t + * uint32_t + * int64_t + * int + * long + * float + * double + * @return a wstring representation of the given argument */ template <class T> std::wstring toWString(const T& t); @@ -130,6 +138,12 @@ * Ignores whitespaces and eventual characters following the number. * eg. 123abc will be transformed to 123 * Function found at http://www.codeguru.com/forum/showthread.php?t=231054 + * Types implemented so far: + * int + * int64_t + * float + * double + * * @return true if the conversion succeeded, false otherwise */ template <class T> bool wstringTo(T& t, const std::wstring& s);
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of carob/include (Statement.hpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob (2 files), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob/include (Statement.hpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/include (Common.hpp), 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.
|