1 #ifndef DBAPI_DRIVER_ODBC___DBAPI_DRIVER_ODBC_UTILS__HPP
2 #define DBAPI_DRIVER_ODBC___DBAPI_DRIVER_ODBC_UTILS__HPP
50 string::size_type
size = string::npos,
61 wstring::size_type
size = wstring::npos,
99 # define _T_NCBI_ODBC(x) L ## x
101 # define _T_NCBI_ODBC(x) x
109 #if defined(UNICODE) || defined(_UNICODE) || defined(UCS2)
110 return CUtf8::AsBasicString<TSqlChar>(
CUtf8::AsUTF8(s, enc));
124 wstring
operator+(
const wstring& str1,
const string& str2)
142 return ::wcsncmp(str1, str2,
count);
160 int strcmp(
const char* str1,
const char* str2)
167 int strcmp(
const wchar_t* str1,
const wchar_t* str2)
169 return ::wcscmp(str1, str2);
Convenience extension of basic_string, supporting implicit conversion to const TChar* in most situati...
CODBCString(SQLCHAR *str, EEncoding enc=eEncoding_Unknown)
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static const char * str(char *buf, int n)
CGenericSqlString< char > CSqlString
void x_MakeString(EEncoding str_enc=eEncoding_Unknown) const
int GetAvailableValueType(void) const
list< SDriverInfo > TDriverInfoList
List of driver information.
EEntryPointRequest
Actions performed by the entry point.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string AsSingleByteString(const CTempString &src, EEncoding encoding, const char *substitute_on_error=0, EValidate validate=eNoValidate)
Convert UTF8 string into a single-byte character representation.
const char * data(void) const
Return a pointer to the array represented.
static CStringUTF8 AsUTF8(const CTempString &src, EEncoding encoding, EValidate validate=eNoValidate)
Convert into UTF8 from a C/C++ string.
size_type size(void) const
Return the length of the represented array.
@ eEncoding_ISO8859_1
Note: From the point of view of the C++.
#define NCBI_DBAPIDRIVER_ODBC_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
int strncmp(const char *str1, const SQLCHAR *str2, size_t count)
int strncmp(const char *str1, const char *str2, size_t count)
int strcmp(const char *str1, const char *str2)
int strcmp(const wchar_t *str1, const wchar_t *str2)
void NCBI_EntryPoint_xdbapi_odbc(CPluginManager< I_DriverContext >::TDriverInfoList &info_list, CPluginManager< I_DriverContext >::EEntryPointRequest method)
TSqlString x_MakeTSqlString(const CTempString &s, EEncoding enc)
wstring operator+(const wstring &str1, const string &str2)
CGenericSqlString< TSqlChar > TSqlString