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);
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits