summaryrefslogtreecommitdiff
path: root/libodbcpp/ustring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/ustring.cpp')
-rw-r--r--libodbcpp/ustring.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/libodbcpp/ustring.cpp b/libodbcpp/ustring.cpp
deleted file mode 100644
index dd8ee3b..0000000
--- a/libodbcpp/ustring.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <stdarg.h>
-#include <stdio.h>
-#include "ustring.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);
- if (vasprintf(&buf, fmt, va)) {
- buf = NULL;
- }
- va_end(va);
- return buf;
-}
-