|
NCBI C++ ToolKit
|
#include "common.h"#include <freetds/convert.h>#include <freetds/utils/smp.h>#include <freetds/test_assert.h>
Include dependency graph for convert_bounds.c:Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
| struct | type_desc |
Functions | |
| static TDS_INT | convert_and_free (int srctype, const void *src, TDS_UINT srclen, int desttype, CONV_RESULT *cr) |
| static bool | is_valid (const char *num, int type, CONV_RESULT *cr) |
| static double | convert_to_float (smp n, int type) |
| static int64_t | get_float_precision_factor (smp n, int type) |
| static void | real_test (smp n, int type, bool is_integer) |
| static void | double_to_string (char *out, double d) |
| int | main (int argc, char **argv) |
Variables | |
| static TDSCONTEXT * | ctx |
| static const type_desc | number_types [] |
| static const char * | bounds [] |
|
static |
Definition at line 111 of file convert_bounds.c.
References conv_result::c, ctx, free(), conv_result::n, tdsnumeric::precision, tdsnumeric::scale, SYBBINARY, SYBCHAR, SYBIMAGE, SYBLONGBINARY, SYBTEXT, SYBVARBINARY, SYBVARCHAR, tds_convert, XSYBBINARY, XSYBCHAR, XSYBVARBINARY, and XSYBVARCHAR.
Referenced by is_valid(), and real_test().
Definition at line 225 of file convert_bounds.c.
References assert, n, smp_to_double, SYBFLT8, and SYBREAL.
Referenced by get_float_precision_factor(), and real_test().
|
static |
Definition at line 268 of file convert_bounds.c.
References free(), n, negative(), out(), smp_add, smp_negate, smp_one, smp_to_string, and smp_zero.
Referenced by real_test().
Definition at line 248 of file convert_bounds.c.
References convert_to_float(), n, orig, smp_add, smp_from_int, and smp_sub.
Referenced by real_test().
|
static |
Definition at line 212 of file convert_bounds.c.
References convert_and_free(), and SYBVARCHAR.
Referenced by CUpdateReplacedECNumbers::apply(), Blast_ScoreBlkKbpUngappedCalc(), NJ_TreeAlgorithm::ComputeTree(), CNCActiveSyncControl::GetNextTask(), IPSGS_Processor::GetProcessInvokeTimestamp(), IPSGS_Processor::GetSignalFinishTimestamp(), IPSGS_Processor::GetSignalStartTimestamp(), CPSGS_Dispatcher::PopulateStatus(), real_test(), CValidError_desc::ValidateDblink(), CValidError_desc::ValidateStructuredComment(), CValidError_desc::ValidateStructuredCommentGeneric(), CQuerySplitter::x_ComputeContextOffsets_NonTranslatedQueries(), CQuerySplitter::x_ComputeContextOffsets_TranslatedQueries(), CNCPeerControl::x_DoReleaseConn(), CKeywordsItem::x_GatherInfo(), CSplitQueryTestFixture::x_ReadSplitQueryInfoForTest(), CValidError_desc::x_ValidateStructuredComment(), and CNCMessageHandler::x_WaitForBlobAccess().
Definition at line 83 of file convert_bounds.c.
References assert, bound(), bounds, ctx, tds_locale::datetime_fmt, tds_context::locale, n, NULL, number_types, real_test(), smp_from_string, STD_DATETIME_FMT, strdup, t, tds_alloc_context, and tds_free_context.
Definition at line 133 of file convert_bounds.c.
References tdsnumeric::array, assert, convert_and_free(), convert_to_float(), double_to_string(), exit(), free(), get_float_precision_factor(), i, is_valid(), conv_result::n, n, NULL, number_types, result, smp_add, smp_from_int, smp_from_string, smp_is_zero, smp_negate, smp_to_string, SYBNUMERIC, t, TDS_CONVERT_OVERFLOW, tds_prtype, and TDS_ZERO_FREE.
Referenced by main().
|
static |
Definition at line 62 of file convert_bounds.c.
Referenced by CCompartmentAccessor< THit >::AsSeqAlignSet(), CHitGlyph::CHitGlyph(), CDockPanel::DropTest(), CReadBlastApp::getBounds(), CMinPanelContainer::Layout(), main(), CProSplignText::Output(), CSearch_Base< LEGACY, NHITS, derived_t >::ProcessBoundaryOffset(), CReadBlastApp::StoreBlast(), CSeq_align_Mapper_Base::x_GetDstSpliced(), and CGvfReader::xFeatureSetLocationPoint().
|
static |
Definition at line 36 of file convert_bounds.c.
Referenced by convert_and_free(), and main().
Definition at line 44 of file convert_bounds.c.
Referenced by main(), and real_test().