NCBI C++ ToolKit
|
#include "common.h"
#include <freetds/iconv.h>
#include <freetds/stream.h>
#include <common/test_assert.h>
Go to the source code of this file.
Go to the SVN repository for this file.
Enumerations | |
enum | Odd { ODD_NONE = 0 , ODD_NORMAL , ODD_INVALID , ODD_INCOMPLETE , ODD_NUM_VALUES , ODD_NONE = 0 , ODD_NORMAL , ODD_INVALID , ODD_INCOMPLETE , ODD_NUM_VALUES } |
Functions | |
static TDSRET | convert (TDSSOCKET *tds, TDSICONV *conv, TDS_ICONV_DIRECTION direction, const char *from, size_t from_len, char *dest, size_t *dest_len) |
static int | add_odd (char *buf, int *pos, enum Odd type) |
static void | add_odd2 (char *buf, int *pos, enum Odd type) |
static int | err_handler (const TDSCONTEXT *tds_ctx, TDSSOCKET *tds, TDSMESSAGE *msg) |
static void | test (TDSSOCKET *tds, enum Odd odd_type) |
static void | big_test (TDSSOCKET *tds) |
int | main (int argc, char **argv) |
Variables | |
static char | buf [4096+80] |
static char | buf_out [4096+80] |
static int | last_errno = 0 |
static const char * | odd_names [] |
static int | captured_errno = 0 |
static TDSICONV * | conv = NULL |
static int | pos_type = 0 |
enum Odd |
Enumerator | |
---|---|
ODD_NONE | |
ODD_NORMAL | |
ODD_INVALID | |
ODD_INCOMPLETE | |
ODD_NUM_VALUES | |
ODD_NONE | |
ODD_NORMAL | |
ODD_INVALID | |
ODD_INCOMPLETE | |
ODD_NUM_VALUES |
Definition at line 83 of file charconv.c.
Definition at line 96 of file charconv.c.
References assert, buf, EILSEQ, ODD_INCOMPLETE, ODD_INVALID, ODD_NONE, and ODD_NORMAL.
Referenced by test().
Definition at line 128 of file charconv.c.
References assert, buf, ODD_INCOMPLETE, ODD_INVALID, ODD_NONE, and ODD_NORMAL.
Referenced by test().
Definition at line 260 of file charconv.c.
References assert, buf, buf_out, captured_errno, conv, convert(), exit(), i, last_errno, tds, TDS_FAILED, TDS_SUCCEED, and to_client.
Referenced by main().
|
static |
Definition at line 57 of file charconv.c.
References assert, tds_output_stream::buf_len, conv, free(), in(), last_errno, out(), r(), tds_staticout_stream::stream, tds, tds_convert_stream, tds_new, tds_staticin_stream_init, and tds_staticout_stream_init.
Referenced by big_test(), xml::attributes::attr::erase_namespace(), CNSeq::Init(), IsConversionPossible(), odbc_stat_execute(), CLocalFileRestorer::RestoreFile(), CAsn2Asn::RunAsn2Asn(), s_SeqDBMapNA2ToNA4Setup(), xml::attributes::attr::set_namespace(), xml::attributes::attr::set_value(), CGffExporter::SetObjects(), test(), CLocalFileRestorer::x_AttachNewObject(), and CBLASTToolManager::x_SelectCompatibleInputObjects().
|
static |
Definition at line 151 of file charconv.c.
References assert, captured_errno, EILSEQ, exit(), tds_message::message, tds_message::msgno, TDS_INT_CANCEL, TDSEICONVAVAIL, and TDSEICONVIU.
Referenced by main().
Definition at line 305 of file charconv.c.
References big_test(), tds_socket::conn, conv, ctx, err_handler(), i, n, NULL, ODD_NUM_VALUES, pos_type, tds, tds_alloc_context, tds_alloc_socket, tds_free_context, tds_free_socket, tds_iconv_get, tds_iconv_open, tdsdump_open, and test().
Definition at line 172 of file charconv.c.
References add_odd(), add_odd2(), assert, buf, buf_out, captured_errno, conv, convert(), exit(), i, last_errno, ODD_INCOMPLETE, ODD_INVALID, odd_names, ODD_NORMAL, pos_type, tds, TDS_FAILED, TDS_SUCCEED, and to_server.
Referenced by main().
|
static |
Definition at line 51 of file charconv.c.
Referenced by add_odd(), add_odd2(), big_test(), and test().
|
static |
Definition at line 52 of file charconv.c.
Referenced by big_test(), and test().
|
static |
Definition at line 148 of file charconv.c.
Referenced by big_test(), err_handler(), and test().
Definition at line 168 of file charconv.c.
Referenced by big_test(), convert(), NStr::DoubleToString(), GenBankAscii(), GenBankAsciiOrig(), main(), odbc_convert_char(), odbc_sql2tds(), CDataMiningPanel::OnUpdateCreateFeature(), ScanSequence(), tds_get_string(), tds_iconv(), tds_iconv_reset(), test(), TreePrint(), unfinished_query_test(), CHgvsNaIrepReader::x_CreateConversionVarref(), and CDataMiningPanel::x_CreateFeature().
|
static |
Definition at line 54 of file charconv.c.
Referenced by big_test(), convert(), and test().
|
static |
Definition at line 91 of file charconv.c.
Referenced by test().
|
static |
Definition at line 169 of file charconv.c.
Referenced by CFastaReader::GetCurrentPos(), mu::ParserInt::IsHexVal(), main(), and test().