NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
convert.h File Reference
#include <freetds/pushvis.h>
#include <freetds/popvis.h>
+ Include dependency graph for convert.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

union  conv_result
 
struct  conv_result::cc_t
 
struct  conv_result::cb_t
 

Macros

#define TDS_CONVERT_FAIL   -1 /* unspecified failure */
 
#define TDS_CONVERT_NOAVAIL   -2 /* conversion does not exist */
 
#define TDS_CONVERT_SYNTAX   -3 /* syntax error in source field */
 
#define TDS_CONVERT_NOMEM   -4 /* insufficient memory */
 
#define TDS_CONVERT_OVERFLOW   -5 /* result too large */
 
#define TDS_CONVERT_CHAR   256
 
#define TDS_CONVERT_BINARY   257
 

Typedefs

typedef union conv_result CONV_RESULT
 

Functions

unsigned char tds_willconvert (int srctype, int desttype)
 Test if a conversion is possible. More...
 
TDS_SERVER_TYPE tds_get_null_type (TDS_SERVER_TYPE srctype)
 Get same type but nullable. More...
 
ssize_t tds_char2hex (TDS_CHAR *dest, size_t destlen, const TDS_CHAR *src, size_t srclen)
 
TDS_INT tds_convert (const TDSCONTEXT *context, int srctype, const TDS_CHAR *src, TDS_UINT srclen, int desttype, CONV_RESULT *cr)
 tds_convert convert a type to another. More...
 
size_t tds_strftime (char *buf, size_t maxsize, const char *format, const TDSDATEREC *timeptr, int prec)
 format a date string according to an "extended" strftime(3) formatting definition. More...
 

Macro Definition Documentation

◆ TDS_CONVERT_BINARY

#define TDS_CONVERT_BINARY   257

Definition at line 84 of file convert.h.

◆ TDS_CONVERT_CHAR

#define TDS_CONVERT_CHAR   256

Definition at line 83 of file convert.h.

◆ TDS_CONVERT_FAIL

#define TDS_CONVERT_FAIL   -1 /* unspecified failure */

Definition at line 76 of file convert.h.

◆ TDS_CONVERT_NOAVAIL

#define TDS_CONVERT_NOAVAIL   -2 /* conversion does not exist */

Definition at line 77 of file convert.h.

◆ TDS_CONVERT_NOMEM

#define TDS_CONVERT_NOMEM   -4 /* insufficient memory */

Definition at line 79 of file convert.h.

◆ TDS_CONVERT_OVERFLOW

#define TDS_CONVERT_OVERFLOW   -5 /* result too large */

Definition at line 80 of file convert.h.

◆ TDS_CONVERT_SYNTAX

#define TDS_CONVERT_SYNTAX   -3 /* syntax error in source field */

Definition at line 78 of file convert.h.

Typedef Documentation

◆ CONV_RESULT

typedef union conv_result CONV_RESULT
Modified on Fri Sep 20 14:57:06 2024 by modify_doxy.py rev. 669887