summaryrefslogtreecommitdiff
path: root/libodbcpp/string.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2008-11-13 14:45:11 +0000
committerrandomdan <randomdan@localhost>2008-11-13 14:45:11 +0000
commitefd292508070835781a0d92448a3661279dfd307 (patch)
tree0d2592bacfdb0cd159ebc5780dd69f86cc893af0 /libodbcpp/string.cpp
parentFix the C++ template errors (diff)
downloadlibdbpp-odbc-efd292508070835781a0d92448a3661279dfd307.tar.bz2
libdbpp-odbc-efd292508070835781a0d92448a3661279dfd307.tar.xz
libdbpp-odbc-efd292508070835781a0d92448a3661279dfd307.zip
Lots of little fixes
Diffstat (limited to 'libodbcpp/string.cpp')
-rw-r--r--libodbcpp/string.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/libodbcpp/string.cpp b/libodbcpp/string.cpp
deleted file mode 100644
index d04e141..0000000
--- a/libodbcpp/string.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdarg.h>
-#include "string.h"
-
-ODBC::String::String()
-{
-}
-ODBC::String::String(std::basic_string<unsigned char> s) :
- std::basic_string<unsigned char>(s)
-{
-}
-ODBC::String::String(std::basic_string<char> s) :
- std::basic_string<unsigned char>((unsigned char *)s.c_str())
-{
-}
-ODBC::String::String(const char * s) :
- std::basic_string<unsigned char>((unsigned char *)s)
-{
-}
-ODBC::String::String(const unsigned char * s) :
- std::basic_string<unsigned char>(s)
-{
-}
-
-ODBC::String::operator unsigned char * () const
-{
- return (unsigned char*)c_str();
-}
-
-ODBC::String
-ODBC::String::Format(const char * fmt, ...)
-{
- char * buf;
- va_list va;
- va_start(va, fmt);
- vasprintf(&buf, fmt, va);
- va_end(va);
- return buf;
-}
-