FileList > cubrid > src > executables > csql_result_format.c
Go to the source code of this file
#include "config.h"
#include <float.h>
#include <time.h>
#include "csql.h"
#include "cnv.h"
#include "memory_alloc.h"
#include "language_support.h"
#include "string_opfunc.h"
#include "unicode_support.h"
#include "string_buffer.hpp"
#include "db_value_printer.hpp"
#include "dbtype.h"
Classes
Public Types
Public Static Attributes
Public Functions
| Type |
Name |
| char * |
csql_db_value_as_string (DB_VALUE * value, int * length, const CSQL_ARGUMENT * csql_arg)
|
| char * |
csql_string_to_plain_string (const char * string_value, int length, int * result_length)
|
| char * |
string_to_string (const char * string_value, char string_delimiter, char string_introducer, int length, int * result_length, bool plain_string, bool change_single_quote)
|
Public Static Functions
| Type |
Name |
| void |
add_commas (char * string)
|
| char * |
bigint_to_string (DB_BIGINT int_value, int field_width, bool leading_zeros, bool leading_symbol, bool commas, char conversion)
|
| char * |
bit_to_string (DB_VALUE * value, char string_delimiter, bool plain_string)
|
| char * |
conv_double_to_string (char * double_str, int * length)
|
| char * |
date_as_string (DB_DATE * date_value, int format)
|
| char * |
double_to_string (double double_value, int field_width, int precision, const bool leading_sign, const char * leading_str, const char * trailing_str, bool leading_zeros, bool trailing_zeros, bool commas, char conversion)
|
| char * |
duplicate_string (const char * string)
|
| int |
get_object_print_format (void)
|
| char * |
numeric_to_string (DB_VALUE * value, bool commas)
|
| char * |
object_to_string (DB_OBJECT * object, int format)
|
| char * |
set_to_string (DB_VALUE * value, char begin_notation, char end_notation, int max_entries, const CSQL_ARGUMENT * csql_arg)
|
| void |
strip_trailing_zeros (char * numeric_string)
|
| char * |
time_as_string (DB_TIME * time_value, const char * conversion)
|
Macros
Public Types Documentation
typedef DB_TYPE_BIGINT_PROFILE
typedef struct db_type_integer_profile DB_TYPE_BIGINT_PROFILE;
typedef DB_TYPE_DOUBLE_PROFILE
typedef struct db_type_double_profile DB_TYPE_DOUBLE_PROFILE;
typedef DB_TYPE_FLOAT_PROFILE
typedef struct db_type_double_profile DB_TYPE_FLOAT_PROFILE;
typedef DB_TYPE_INTEGER_PROFILE
typedef struct db_type_integer_profile DB_TYPE_INTEGER_PROFILE;
typedef DB_TYPE_NUMERIC_PROFILE
typedef struct db_type_double_profile DB_TYPE_NUMERIC_PROFILE;
typedef DB_TYPE_SHORT_PROFILE
typedef struct db_type_integer_profile DB_TYPE_SHORT_PROFILE;
enum csql__result__format_8c_1a68c01102755fc7d1c810bb0b0635fa90 {
DATE_FORMAT_FULL_TEXT,
DATE_FORMAT_ABREV_TEXT,
DATE_FORMAT_FULL_TEXT_W_DAY,
DATE_FORMAT_ABREV_TEXT_W_DAY,
DATE_FORMAT_FULL_EURO_TEXT,
DATE_FORMAT_ABREV_EURO_TEXT,
DATE_FORMAT_YYMMDD,
DATE_FORMAT_MMDDYY,
DATE_FORMAT_DDMMYY,
DATE_FORMAT_MMDDYYYY
};
enum csql__result__format_8c_1aa618c4d8c29ef4efe6f10c741fb1f47a {
OBJECT_FORMAT_OID,
OBJECT_FORMAT_CLASSNAME
};
Public Static Attributes Documentation
variable day_of_week_names
const char* day_of_week_names[];
variable default_bigint_profile
DB_TYPE_BIGINT_PROFILE default_bigint_profile;
variable default_date_profile
DB_TYPE_DATE_PROFILE default_date_profile;
variable default_double_profile
DB_TYPE_DOUBLE_PROFILE default_double_profile;
variable default_float_profile
DB_TYPE_FLOAT_PROFILE default_float_profile;
variable default_int_profile
DB_TYPE_INTEGER_PROFILE default_int_profile;
variable default_monetary_profile
DB_TYPE_MONETARY_PROFILE default_monetary_profile;
variable default_numeric_profile
DB_TYPE_NUMERIC_PROFILE default_numeric_profile;
variable default_set_profile
DB_TYPE_SET_PROFILE default_set_profile;
variable default_short_profile
DB_TYPE_SHORT_PROFILE default_short_profile;
variable default_string_profile
DB_TYPE_STRING_PROFILE default_string_profile;
variable default_time_profile
DB_TYPE_TIME_PROFILE default_time_profile;
variable month_of_year_names
const char* month_of_year_names[];
Public Functions Documentation
function csql_db_value_as_string
char * csql_db_value_as_string (
DB_VALUE * value,
int * length,
const CSQL_ARGUMENT * csql_arg
)
function csql_string_to_plain_string
char * csql_string_to_plain_string (
const char * string_value,
int length,
int * result_length
)
function string_to_string
char * string_to_string (
const char * string_value,
char string_delimiter,
char string_introducer,
int length,
int * result_length,
bool plain_string,
bool change_single_quote
)
Public Static Functions Documentation
function add_commas
static void add_commas (
char * string
)
function bigint_to_string
static char * bigint_to_string (
DB_BIGINT int_value,
int field_width,
bool leading_zeros,
bool leading_symbol,
bool commas,
char conversion
)
function bit_to_string
static char * bit_to_string (
DB_VALUE * value,
char string_delimiter,
bool plain_string
)
function conv_double_to_string
static char * conv_double_to_string (
char * double_str,
int * length
)
function date_as_string
static char * date_as_string (
DB_DATE * date_value,
int format
)
function double_to_string
static char * double_to_string (
double double_value,
int field_width,
int precision,
const bool leading_sign,
const char * leading_str,
const char * trailing_str,
bool leading_zeros,
bool trailing_zeros,
bool commas,
char conversion
)
function duplicate_string
static char * duplicate_string (
const char * string
)
static int get_object_print_format (
void
)
function numeric_to_string
static char * numeric_to_string (
DB_VALUE * value,
bool commas
)
function object_to_string
static char * object_to_string (
DB_OBJECT * object,
int format
)
function set_to_string
static char * set_to_string (
DB_VALUE * value,
char begin_notation,
char end_notation,
int max_entries,
const CSQL_ARGUMENT * csql_arg
)
function strip_trailing_zeros
static void strip_trailing_zeros (
char * numeric_string
)
function time_as_string
static char * time_as_string (
DB_TIME * time_value,
const char * conversion
)
Macro Definition Documentation
define CMSB
#define CMSB (
x
) `(( x ) & 0x80)`
define COMMAS_OFFSET
#define COMMAS_OFFSET (
COND,
N
) `(( COND ) == TRUE ? ((N) / 3) : 0)`
define COMMA_CHAR
define DATE_ABREV_NAME_LENGTH
#define DATE_ABREV_NAME_LENGTH `3`
define DATE_TEMP_BUFFER_LENGTH
#define DATE_TEMP_BUFFER_LENGTH `50`
#define DOUBLE_FORMAT_DECIMAL `'f'`
#define DOUBLE_FORMAT_GENERAL `'g'`
#define DOUBLE_FORMAT_SCIENTIFIC `' e '`
#define FORMERBYTE (
x
) `(( UX_CHAR )((( unsigned )( x ) & 0xff00) >> 8))`
#define INT_FORMAT_CHARACTER `'c'`
#define INT_FORMAT_HEXADECIMAL `' x '`
#define INT_FORMAT_OCTAL `'o'`
#define INT_FORMAT_SIGNED_DECIMAL `'d'`
#define INT_FORMAT_UNSIGNED_DECIMAL `'u'`
define LATTERBYTE
#define LATTERBYTE (
x
) `(( UX_CHAR )(( x ) & 0xff))`
define MAX_DOUBLE_STRING
#define MAX_DOUBLE_STRING `512`
define OBJECT_SYMBOL_MAX
#define OBJECT_SYMBOL_MAX `512`
define OID_LENGTH
define SHORT_TO_INT
#define SHORT_TO_INT (
short_val
) `(( int )short_val)`
#define TIME_FORMAT_TWELVE_HOUR `"%I:% M: %S % p"`
#define TIME_FORMAT_TWELVE_HOUR_W_TIMEZONE `"%I:% M: %S % p % Z"`
#define TIME_FORMAT_TWENTY_FOUR_HOUR `"%H:% M: % S"`
#define TIME_FORMAT_TWENTY_FOUR_HOUR_W_TIMEZONE `"%H:% M: %S % Z"`
define TIME_STRING_MAX
#define TIME_STRING_MAX `20`
define UX_CHAR
#define UX_CHAR `wchar_t`
The documentation for this class was generated from the following file cubrid/src/executables/csql_result_format.c