summaryrefslogtreecommitdiff
path: root/libodbcpp/ustring.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-06-11 09:03:42 +0000
committerrandomdan <randomdan@localhost>2010-06-11 09:03:42 +0000
commit1df33cc9d9a7804c78788d5717435ede44855ca0 (patch)
treeb78e66de0a9f7d6bb39038d6f628cbc871ffa652 /libodbcpp/ustring.cpp
parentInitial workings of project2 - renders gentoobrowse homepage (diff)
downloadlibdbpp-odbc-1df33cc9d9a7804c78788d5717435ede44855ca0.tar.bz2
libdbpp-odbc-1df33cc9d9a7804c78788d5717435ede44855ca0.tar.xz
libdbpp-odbc-1df33cc9d9a7804c78788d5717435ede44855ca0.zip
Use Glib::ustring in libodbcpp for data and std::string for non-data
Add support for parameters in SqlViews Uses parameters to implement category browse and search
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;
-}
-