Skip to content

File string_opfunc.c

FileList > cubrid > src > query > string_opfunc.c

Go to the source code of this file

  • #include "config.h"
  • #include <assert.h>
  • #include <ctype.h>
  • #include <string.h>
  • #include <errno.h>
  • #include <math.h>
  • #include <sys/timeb.h>
  • #include "string_opfunc.h"
  • #include "chartype.h"
  • #include "system_parameter.h"
  • #include "intl_support.h"
  • #include "error_manager.h"
  • #include "tz_support.h"
  • #include "db_date.h"
  • #include "misc_string.h"
  • #include "crypt_opfunc.h"
  • #include "base64.h"
  • #include "object_primitive.h"
  • #include "object_representation.h"
  • #include "dbtype.h"
  • #include "elo.h"
  • #include "es_common.h"
  • #include "db_elo.h"
  • #include "string_regex.hpp"
  • #include "util_func.h"
  • #include <algorithm>
  • #include <string>
  • #include <locale>
  • #include "misctype_def.h"
  • #include "memory_wrapper.hpp"

Classes

Type Name
struct date_time_info

Public Types

Type Name
typedef struct date_time_info DATE_TIME_INFO
enum EN_COMPOSITE_POS
enum NUMBER_FORMAT
enum QSTR_CATEGORY
enum STRING_DATE_TOKEN
enum string__opfunc_8c_1abe821d0fac05333be298917dcb50ee1d

Public Attributes

Type Name
const char AM_PM_parse_order = /* multi line expression */
const char * Am_Pm_name_EUCKR = /* multi line expression */
const char * Am_Pm_name_ISO = /* multi line expression */
const char * Am_Pm_name_UTF8 = /* multi line expression */
const char * Day_name_EUCKR = /* multi line expression */
const char * Day_name_ISO = /* multi line expression */
const char * Day_name_UTF8 = /* multi line expression */
const char Day_name_parse_order = /* multi line expression */
const char * Month_name_EUCKR = /* multi line expression */
const char * Month_name_ISO = /* multi line expression */
const char * Month_name_UTF8 = /* multi line expression */
const char Month_name_parse_order = /* multi line expression */
const char * Short_Day_name_EUCKR = /* multi line expression */
const char * Short_Day_name_ISO = /* multi line expression */
const char * Short_Day_name_UTF8 = /* multi line expression */
const char Short_Day_name_parse_order = /* multi line expression */
const char * Short_Month_name_EUCKR = /* multi line expression */
const char * Short_Month_name_ISO = /* multi line expression */
const char * Short_Month_name_UTF8 = /* multi line expression */
const char Short_Month_name_parse_order = /* multi line expression */

Public Static Attributes

Type Name
const int cumulative_days_per_month = /* multi line expression */
const int days_per_month = /* multi line expression */

Public Functions

Type Name
int bit_compare (const unsigned char * string1, int size1, const unsigned char * string2, int size2)
int char_compare (const unsigned char * string1, int size1, const unsigned char * string2, int size2)
int count_leap_years_up_to (int year)
int count_nonleap_years_up_to (int year)
int db_add_days_to_year (const DB_VALUE * src_year, const DB_VALUE * src_days, DB_VALUE * result)
int db_add_months (const DB_VALUE * src_date, const DB_VALUE * nmonth, DB_VALUE * result_date)
int db_add_time (const DB_VALUE * left, const DB_VALUE * right, DB_VALUE * result, const TP_DOMAIN * domain)
int db_ascii (const DB_VALUE * param, DB_VALUE * result)
int db_bigint_to_binary_string (const DB_VALUE * src_bigint, DB_VALUE * result)
int db_bit_string_coerce (const DB_VALUE * src_string, DB_VALUE * dest_string, DB_DATA_STATUS * data_status)
int db_bit_to_blob (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_blob_from_file (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_blob_length (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_blob_to_bit (const DB_VALUE * src_value, const DB_VALUE * length_value, DB_VALUE * result_value)
int db_char_string_coerce (const DB_VALUE * src_string, DB_VALUE * dest_string, DB_DATA_STATUS * data_status)
int db_char_to_blob (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_char_to_clob (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_clob_from_file (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_clob_length (const DB_VALUE * src_value, DB_VALUE * result_value)
int db_clob_to_char (const DB_VALUE * src_value, const DB_VALUE * codeset_value, DB_VALUE * result_value)
int db_compress_like_pattern (const DB_VALUE *const pattern, DB_VALUE * compressed_pattern, const bool has_escape_char, const char * escape_str)
int db_conv (const DB_VALUE * num, const DB_VALUE * from_base, const DB_VALUE * to_base, DB_VALUE * result)
int db_conv_tz (DB_VALUE * time_val, DB_VALUE * result_time)
int db_convert_sec_to_time (const DB_VALUE * src, DB_VALUE * result)
int db_convert_time_to_sec (const DB_VALUE * src_date, DB_VALUE * result)
int db_convert_to_time (const DB_VALUE * src_hour, const DB_VALUE * src_minute, const DB_VALUE * src_second, DB_VALUE * result)
int db_date_add_interval_days (DB_VALUE * result, const DB_VALUE * date, const DB_VALUE * db_days)
int db_date_add_interval_expr (DB_VALUE * result, const DB_VALUE * date, const DB_VALUE * expr, const int unit)
int db_date_dbval (DB_VALUE * result, const DB_VALUE * date_value, const TP_DOMAIN * domain)
int db_date_diff (const DB_VALUE * date_value1, const DB_VALUE * date_value2, DB_VALUE * result)
int db_date_format (const DB_VALUE * date_value, const DB_VALUE * format, const DB_VALUE * date_lang, DB_VALUE * result, const TP_DOMAIN * domain)
int db_date_sub_interval_days (DB_VALUE * result, const DB_VALUE * date, const DB_VALUE * db_days)
int db_date_sub_interval_expr (DB_VALUE * result, const DB_VALUE * date, const DB_VALUE * expr, const int unit)
int db_datetime_to_timestamp (const DB_VALUE * src_datetime, DB_VALUE * result_timestamp)
int db_find_string_in_in_set (const DB_VALUE * needle, const DB_VALUE * stack, DB_VALUE * result)
int db_format (const DB_VALUE * value, const DB_VALUE * decimals, const DB_VALUE * number_lang, DB_VALUE * result, const TP_DOMAIN * domain)
int db_from_tz (DB_VALUE * time_val, DB_VALUE * tz, DB_VALUE * time_val_with_tz)
int db_from_unixtime (const DB_VALUE * src_value, const DB_VALUE * format, const DB_VALUE * date_lang, DB_VALUE * result, const TP_DOMAIN * domain)
int db_get_cs_coll_info (DB_VALUE * result, const DB_VALUE * val, const int mode)
int db_get_date_dayofyear (const DB_VALUE * src_date, DB_VALUE * result)
int db_get_date_format (const DB_VALUE * format_str, TIMESTAMP_FORMAT * format)
int db_get_date_from_days (const DB_VALUE * src, DB_VALUE * result)
int db_get_date_quarter (const DB_VALUE * src_date, DB_VALUE * result)
int db_get_date_totaldays (const DB_VALUE * src_date, DB_VALUE * result)
int db_get_date_week (const DB_VALUE * src_date, const DB_VALUE * mode, DB_VALUE * result)
int db_get_datetime_from_dbvalue (const DB_VALUE * src_date, int * year, int * month, int * day, int * hour, int * minute, int * second, int * millisecond, const char ** endp)
int db_get_info_for_like_optimization (const DB_VALUE *const pattern, const bool has_escape_char, const char * escape_str, int *const num_logical_chars, int *const last_safe_logical_pos, int *const num_match_many, int *const num_match_one)
int db_get_like_optimization_bounds (const DB_VALUE *const pattern, DB_VALUE * bound, const bool has_escape_char, const char * escape_str, const bool compute_lower_bound, const int last_safe_logical_pos)
int db_get_string_length (const DB_VALUE * value)
int db_get_time_from_dbvalue (const DB_VALUE * src_date, int * hour, int * minute, int * second, int * millisecond)
int db_hex (const DB_VALUE * param, DB_VALUE * result)
int db_inet_aton (DB_VALUE * result_numbered_ip, const DB_VALUE * string)
int db_inet_ntoa (DB_VALUE * result_ip_string, const DB_VALUE * number)
int db_json_convert_to_utf8 (DB_VALUE * dbval)
int db_json_copy_and_convert_to_utf8 (const DB_VALUE * src_dbval, DB_VALUE * dest_dbval, const DB_VALUE ** json_str_dbval)
int db_last_day (const DB_VALUE * src_date, DB_VALUE * result_day)
int db_like_bound (const DB_VALUE *const src_pattern, const DB_VALUE *const src_escape, DB_VALUE *const result_bound, const bool compute_lower_bound)
int db_months_between (const DB_VALUE * start_mon, const DB_VALUE * end_mon, DB_VALUE * result_mon)
int db_new_time (DB_VALUE * time_val, DB_VALUE * tz_source, DB_VALUE * tz_dest, DB_VALUE * result_time)
int db_null_terminate_string (const DB_VALUE * src_value, char ** strp)
int db_str_to_date (const DB_VALUE * str, const DB_VALUE * format, const DB_VALUE * date_lang, DB_VALUE * result, TP_DOMAIN * domain)
int db_string_aes_decrypt (DB_VALUE const * src, DB_VALUE const * key, DB_VALUE * result)
int db_string_aes_encrypt (DB_VALUE const * src, DB_VALUE const * key, DB_VALUE * result)
int db_string_bit_length (const DB_VALUE * string, DB_VALUE * bit_count)
int db_string_byte_length (const DB_VALUE * string, DB_VALUE * byte_count)
int db_string_char_length (const DB_VALUE * string, DB_VALUE * char_count)
int db_string_chr (DB_VALUE * res, DB_VALUE * dbval1, DB_VALUE * dbval2)
int db_string_compare (const DB_VALUE * string1, const DB_VALUE * string2, DB_VALUE * result)
int db_string_concatenate (const DB_VALUE * string1, const DB_VALUE * string2, DB_VALUE * result, DB_DATA_STATUS * data_status)
int db_string_convert_to (const DB_VALUE * src_str_dbval, DB_VALUE * dest_str_dbval, INTL_CODESET dest_codeset, int dest_col)
int db_string_elt (DB_VALUE * result, DB_VALUE * arg, int const num_args)
int db_string_escape_str (const char * src_str, size_t src_size, char ** res_string, size_t * dest_size)
int db_string_extract_dbval (const MISC_OPERAND extr_operand, DB_VALUE * dbval_p, DB_VALUE * result_p, TP_DOMAIN * domain_p)
int db_string_fix_string_size (DB_VALUE * src_string)
int db_string_from_base64 (DB_VALUE const * src, DB_VALUE * result)
int db_string_index_prefix (const DB_VALUE * string1, const DB_VALUE * string2, const DB_VALUE * index_type, DB_VALUE * prefix_index)
int db_string_insert_substring (DB_VALUE * src_string, const DB_VALUE * position, const DB_VALUE * length, DB_VALUE * sub_string, DB_VALUE * result)
int db_string_instr (const DB_VALUE * src_string, const DB_VALUE * sub_string, const DB_VALUE * start_pos, DB_VALUE * result)
int db_string_like (const DB_VALUE * src_string, const DB_VALUE * pattern, const DB_VALUE * esc_char, int * result)
int db_string_limit_size_string (DB_VALUE * src_string, DB_VALUE * result, const int new_size, int * spare_bytes)
int db_string_lower (const DB_VALUE * string, DB_VALUE * lower_string)
int db_string_make_empty_typed_string (DB_VALUE * db_val, const DB_TYPE db_type, int precision, int codeset, int collation_id)
int db_string_md5 (DB_VALUE const * val, DB_VALUE * result)
int db_string_pad (const MISC_OPERAND pad_operand, const DB_VALUE * src_string, const DB_VALUE * pad_length, const DB_VALUE * pad_charset, DB_VALUE * padded_string)
int db_string_position (const DB_VALUE * sub_string, const DB_VALUE * src_string, DB_VALUE * result)
int db_string_quote (const DB_VALUE * str, DB_VALUE * res)
int db_string_regexp_count (DB_VALUE * result, DB_VALUE * args, int const num_args, cub_compiled_regex ** comp_regex)
int db_string_regexp_instr (DB_VALUE * result, DB_VALUE * args, int const num_args, cub_compiled_regex ** comp_regex)
int db_string_regexp_like (DB_VALUE * result, DB_VALUE * args, int const num_args, cub_compiled_regex ** comp_regex)
int db_string_regexp_replace (DB_VALUE * result, DB_VALUE * args, int const num_args, cub_compiled_regex ** comp_regex)
int db_string_regexp_substr (DB_VALUE * result, DB_VALUE * args, int const num_args, cub_compiled_regex ** comp_regex)
int db_string_repeat (const DB_VALUE * src_string, const DB_VALUE * count, DB_VALUE * result)
int db_string_replace (const DB_VALUE * src_string, const DB_VALUE * srch_string, const DB_VALUE * repl_string, DB_VALUE * replaced_string)
int db_string_reverse (const DB_VALUE * src_str, DB_VALUE * result_str)
int db_string_rlike (const DB_VALUE * src, const DB_VALUE * pattern, const DB_VALUE * case_sensitive, cub_compiled_regex ** comp_regex, int * result)
int db_string_sha_one (DB_VALUE const * src, DB_VALUE * result)
int db_string_sha_two (DB_VALUE const * src, DB_VALUE const * hash_len, DB_VALUE * result)
int db_string_space (DB_VALUE const * count, DB_VALUE * result)
int db_string_substring (const MISC_OPERAND substr_operand, const DB_VALUE * src_string, const DB_VALUE * start_position, const DB_VALUE * extraction_length, DB_VALUE * sub_string)
int db_string_substring_index (DB_VALUE * src_string, DB_VALUE * delim_string, const DB_VALUE * count, DB_VALUE * result)
int db_string_to_base64 (DB_VALUE const * src, DB_VALUE * result)
int db_string_translate (const DB_VALUE * src_string, const DB_VALUE * from_string, const DB_VALUE * to_string, DB_VALUE * transed_string)
int db_string_trim (const MISC_OPERAND tr_operand, const DB_VALUE * trim_charset, const DB_VALUE * src_string, DB_VALUE * trimmed_string)
int db_string_unique_prefix (const DB_VALUE * db_string1, const DB_VALUE * db_string2, DB_VALUE * db_result, TP_DOMAIN * key_domain)
int db_string_upper (const DB_VALUE * string, DB_VALUE * upper_string)
int db_sys_date (DB_VALUE * result_date)
int db_sys_date_and_epoch_time (DB_VALUE * dt_dbval, DB_VALUE * ts_dbval)
int db_sys_datetime (DB_VALUE * result_datetime)
int db_sys_time (DB_VALUE * result_time)
int db_sys_timestamp (DB_VALUE * result_timestamp)
int db_sys_timezone (DB_VALUE * result_timezone)
int db_time_dbval (DB_VALUE * result, const DB_VALUE * datetime_value, const TP_DOMAIN * domain)
int db_time_diff (const DB_VALUE * val1, const DB_VALUE * val2, DB_VALUE * result)
int db_time_format (const DB_VALUE * time_value, const DB_VALUE * format, const DB_VALUE * date_lang, DB_VALUE * result, const TP_DOMAIN * domain)
int db_timestamp (const DB_VALUE * src_datetime1, const DB_VALUE * src_time2, DB_VALUE * result_datetime)
int db_timestamp_to_datetime (const DB_VALUE * src_timestamp, DB_VALUE * result_datetime)
int db_to_char (const DB_VALUE * src_value, const DB_VALUE * format_or_length, const DB_VALUE * lang_str, DB_VALUE * result_str, const TP_DOMAIN * domain)
int db_to_date (const DB_VALUE * src_str, const DB_VALUE * format_str, const DB_VALUE * date_lang, DB_VALUE * result_date)
int db_to_datetime (const DB_VALUE * src_str, const DB_VALUE * format_str, const DB_VALUE * date_lang, const DB_TYPE type, DB_VALUE * result_datetime)
int db_to_number (const DB_VALUE * src_str, const DB_VALUE * format_str, const DB_VALUE * number_lang, DB_VALUE * result_num)
int db_to_time (const DB_VALUE * src_str, const DB_VALUE * format_str, const DB_VALUE * date_lang, const DB_TYPE type, DB_VALUE * result_time)
int db_to_timestamp (const DB_VALUE * src_str, const DB_VALUE * format_str, const DB_VALUE * date_lang, const DB_TYPE type, DB_VALUE * result_timestamp)
int db_tz_offset (const DB_VALUE * src_str, DB_VALUE * result_str, DB_DATETIME * datetime)
int db_unix_timestamp (const DB_VALUE * src_date, DB_VALUE * result_timestamp)
int db_value_to_enumeration_value (const DB_VALUE * src, DB_VALUE * result, const TP_DOMAIN * enum_domain)
int get_day (int month, int day, int year)
int get_last_day (int month, int year)
void init_builtin_calendar_names (LANG_LOCALE_DATA * lld)
int qstr_bin_to_hex (char * dest, int dest_size, const char * src, int src_size)
int qstr_bit_to_bin (char * dest, int dest_size, const char * src, int src_size)
void qstr_bit_to_hex_coerce (char * buffer, int buffer_size, const char * src, int src_length, int pad_flag, int * copy_size, int * truncation)
int qstr_compare (const unsigned char * string1, int size1, const unsigned char * string2, int size2)
int qstr_hex_to_bin (char * dest, int dest_size, const char * src, int src_size)
void qstr_make_typed_string (const DB_TYPE db_type, DB_VALUE * value, const int precision, DB_CONST_C_CHAR src, const int s_unit, const int codeset, const int collation_id)
unsigned char * qstr_pad_string (unsigned char * s, int length, INTL_CODESET codeset)
void qstr_trim_trailing (const unsigned char * trim_charset_ptr, int trim_charset_size, const unsigned char * src_ptr, DB_TYPE src_type, int src_length, int src_size, INTL_CODESET codeset, int * trail_trimmed_length, int * trail_trimmed_size, bool trim_ascii_spaces)
int varbit_compare (const unsigned char * string1, int size1, const unsigned char * string2, int size2)

Public Static Functions

Type Name
int add_and_normalize_date_time (int * years, int * months, int * days, int * hours, int * minutes, int * seconds, int * milliseconds, const DB_BIGINT * composite_values)
int adjust_precision (char * data, int precision, int scale)
void bit_ncat (unsigned char * r, int offset, const unsigned char * s, int n)
int bstring_fls (const char * s, int n)
long calc_unix_timestamp (struct tm * time_argument)
int check_date_lang_on_prepared (const DB_VALUE * date_lang, INTL_LANG * date_lang_id, bool * has_user_fmt)
void convert_locale_number (char * sz, const int size, const INTL_LANG src_locale, const INTL_LANG dst_locale)
int date_to_char (const DB_VALUE * src_value, const DB_VALUE * format_str, const DB_VALUE * date_lang, DB_VALUE * result_str, const TP_DOMAIN * domain)
bool db_check_datetime_format (const DB_VALUE * value_ptr)
int db_check_or_create_null_term_string (const DB_VALUE * str_val, char * pre_alloc_buf, int pre_alloc_buf_size, bool ignore_prec_spaces, bool ignore_trail_spaces, char ** str_out, bool * do_alloc)
int db_date_add_sub_interval_composite_value (const char * expr_s, int unit, DB_BIGINT * values, int * is_positive_value)
int db_date_add_sub_interval_days (DB_VALUE * result, const DB_VALUE * date, const DB_VALUE * db_days, bool is_add)
int db_date_add_sub_interval_expr (DB_VALUE * result, const DB_VALUE * date, const DB_VALUE * expr, const int unit, int is_add)
int db_get_next_like_pattern_character (const char *const pattern, const int length, const INTL_CODESET codeset, const bool has_escape_char, const char * escape_str, int *const position, char ** crt_char_p, bool *const is_escaped)
int db_round_dbvalue_to_int (const DB_VALUE * src, int * result)
char db_string_escape_char (char c)
int db_string_prefix_compare (const DB_VALUE * string1, const DB_VALUE * string2, DB_VALUE * result)
int get_cur_month (void)
int get_cur_year (void)
int get_date_time_info (DATE_TIME_INFO * dtzi, DB_TYPE res_type, const DB_VALUE * value_ptr, bool dateformat)
TIMESTAMP_FORMAT get_next_format (const char * sp, const INTL_CODESET codeset, DB_TYPE str_type, int * format_length, const char ** next_pos)
int get_number_token (const INTL_LANG lang, char * fsp, int * length, char * last_position, char ** next_fsp, INTL_CODESET codeset)
int get_string_date_token_id (const STRING_DATE_TOKEN token_type, const INTL_LANG intl_lang_id, const char * cs, const INTL_CODESET codeset, int * token_id, int * token_size)
void get_week_info (DATE_TIME_INFO * dtzi, bool sunday_first, int * days, int * tu, int * tv, int * tx, bool * binit)
int hextoi (char hex_char)
bool is_char_string (const DB_VALUE * s)
bool is_integer (const DB_VALUE * i)
bool is_number (const DB_VALUE * n)
bool is_safe_last_char_for_like_optimization (const char * chr, const bool is_escaped, INTL_CODESET codeset)
bool is_str_valid_number (char * num_p, char * str_end, int base, INTL_CODESET codeset)
bool is_string (const DB_VALUE * s)
bool is_valid_ip_slice (const char * ipslice)
int kor_cmp (unsigned char * src, unsigned char * dest, int size)
void left_nshift (const unsigned char * bit_string, int bit_string_size, int shift_amount, unsigned char * r, int r_size)
int lob_from_file (const char * path, const DB_VALUE * src_value, DB_VALUE * lob_value, DB_TYPE lob_type)
int lob_length (const DB_VALUE * src_value, DB_VALUE * result_value)
int lob_to_bit_char (const DB_VALUE * src_value, DB_VALUE * result_value, DB_TYPE lob_type, int max_length)
int make_number (char * src, char * last_src, INTL_CODESET codeset, char * token, int * token_length, DB_VALUE * r, const int precision, const int scale, const INTL_LANG number_lang_id)
int make_number_to_char (const INTL_LANG lang, char * num_string, char * format_str, int * length, DB_CURRENCY currency, char ** result_str, INTL_CODESET codeset)
int make_scientific_notation (char * src_string, int cipher)
int number_to_char (const DB_VALUE * src_value, const DB_VALUE * format_str, const DB_VALUE * number_lang, DB_VALUE * result_str, const TP_DOMAIN * domain)
int parse_digits (char * s, int * nr, int cnt)
int parse_for_next_int (char ** ch, char * output)
int parse_time_string (const char * timestr, int timestr_size, int * sign, int * h, int * m, int * s, int * ms)
int parse_tzd (const char * str, const int max_expect_len)
int print_string_date_token (const STRING_DATE_TOKEN token_type, const INTL_LANG intl_lang_id, const INTL_CODESET codeset, int token_id, int case_mode, char * buffer, int * token_size)
int put_date_time_info (DATE_TIME_INFO * dtzi, const DB_VALUE * format, INTL_LANG date_lang_id, const LANG_LOCALE_DATA * lld, bool dateformat, char ** res_ptr)
int qstr_append (unsigned char * s1, int s1_length, int s1_precision, DB_TYPE s1_type, const unsigned char * s2, int s2_length, int s2_precision, DB_TYPE s2_type, INTL_CODESET codeset, int * result_length, int * result_size, DB_DATA_STATUS * data_status)
int qstr_bit_coerce (const unsigned char * src, int src_length, int src_precision, DB_TYPE src_type, unsigned char ** dest, int * dest_length, int dest_precision, DB_TYPE dest_type, DB_DATA_STATUS * data_status)
int qstr_bit_concatenate (const unsigned char * s1, int s1_length, int s1_precision, DB_TYPE s1_type, const unsigned char * s2, int s2_length, int s2_precision, DB_TYPE s2_type, unsigned char ** result, int * result_length, int * result_size, DB_TYPE * result_type, DB_DATA_STATUS * data_status)
int qstr_bit_position (const unsigned char * sub_string, int sub_length, const unsigned char * src_string, int src_length, int * position)
int qstr_bit_substring (const unsigned char * src, int src_length, int start, int length, unsigned char ** r, int * r_length)
int qstr_coerce (const unsigned char * src, int src_length, int src_precision, DB_TYPE src_type, INTL_CODESET src_codeset, INTL_CODESET dest_codeset, unsigned char ** dest, int * dest_length, int * dest_size, int dest_precision, DB_TYPE dest_type, DB_DATA_STATUS * data_status)
int qstr_concatenate (const unsigned char * s1, int s1_length, int s1_size, int s1_precision, DB_TYPE s1_type, const unsigned char * s2, int s2_length, int s2_size, int s2_precision, DB_TYPE s2_type, INTL_CODESET codeset, unsigned char ** result, int * result_length, int * result_size, DB_DATA_STATUS * data_status)
int qstr_eval_like (const char * tar, int tar_length, const char * expr, int expr_length, const char * escape, INTL_CODESET codeset, int coll_id)
int qstr_ffs (int v)
QSTR_CATEGORY qstr_get_category (const DB_VALUE * s)
int qstr_grow_string (DB_VALUE * src_string, DB_VALUE * result, int new_size)
int qstr_pad (MISC_OPERAND pad_operand, int pad_length, const unsigned char * pad_charset_ptr, int pad_charset_length, int pad_charset_size, const unsigned char * src_ptr, DB_TYPE src_type, int src_length, int src_size, INTL_CODESET codeset, unsigned char ** result, int * result_length, int * result_size)
int qstr_position (const char * sub_string, const int sub_size, const int sub_length, const char * src_string, const char * src_end, const char * src_string_bound, int src_length, int coll_id, bool is_forward_search, int * position)
int qstr_replace (const unsigned char * src_buf, int src_len, int src_size, INTL_CODESET codeset, int coll_id, const unsigned char * srch_str_buf, int srch_str_size, const unsigned char * repl_str_buf, int repl_str_size, unsigned char ** result_buf, int * result_len, int * result_size)
int qstr_substring (const unsigned char * src, int src_length, int start, int length, INTL_CODESET codeset, unsigned char ** r, int * r_length, int * r_size)
int qstr_translate (const unsigned char * src_ptr, DB_TYPE src_type, int src_size, INTL_CODESET codeset, const unsigned char * from_str_ptr, int from_str_size, const unsigned char * to_str_ptr, int to_str_size, unsigned char ** result_ptr, int * result_len, int * result_size)
int qstr_trim (MISC_OPERAND tr_operand, const unsigned char * trim, int trim_length, int trim_size, const unsigned char * src_ptr, DB_TYPE src_type, int src_length, int src_size, INTL_CODESET codeset, unsigned char ** res, int * res_length, int * res_size)
int roundoff (const INTL_LANG lang, char * src_string, int flag, int * cipher, char * format)
int scientific_to_decimal_string (const INTL_LANG lang, char * src_string, char ** scientific_str)
void set_time_argument (struct tm * dest, int year, int month, int day, int hour, int min, int sec)
int shift_left (unsigned char * bit_string, int bit_string_size)
int sub_and_normalize_date_time (int * years, int * months, int * days, int * hours, int * minutes, int * seconds, int * milliseconds, const DB_BIGINT * composite_values)
int to_number_next_state (const int previous_state, const int input_char, const INTL_LANG number_lang_id)
void trim_leading (const unsigned char * trim_charset_ptr, int trim_charset_size, const unsigned char * src_ptr, DB_TYPE src_type, int src_length, int src_size, INTL_CODESET codeset, unsigned char ** lead_trimmed_ptr, int * lead_trimmed_length, int * lead_trimmed_size, bool skip_spaces)
bool varbit_truncated (const unsigned char * s, int s_length, int used_bits)
bool varchar_truncated (const unsigned char * s, DB_TYPE s_type, int s_length, int used_chars, INTL_CODESET codeset)

Macros

Type Name
define ABS (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt;= 0 ? ([**i**](dynamic__load_8c.md#variable-i)) : -([**i**](dynamic__load_8c.md#variable-i)))
define AM_NAME_KR "ojeon"
define AM_NAME_KR_EUC "\xbf\xc0\xc0\xfc"
define AM_NAME_KR_UTF8 "\xec\x98\xa4\xec\xa0\x84"
define BYTE_SIZE (8)
define DBL_MAX_DIGITS (([**int**](broker__monitor_8c.md#function-timeout))[**ceil**](broker__monitor_8c.md#function-timeout)([**DBL\_MAX\_EXP**](broker__monitor_8c.md#function-timeout) \* [**log10**](broker__monitor_8c.md#function-timeout)(([**double**](broker__monitor_8c.md#function-timeout)) [**FLT\_RADIX**](broker__monitor_8c.md#function-timeout))))
define DB_GET_UCHAR (dbval) ([**REINTERPRET\_CAST**](porting_8h.md#define-reinterpret_cast) ([**const**](broker__monitor_8c.md#function-timeout) [**unsigned**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout) \*, [**db\_get\_string**](dbtype__function_8h.md#function-db_get_string) ((dbval))))
define DB_NUMERIC_E38_MAX "99999999999999999999999999999999999999"
define ESCAPE_CHAR (c) (c &lt;= 0x1f \|\| (c) == '"' \|\| (c) == '\\')
define GUID_STANDARD_BYTES_LENGTH 16
define LEAP (y) ((([**y**](broker__monitor_8c.md#function-timeout)) % 400 == 0) \|\| (([**y**](broker__monitor_8c.md#function-timeout)) % 100 != 0 && ([**y**](broker__monitor_8c.md#function-timeout)) % 4 == 0))
define LEAST_DATE_FORMAT_CHECK_LENGTH (26)
define LOB_CHUNK_SIZE (128 \* 1024)
define MAX_STRING_DATE_TOKEN_LEN [**LOC\_DATA\_MONTH\_WIDE\_SIZE**](locale__support_8h.md#define-loc_data_month_wide_size)
define MAX_TOKEN_SIZE 16000
define MINUS 0
define PAD ' ' /\* [**str\_pad\_char**](broker__monitor_8c.md#function-timeout)(INTL\_CODESET\_ISO88591, [**pad**](broker__monitor_8c.md#function-timeout), &[**pad\_size**](broker__monitor_8c.md#function-timeout)) \*/
define PAD ' ' /\* [**str\_pad\_char**](broker__monitor_8c.md#function-timeout)(INTL\_CODESET\_ISO88591, [**pad**](broker__monitor_8c.md#function-timeout), &[**pad\_size**](broker__monitor_8c.md#function-timeout)) \*/
define PAD ' ' /\* [**str\_pad\_char**](broker__monitor_8c.md#function-timeout)(INTL\_CODESET\_ISO88591, [**pad**](broker__monitor_8c.md#function-timeout), &[**pad\_size**](broker__monitor_8c.md#function-timeout)) \*/
define PAD ' ' /\* [**str\_pad\_char**](broker__monitor_8c.md#function-timeout)(INTL\_CODESET\_ISO88591, [**pad**](broker__monitor_8c.md#function-timeout), &[**pad\_size**](broker__monitor_8c.md#function-timeout)) \*/
define PLUS 1
define PM_NAME_KR "ohu"
define PM_NAME_KR_EUC "\xbf\xc0\xc8\xc4"
define PM_NAME_KR_UTF8 "\xec\x98\xa4\xed\x9b\x84"
define PUNCTUATIONAL (c) /* multi line expression */
define QSTR_DATE_LENGTH 10
define QSTR_MAX_PRECISION (str_type) ([**QSTR\_IS\_CHAR**](string__opfunc_8h.md#define-qstr_is_char)([**str\_type**](broker__monitor_8c.md#function-timeout)) ? [**DB\_MAX\_VARCHAR\_PRECISION**](dbtype__def_8h.md#define-db_max_varchar_precision) : [**DB\_MAX\_VARBIT\_PRECISION**](dbtype__def_8h.md#define-db_max_varbit_precision))
define QSTR_TIME_LENGTH 11
define QSTR_TIME_STAMPLENGTH 22
define QSTR_TO_CHAR_LEN_MULTIPLIER_RATIO [**LOC\_PARSE\_FRMT\_TO\_TOKEN\_MULT**](locale__support_8h.md#define-loc_parse_frmt_to_token_mult)
define QSTR_VALUE_PRECISION (value) /* multi line expression */
define REPL_POS_ARRAY_EXTENT 32
define SKIP_SPACES (ch, end) /* multi line expression */
define SPACE [**PAD**](language__support_8c.md#define-pad) /\* [**smallest**](broker__monitor_8c.md#function-timeout) [**character**](broker__monitor_8c.md#function-timeout) in [**the**](broker__monitor_8c.md#function-timeout) collation sequence \*/
define SPACE [**PAD**](language__support_8c.md#define-pad) /\* [**smallest**](broker__monitor_8c.md#function-timeout) [**character**](broker__monitor_8c.md#function-timeout) in [**the**](broker__monitor_8c.md#function-timeout) collation sequence \*/
define STACK_SIZE 100
define TRIM_FORMAT_STRING (sz, n) {[**if**](dynamic__load_8c.md#function-if) ([**strlen**](intl__support_8c.md#define-strlen)([**sz**](broker__monitor_8c.md#function-timeout)) &gt; n) [**sz**](broker__monitor_8c.md#function-timeout)[n] = 0;}
define TZD_DEFAULT_EXPECTED_LEN 4
define TZD_MAX_EXPECTED_LEN [**TZ\_DS\_STRING\_SIZE**](tz__support_8h.md#define-tz_ds_string_size)
define UINT64_MAX_BIN_DIGITS 64
define UINT64_MAX_HEX_DIGITS 16
define WHITESPACE (c) ([**char\_isspace2**](chartype_8h.md#define-char_isspace2)((c)))
define WHITE_CHARS " \r\t\n"
define ZERO '\0' /\* [**space**](broker__monitor_8c.md#function-timeout) [**is**](broker__monitor_8c.md#function-timeout) [**treated**](broker__monitor_8c.md#function-timeout) [**as**](broker__monitor_8c.md#function-timeout) [**zero**](broker__monitor_8c.md#function-timeout) \*/
define ZERO '\0' /\* [**space**](broker__monitor_8c.md#function-timeout) [**is**](broker__monitor_8c.md#function-timeout) [**treated**](broker__monitor_8c.md#function-timeout) [**as**](broker__monitor_8c.md#function-timeout) [**zero**](broker__monitor_8c.md#function-timeout) \*/

Public Types Documentation

typedef DATE_TIME_INFO

typedef struct date_time_info DATE_TIME_INFO;

enum EN_COMPOSITE_POS

enum EN_COMPOSITE_POS {
    COMPOSITE_YEAR = 0,
    COMPOSITE_MONTH,
    COMPOSITE_DAY,
    COMPOSITE_HOUR,
    COMPOSITE_MINUTE,
    COMPOSITE_SECOND,
    COMPOSITE_MILLISECOND,
    COMPOSITE_MAX
};

enum NUMBER_FORMAT

enum NUMBER_FORMAT {
    N_END = -2,
    N_INVALID = -1,
    N_FORMAT,
    N_SPACE,
    N_TEXT
};

enum QSTR_CATEGORY

enum QSTR_CATEGORY {
    QSTR_UNKNOWN,
    QSTR_CHAR,
    QSTR_BIT
};

enum STRING_DATE_TOKEN

enum STRING_DATE_TOKEN {
    SDT_DAY = 0,
    SDT_MONTH,
    SDT_DAY_SHORT,
    SDT_MONTH_SHORT,
    SDT_AM_PM
};

enum string__opfunc_8c_1abe821d0fac05333be298917dcb50ee1d

enum string__opfunc_8c_1abe821d0fac05333be298917dcb50ee1d {
    am_NAME = 0,
    pm_NAME,
    Am_NAME,
    Pm_NAME,
    AM_NAME,
    PM_NAME,
    a_m_NAME,
    p_m_NAME,
    A_m_NAME,
    P_m_NAME,
    A_M_NAME,
    P_M_NAME
};

Public Attributes Documentation

variable AM_PM_parse_order

const char AM_PM_parse_order[][12];

variable Am_Pm_name_EUCKR

const char* Am_Pm_name_EUCKR[][12];

variable Am_Pm_name_ISO

const char* Am_Pm_name_ISO[][12];

variable Am_Pm_name_UTF8

const char* Am_Pm_name_UTF8[][12];

variable Day_name_EUCKR

const char* Day_name_EUCKR[][7];

variable Day_name_ISO

const char* Day_name_ISO[][7];

variable Day_name_UTF8

const char* Day_name_UTF8[][7];

variable Day_name_parse_order

const char Day_name_parse_order[][7];

variable Month_name_EUCKR

const char* Month_name_EUCKR[][12];

variable Month_name_ISO

const char* Month_name_ISO[][12];

variable Month_name_UTF8

const char* Month_name_UTF8[][12];

variable Month_name_parse_order

const char Month_name_parse_order[][12];

variable Short_Day_name_EUCKR

const char* Short_Day_name_EUCKR[][7];

variable Short_Day_name_ISO

const char* Short_Day_name_ISO[][7];

variable Short_Day_name_UTF8

const char* Short_Day_name_UTF8[][7];

variable Short_Day_name_parse_order

const char Short_Day_name_parse_order[][7];

variable Short_Month_name_EUCKR

const char* Short_Month_name_EUCKR[][12];

variable Short_Month_name_ISO

const char* Short_Month_name_ISO[][12];

variable Short_Month_name_UTF8

const char* Short_Month_name_UTF8[][12];

variable Short_Month_name_parse_order

const char Short_Month_name_parse_order[][12];

Public Static Attributes Documentation

variable cumulative_days_per_month

const int cumulative_days_per_month[2][13];

variable days_per_month

const int days_per_month[2][13];

Public Functions Documentation

function bit_compare

int bit_compare (
    const  unsigned  char * string1,
    int size1,
    const  unsigned  char * string2,
    int size2
) 

function char_compare

int char_compare (
    const  unsigned  char * string1,
    int size1,
    const  unsigned  char * string2,
    int size2
) 

function count_leap_years_up_to

int count_leap_years_up_to (
    int year
) 

function count_nonleap_years_up_to

int count_nonleap_years_up_to (
    int year
) 

function db_add_days_to_year

int db_add_days_to_year (
    const  DB_VALUE * src_year,
    const  DB_VALUE * src_days,
    DB_VALUE * result
) 

function db_add_months

int db_add_months (
    const  DB_VALUE * src_date,
    const  DB_VALUE * nmonth,
    DB_VALUE * result_date
) 

function db_add_time

int db_add_time (
    const  DB_VALUE * left,
    const  DB_VALUE * right,
    DB_VALUE * result,
    const  TP_DOMAIN * domain
) 

function db_ascii

int db_ascii (
    const  DB_VALUE * param,
    DB_VALUE * result
) 

function db_bigint_to_binary_string

int db_bigint_to_binary_string (
    const  DB_VALUE * src_bigint,
    DB_VALUE * result
) 

function db_bit_string_coerce

int db_bit_string_coerce (
    const  DB_VALUE * src_string,
    DB_VALUE * dest_string,
    DB_DATA_STATUS * data_status
) 

function db_bit_to_blob

int db_bit_to_blob (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_blob_from_file

int db_blob_from_file (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_blob_length

int db_blob_length (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_blob_to_bit

int db_blob_to_bit (
    const  DB_VALUE * src_value,
    const  DB_VALUE * length_value,
    DB_VALUE * result_value
) 

function db_char_string_coerce

int db_char_string_coerce (
    const  DB_VALUE * src_string,
    DB_VALUE * dest_string,
    DB_DATA_STATUS * data_status
) 

function db_char_to_blob

int db_char_to_blob (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_char_to_clob

int db_char_to_clob (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_clob_from_file

int db_clob_from_file (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_clob_length

int db_clob_length (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function db_clob_to_char

int db_clob_to_char (
    const  DB_VALUE * src_value,
    const  DB_VALUE * codeset_value,
    DB_VALUE * result_value
) 

function db_compress_like_pattern

int db_compress_like_pattern (
    const  DB_VALUE * const pattern,
    DB_VALUE * compressed_pattern,
    const  bool has_escape_char,
    const  char * escape_str
) 

function db_conv

int db_conv (
    const  DB_VALUE * num,
    const  DB_VALUE * from_base,
    const  DB_VALUE * to_base,
    DB_VALUE * result
) 

function db_conv_tz

int db_conv_tz (
    DB_VALUE * time_val,
    DB_VALUE * result_time
) 

function db_convert_sec_to_time

int db_convert_sec_to_time (
    const  DB_VALUE * src,
    DB_VALUE * result
) 

function db_convert_time_to_sec

int db_convert_time_to_sec (
    const  DB_VALUE * src_date,
    DB_VALUE * result
) 

function db_convert_to_time

int db_convert_to_time (
    const  DB_VALUE * src_hour,
    const  DB_VALUE * src_minute,
    const  DB_VALUE * src_second,
    DB_VALUE * result
) 

function db_date_add_interval_days

int db_date_add_interval_days (
    DB_VALUE * result,
    const  DB_VALUE * date,
    const  DB_VALUE * db_days
) 

function db_date_add_interval_expr

int db_date_add_interval_expr (
    DB_VALUE * result,
    const  DB_VALUE * date,
    const  DB_VALUE * expr,
    const  int unit
) 

function db_date_dbval

int db_date_dbval (
    DB_VALUE * result,
    const  DB_VALUE * date_value,
    const  TP_DOMAIN * domain
) 

function db_date_diff

int db_date_diff (
    const  DB_VALUE * date_value1,
    const  DB_VALUE * date_value2,
    DB_VALUE * result
) 

function db_date_format

int db_date_format (
    const  DB_VALUE * date_value,
    const  DB_VALUE * format,
    const  DB_VALUE * date_lang,
    DB_VALUE * result,
    const  TP_DOMAIN * domain
) 

function db_date_sub_interval_days

int db_date_sub_interval_days (
    DB_VALUE * result,
    const  DB_VALUE * date,
    const  DB_VALUE * db_days
) 

function db_date_sub_interval_expr

int db_date_sub_interval_expr (
    DB_VALUE * result,
    const  DB_VALUE * date,
    const  DB_VALUE * expr,
    const  int unit
) 

function db_datetime_to_timestamp

int db_datetime_to_timestamp (
    const  DB_VALUE * src_datetime,
    DB_VALUE * result_timestamp
) 

function db_find_string_in_in_set

int db_find_string_in_in_set (
    const  DB_VALUE * needle,
    const  DB_VALUE * stack,
    DB_VALUE * result
) 

function db_format

int db_format (
    const  DB_VALUE * value,
    const  DB_VALUE * decimals,
    const  DB_VALUE * number_lang,
    DB_VALUE * result,
    const  TP_DOMAIN * domain
) 

function db_from_tz

int db_from_tz (
    DB_VALUE * time_val,
    DB_VALUE * tz,
    DB_VALUE * time_val_with_tz
) 

function db_from_unixtime

int db_from_unixtime (
    const  DB_VALUE * src_value,
    const  DB_VALUE * format,
    const  DB_VALUE * date_lang,
    DB_VALUE * result,
    const  TP_DOMAIN * domain
) 

function db_get_cs_coll_info

int db_get_cs_coll_info (
    DB_VALUE * result,
    const  DB_VALUE * val,
    const  int mode
) 

function db_get_date_dayofyear

int db_get_date_dayofyear (
    const  DB_VALUE * src_date,
    DB_VALUE * result
) 

function db_get_date_format

int db_get_date_format (
    const  DB_VALUE * format_str,
    TIMESTAMP_FORMAT * format
) 

function db_get_date_from_days

int db_get_date_from_days (
    const  DB_VALUE * src,
    DB_VALUE * result
) 

function db_get_date_quarter

int db_get_date_quarter (
    const  DB_VALUE * src_date,
    DB_VALUE * result
) 

function db_get_date_totaldays

int db_get_date_totaldays (
    const  DB_VALUE * src_date,
    DB_VALUE * result
) 

function db_get_date_week

int db_get_date_week (
    const  DB_VALUE * src_date,
    const  DB_VALUE * mode,
    DB_VALUE * result
) 

function db_get_datetime_from_dbvalue

int db_get_datetime_from_dbvalue (
    const  DB_VALUE * src_date,
    int * year,
    int * month,
    int * day,
    int * hour,
    int * minute,
    int * second,
    int * millisecond,
    const  char ** endp
) 

function db_get_info_for_like_optimization

int db_get_info_for_like_optimization (
    const  DB_VALUE * const pattern,
    const  bool has_escape_char,
    const  char * escape_str,
    int * const num_logical_chars,
    int * const last_safe_logical_pos,
    int * const num_match_many,
    int * const num_match_one
) 

function db_get_like_optimization_bounds

int db_get_like_optimization_bounds (
    const  DB_VALUE * const pattern,
    DB_VALUE * bound,
    const  bool has_escape_char,
    const  char * escape_str,
    const  bool compute_lower_bound,
    const  int last_safe_logical_pos
) 

function db_get_string_length

int db_get_string_length (
    const  DB_VALUE * value
) 

function db_get_time_from_dbvalue

int db_get_time_from_dbvalue (
    const  DB_VALUE * src_date,
    int * hour,
    int * minute,
    int * second,
    int * millisecond
) 

function db_hex

int db_hex (
    const  DB_VALUE * param,
    DB_VALUE * result
) 

function db_inet_aton

int db_inet_aton (
    DB_VALUE * result_numbered_ip,
    const  DB_VALUE * string
) 

function db_inet_ntoa

int db_inet_ntoa (
    DB_VALUE * result_ip_string,
    const  DB_VALUE * number
) 

function db_json_convert_to_utf8

int db_json_convert_to_utf8 (
    DB_VALUE * dbval
) 

function db_json_copy_and_convert_to_utf8

int db_json_copy_and_convert_to_utf8 (
    const  DB_VALUE * src_dbval,
    DB_VALUE * dest_dbval,
    const  DB_VALUE ** json_str_dbval
) 

function db_last_day

int db_last_day (
    const  DB_VALUE * src_date,
    DB_VALUE * result_day
) 

function db_like_bound

int db_like_bound (
    const  DB_VALUE * const src_pattern,
    const  DB_VALUE * const src_escape,
    DB_VALUE * const result_bound,
    const  bool compute_lower_bound
) 

function db_months_between

int db_months_between (
    const  DB_VALUE * start_mon,
    const  DB_VALUE * end_mon,
    DB_VALUE * result_mon
) 

function db_new_time

int db_new_time (
    DB_VALUE * time_val,
    DB_VALUE * tz_source,
    DB_VALUE * tz_dest,
    DB_VALUE * result_time
) 

function db_null_terminate_string

int db_null_terminate_string (
    const  DB_VALUE * src_value,
    char ** strp
) 

function db_str_to_date

int db_str_to_date (
    const  DB_VALUE * str,
    const  DB_VALUE * format,
    const  DB_VALUE * date_lang,
    DB_VALUE * result,
    TP_DOMAIN * domain
) 

function db_string_aes_decrypt

int db_string_aes_decrypt (
    DB_VALUE  const * src,
    DB_VALUE  const * key,
    DB_VALUE * result
) 

function db_string_aes_encrypt

int db_string_aes_encrypt (
    DB_VALUE  const * src,
    DB_VALUE  const * key,
    DB_VALUE * result
) 

function db_string_bit_length

int db_string_bit_length (
    const  DB_VALUE * string,
    DB_VALUE * bit_count
) 

function db_string_byte_length

int db_string_byte_length (
    const  DB_VALUE * string,
    DB_VALUE * byte_count
) 

function db_string_char_length

int db_string_char_length (
    const  DB_VALUE * string,
    DB_VALUE * char_count
) 

function db_string_chr

int db_string_chr (
    DB_VALUE * res,
    DB_VALUE * dbval1,
    DB_VALUE * dbval2
) 

function db_string_compare

int db_string_compare (
    const  DB_VALUE * string1,
    const  DB_VALUE * string2,
    DB_VALUE * result
) 

function db_string_concatenate

int db_string_concatenate (
    const  DB_VALUE * string1,
    const  DB_VALUE * string2,
    DB_VALUE * result,
    DB_DATA_STATUS * data_status
) 

function db_string_convert_to

int db_string_convert_to (
    const  DB_VALUE * src_str_dbval,
    DB_VALUE * dest_str_dbval,
    INTL_CODESET dest_codeset,
    int dest_col
) 

function db_string_elt

int db_string_elt (
    DB_VALUE * result,
    DB_VALUE * arg,
    int  const num_args
) 

function db_string_escape_str

int db_string_escape_str (
    const  char * src_str,
    size_t src_size,
    char ** res_string,
    size_t * dest_size
) 

function db_string_extract_dbval

int db_string_extract_dbval (
    const  MISC_OPERAND extr_operand,
    DB_VALUE * dbval_p,
    DB_VALUE * result_p,
    TP_DOMAIN * domain_p
) 

function db_string_fix_string_size

int db_string_fix_string_size (
    DB_VALUE * src_string
) 

function db_string_from_base64

int db_string_from_base64 (
    DB_VALUE  const * src,
    DB_VALUE * result
) 

function db_string_index_prefix

int db_string_index_prefix (
    const  DB_VALUE * string1,
    const  DB_VALUE * string2,
    const  DB_VALUE * index_type,
    DB_VALUE * prefix_index
) 

function db_string_insert_substring

int db_string_insert_substring (
    DB_VALUE * src_string,
    const  DB_VALUE * position,
    const  DB_VALUE * length,
    DB_VALUE * sub_string,
    DB_VALUE * result
) 

function db_string_instr

int db_string_instr (
    const  DB_VALUE * src_string,
    const  DB_VALUE * sub_string,
    const  DB_VALUE * start_pos,
    DB_VALUE * result
) 

function db_string_like

int db_string_like (
    const  DB_VALUE * src_string,
    const  DB_VALUE * pattern,
    const  DB_VALUE * esc_char,
    int * result
) 

function db_string_limit_size_string

int db_string_limit_size_string (
    DB_VALUE * src_string,
    DB_VALUE * result,
    const  int new_size,
    int * spare_bytes
) 

function db_string_lower

int db_string_lower (
    const  DB_VALUE * string,
    DB_VALUE * lower_string
) 

function db_string_make_empty_typed_string

int db_string_make_empty_typed_string (
    DB_VALUE * db_val,
    const  DB_TYPE db_type,
    int precision,
    int codeset,
    int collation_id
) 

function db_string_md5

int db_string_md5 (
    DB_VALUE  const * val,
    DB_VALUE * result
) 

function db_string_pad

int db_string_pad (
    const  MISC_OPERAND pad_operand,
    const  DB_VALUE * src_string,
    const  DB_VALUE * pad_length,
    const  DB_VALUE * pad_charset,
    DB_VALUE * padded_string
) 

function db_string_position

int db_string_position (
    const  DB_VALUE * sub_string,
    const  DB_VALUE * src_string,
    DB_VALUE * result
) 

function db_string_quote

int db_string_quote (
    const  DB_VALUE * str,
    DB_VALUE * res
) 

function db_string_regexp_count

int db_string_regexp_count (
    DB_VALUE * result,
    DB_VALUE * args,
    int  const num_args,
    cub_compiled_regex ** comp_regex
) 

function db_string_regexp_instr

int db_string_regexp_instr (
    DB_VALUE * result,
    DB_VALUE * args,
    int  const num_args,
    cub_compiled_regex ** comp_regex
) 

function db_string_regexp_like

int db_string_regexp_like (
    DB_VALUE * result,
    DB_VALUE * args,
    int  const num_args,
    cub_compiled_regex ** comp_regex
) 

function db_string_regexp_replace

int db_string_regexp_replace (
    DB_VALUE * result,
    DB_VALUE * args,
    int  const num_args,
    cub_compiled_regex ** comp_regex
) 

function db_string_regexp_substr

int db_string_regexp_substr (
    DB_VALUE * result,
    DB_VALUE * args,
    int  const num_args,
    cub_compiled_regex ** comp_regex
) 

function db_string_repeat

int db_string_repeat (
    const  DB_VALUE * src_string,
    const  DB_VALUE * count,
    DB_VALUE * result
) 

function db_string_replace

int db_string_replace (
    const  DB_VALUE * src_string,
    const  DB_VALUE * srch_string,
    const  DB_VALUE * repl_string,
    DB_VALUE * replaced_string
) 

function db_string_reverse

int db_string_reverse (
    const  DB_VALUE * src_str,
    DB_VALUE * result_str
) 

function db_string_rlike

int db_string_rlike (
    const  DB_VALUE * src,
    const  DB_VALUE * pattern,
    const  DB_VALUE * case_sensitive,
    cub_compiled_regex ** comp_regex,
    int * result
) 

function db_string_sha_one

int db_string_sha_one (
    DB_VALUE  const * src,
    DB_VALUE * result
) 

function db_string_sha_two

int db_string_sha_two (
    DB_VALUE  const * src,
    DB_VALUE  const * hash_len,
    DB_VALUE * result
) 

function db_string_space

int db_string_space (
    DB_VALUE  const * count,
    DB_VALUE * result
) 

function db_string_substring

int db_string_substring (
    const  MISC_OPERAND substr_operand,
    const  DB_VALUE * src_string,
    const  DB_VALUE * start_position,
    const  DB_VALUE * extraction_length,
    DB_VALUE * sub_string
) 

function db_string_substring_index

int db_string_substring_index (
    DB_VALUE * src_string,
    DB_VALUE * delim_string,
    const  DB_VALUE * count,
    DB_VALUE * result
) 

function db_string_to_base64

int db_string_to_base64 (
    DB_VALUE  const * src,
    DB_VALUE * result
) 

function db_string_translate

int db_string_translate (
    const  DB_VALUE * src_string,
    const  DB_VALUE * from_string,
    const  DB_VALUE * to_string,
    DB_VALUE * transed_string
) 

function db_string_trim

int db_string_trim (
    const  MISC_OPERAND tr_operand,
    const  DB_VALUE * trim_charset,
    const  DB_VALUE * src_string,
    DB_VALUE * trimmed_string
) 

function db_string_unique_prefix

int db_string_unique_prefix (
    const  DB_VALUE * db_string1,
    const  DB_VALUE * db_string2,
    DB_VALUE * db_result,
    TP_DOMAIN * key_domain
) 

function db_string_upper

int db_string_upper (
    const  DB_VALUE * string,
    DB_VALUE * upper_string
) 

function db_sys_date

int db_sys_date (
    DB_VALUE * result_date
) 

function db_sys_date_and_epoch_time

int db_sys_date_and_epoch_time (
    DB_VALUE * dt_dbval,
    DB_VALUE * ts_dbval
) 

function db_sys_datetime

int db_sys_datetime (
    DB_VALUE * result_datetime
) 

function db_sys_time

int db_sys_time (
    DB_VALUE * result_time
) 

function db_sys_timestamp

int db_sys_timestamp (
    DB_VALUE * result_timestamp
) 

function db_sys_timezone

int db_sys_timezone (
    DB_VALUE * result_timezone
) 

function db_time_dbval

int db_time_dbval (
    DB_VALUE * result,
    const  DB_VALUE * datetime_value,
    const  TP_DOMAIN * domain
) 

function db_time_diff

int db_time_diff (
    const  DB_VALUE * val1,
    const  DB_VALUE * val2,
    DB_VALUE * result
) 

function db_time_format

int db_time_format (
    const  DB_VALUE * time_value,
    const  DB_VALUE * format,
    const  DB_VALUE * date_lang,
    DB_VALUE * result,
    const  TP_DOMAIN * domain
) 

function db_timestamp

int db_timestamp (
    const  DB_VALUE * src_datetime1,
    const  DB_VALUE * src_time2,
    DB_VALUE * result_datetime
) 

function db_timestamp_to_datetime

int db_timestamp_to_datetime (
    const  DB_VALUE * src_timestamp,
    DB_VALUE * result_datetime
) 

function db_to_char

int db_to_char (
    const  DB_VALUE * src_value,
    const  DB_VALUE * format_or_length,
    const  DB_VALUE * lang_str,
    DB_VALUE * result_str,
    const  TP_DOMAIN * domain
) 

function db_to_date

int db_to_date (
    const  DB_VALUE * src_str,
    const  DB_VALUE * format_str,
    const  DB_VALUE * date_lang,
    DB_VALUE * result_date
) 

function db_to_datetime

int db_to_datetime (
    const  DB_VALUE * src_str,
    const  DB_VALUE * format_str,
    const  DB_VALUE * date_lang,
    const  DB_TYPE type,
    DB_VALUE * result_datetime
) 

function db_to_number

int db_to_number (
    const  DB_VALUE * src_str,
    const  DB_VALUE * format_str,
    const  DB_VALUE * number_lang,
    DB_VALUE * result_num
) 

function db_to_time

int db_to_time (
    const  DB_VALUE * src_str,
    const  DB_VALUE * format_str,
    const  DB_VALUE * date_lang,
    const  DB_TYPE type,
    DB_VALUE * result_time
) 

function db_to_timestamp

int db_to_timestamp (
    const  DB_VALUE * src_str,
    const  DB_VALUE * format_str,
    const  DB_VALUE * date_lang,
    const  DB_TYPE type,
    DB_VALUE * result_timestamp
) 

function db_tz_offset

int db_tz_offset (
    const  DB_VALUE * src_str,
    DB_VALUE * result_str,
    DB_DATETIME * datetime
) 

function db_unix_timestamp

int db_unix_timestamp (
    const  DB_VALUE * src_date,
    DB_VALUE * result_timestamp
) 

function db_value_to_enumeration_value

int db_value_to_enumeration_value (
    const  DB_VALUE * src,
    DB_VALUE * result,
    const  TP_DOMAIN * enum_domain
) 

function get_day

int get_day (
    int month,
    int day,
    int year
) 

function get_last_day

int get_last_day (
    int month,
    int year
) 

function init_builtin_calendar_names

void init_builtin_calendar_names (
    LANG_LOCALE_DATA * lld
) 

function qstr_bin_to_hex

int qstr_bin_to_hex (
    char * dest,
    int dest_size,
    const  char * src,
    int src_size
) 

function qstr_bit_to_bin

int qstr_bit_to_bin (
    char * dest,
    int dest_size,
    const  char * src,
    int src_size
) 

function qstr_bit_to_hex_coerce

void qstr_bit_to_hex_coerce (
    char * buffer,
    int buffer_size,
    const  char * src,
    int src_length,
    int pad_flag,
    int * copy_size,
    int * truncation
) 

function qstr_compare

int qstr_compare (
    const  unsigned  char * string1,
    int size1,
    const  unsigned  char * string2,
    int size2
) 

function qstr_hex_to_bin

int qstr_hex_to_bin (
    char * dest,
    int dest_size,
    const  char * src,
    int src_size
) 

function qstr_make_typed_string

void qstr_make_typed_string (
    const  DB_TYPE db_type,
    DB_VALUE * value,
    const  int precision,
    DB_CONST_C_CHAR src,
    const  int s_unit,
    const  int codeset,
    const  int collation_id
) 

function qstr_pad_string

unsigned  char * qstr_pad_string (
    unsigned  char * s,
    int length,
    INTL_CODESET codeset
) 

function qstr_trim_trailing

void qstr_trim_trailing (
    const  unsigned  char * trim_charset_ptr,
    int trim_charset_size,
    const  unsigned  char * src_ptr,
    DB_TYPE src_type,
    int src_length,
    int src_size,
    INTL_CODESET codeset,
    int * trail_trimmed_length,
    int * trail_trimmed_size,
    bool trim_ascii_spaces
) 

function varbit_compare

int varbit_compare (
    const  unsigned  char * string1,
    int size1,
    const  unsigned  char * string2,
    int size2
) 

Public Static Functions Documentation

function add_and_normalize_date_time

static int add_and_normalize_date_time (
    int * years,
    int * months,
    int * days,
    int * hours,
    int * minutes,
    int * seconds,
    int * milliseconds,
    const  DB_BIGINT * composite_values
) 

function adjust_precision

static int adjust_precision (
    char * data,
    int precision,
    int scale
) 

function bit_ncat

static void bit_ncat (
    unsigned  char * r,
    int offset,
    const  unsigned  char * s,
    int n
) 

function bstring_fls

static int bstring_fls (
    const  char * s,
    int n
) 

function calc_unix_timestamp

static long calc_unix_timestamp (
    struct  tm * time_argument
) 

function check_date_lang_on_prepared

static inline int check_date_lang_on_prepared (
    const  DB_VALUE * date_lang,
    INTL_LANG * date_lang_id,
    bool * has_user_fmt
) 

function convert_locale_number

static void convert_locale_number (
    char * sz,
    const  int size,
    const  INTL_LANG src_locale,
    const  INTL_LANG dst_locale
) 

function date_to_char

static int date_to_char (
    const  DB_VALUE * src_value,
    const  DB_VALUE * format_str,
    const  DB_VALUE * date_lang,
    DB_VALUE * result_str,
    const  TP_DOMAIN * domain
) 

function db_check_datetime_format

static bool db_check_datetime_format (
    const  DB_VALUE * value_ptr
) 

function db_check_or_create_null_term_string

static int db_check_or_create_null_term_string (
    const  DB_VALUE * str_val,
    char * pre_alloc_buf,
    int pre_alloc_buf_size,
    bool ignore_prec_spaces,
    bool ignore_trail_spaces,
    char ** str_out,
    bool * do_alloc
) 

function db_date_add_sub_interval_composite_value

static int db_date_add_sub_interval_composite_value (
    const  char * expr_s,
    int unit,
    DB_BIGINT * values,
    int * is_positive_value
) 

function db_date_add_sub_interval_days

static int db_date_add_sub_interval_days (
    DB_VALUE * result,
    const  DB_VALUE * date,
    const  DB_VALUE * db_days,
    bool is_add
) 

function db_date_add_sub_interval_expr

static int db_date_add_sub_interval_expr (
    DB_VALUE * result,
    const  DB_VALUE * date,
    const  DB_VALUE * expr,
    const  int unit,
    int is_add
) 

function db_get_next_like_pattern_character

static int db_get_next_like_pattern_character (
    const  char * const pattern,
    const  int length,
    const  INTL_CODESET codeset,
    const  bool has_escape_char,
    const  char * escape_str,
    int * const position,
    char ** crt_char_p,
    bool * const is_escaped
) 

function db_round_dbvalue_to_int

static int db_round_dbvalue_to_int (
    const  DB_VALUE * src,
    int * result
) 

function db_string_escape_char

static char db_string_escape_char (
    char c
) 

function db_string_prefix_compare

static int db_string_prefix_compare (
    const  DB_VALUE * string1,
    const  DB_VALUE * string2,
    DB_VALUE * result
) 

function get_cur_month

static int get_cur_month (
    void
) 

function get_cur_year

static int get_cur_year (
    void
) 

function get_date_time_info

static int get_date_time_info (
    DATE_TIME_INFO * dtzi,
    DB_TYPE res_type,
    const  DB_VALUE * value_ptr,
    bool dateformat
) 

function get_next_format

static TIMESTAMP_FORMAT get_next_format (
    const  char * sp,
    const  INTL_CODESET codeset,
    DB_TYPE str_type,
    int * format_length,
    const  char ** next_pos
) 

function get_number_token

static int get_number_token (
    const  INTL_LANG lang,
    char * fsp,
    int * length,
    char * last_position,
    char ** next_fsp,
    INTL_CODESET codeset
) 

function get_string_date_token_id

static int get_string_date_token_id (
    const  STRING_DATE_TOKEN token_type,
    const  INTL_LANG intl_lang_id,
    const  char * cs,
    const  INTL_CODESET codeset,
    int * token_id,
    int * token_size
) 

function get_week_info

static inline void get_week_info (
    DATE_TIME_INFO * dtzi,
    bool sunday_first,
    int * days,
    int * tu,
    int * tv,
    int * tx,
    bool * binit
) 

function hextoi

static int hextoi (
    char hex_char
) 

function is_char_string

static bool is_char_string (
    const  DB_VALUE * s
) 

function is_integer

static bool is_integer (
    const  DB_VALUE * i
) 

function is_number

static bool is_number (
    const  DB_VALUE * n
) 

function is_safe_last_char_for_like_optimization

static bool is_safe_last_char_for_like_optimization (
    const  char * chr,
    const  bool is_escaped,
    INTL_CODESET codeset
) 

function is_str_valid_number

static bool is_str_valid_number (
    char * num_p,
    char * str_end,
    int base,
    INTL_CODESET codeset
) 

function is_string

static bool is_string (
    const  DB_VALUE * s
) 

function is_valid_ip_slice

static bool is_valid_ip_slice (
    const  char * ipslice
) 

function kor_cmp

static int kor_cmp (
    unsigned  char * src,
    unsigned  char * dest,
    int size
) 

function left_nshift

static void left_nshift (
    const  unsigned  char * bit_string,
    int bit_string_size,
    int shift_amount,
    unsigned  char * r,
    int r_size
) 

function lob_from_file

static int lob_from_file (
    const  char * path,
    const  DB_VALUE * src_value,
    DB_VALUE * lob_value,
    DB_TYPE lob_type
) 

function lob_length

static int lob_length (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value
) 

function lob_to_bit_char

static int lob_to_bit_char (
    const  DB_VALUE * src_value,
    DB_VALUE * result_value,
    DB_TYPE lob_type,
    int max_length
) 

function make_number

static int make_number (
    char * src,
    char * last_src,
    INTL_CODESET codeset,
    char * token,
    int * token_length,
    DB_VALUE * r,
    const  int precision,
    const  int scale,
    const  INTL_LANG number_lang_id
) 

function make_number_to_char

static int make_number_to_char (
    const  INTL_LANG lang,
    char * num_string,
    char * format_str,
    int * length,
    DB_CURRENCY currency,
    char ** result_str,
    INTL_CODESET codeset
) 

function make_scientific_notation

static int make_scientific_notation (
    char * src_string,
    int cipher
) 

function number_to_char

static int number_to_char (
    const  DB_VALUE * src_value,
    const  DB_VALUE * format_str,
    const  DB_VALUE * number_lang,
    DB_VALUE * result_str,
    const  TP_DOMAIN * domain
) 

function parse_digits

static int parse_digits (
    char * s,
    int * nr,
    int cnt
) 

function parse_for_next_int

static int parse_for_next_int (
    char ** ch,
    char * output
) 

function parse_time_string

static int parse_time_string (
    const  char * timestr,
    int timestr_size,
    int * sign,
    int * h,
    int * m,
    int * s,
    int * ms
) 

function parse_tzd

static int parse_tzd (
    const  char * str,
    const  int max_expect_len
) 

function print_string_date_token

static int print_string_date_token (
    const  STRING_DATE_TOKEN token_type,
    const  INTL_LANG intl_lang_id,
    const  INTL_CODESET codeset,
    int token_id,
    int case_mode,
    char * buffer,
    int * token_size
) 

function put_date_time_info

static int put_date_time_info (
    DATE_TIME_INFO * dtzi,
    const  DB_VALUE * format,
    INTL_LANG date_lang_id,
    const  LANG_LOCALE_DATA * lld,
    bool dateformat,
    char ** res_ptr
) 

function qstr_append

static int qstr_append (
    unsigned  char * s1,
    int s1_length,
    int s1_precision,
    DB_TYPE s1_type,
    const  unsigned  char * s2,
    int s2_length,
    int s2_precision,
    DB_TYPE s2_type,
    INTL_CODESET codeset,
    int * result_length,
    int * result_size,
    DB_DATA_STATUS * data_status
) 

function qstr_bit_coerce

static int qstr_bit_coerce (
    const  unsigned  char * src,
    int src_length,
    int src_precision,
    DB_TYPE src_type,
    unsigned  char ** dest,
    int * dest_length,
    int dest_precision,
    DB_TYPE dest_type,
    DB_DATA_STATUS * data_status
) 

function qstr_bit_concatenate

static int qstr_bit_concatenate (
    const  unsigned  char * s1,
    int s1_length,
    int s1_precision,
    DB_TYPE s1_type,
    const  unsigned  char * s2,
    int s2_length,
    int s2_precision,
    DB_TYPE s2_type,
    unsigned  char ** result,
    int * result_length,
    int * result_size,
    DB_TYPE * result_type,
    DB_DATA_STATUS * data_status
) 

function qstr_bit_position

static int qstr_bit_position (
    const  unsigned  char * sub_string,
    int sub_length,
    const  unsigned  char * src_string,
    int src_length,
    int * position
) 

function qstr_bit_substring

static int qstr_bit_substring (
    const  unsigned  char * src,
    int src_length,
    int start,
    int length,
    unsigned  char ** r,
    int * r_length
) 

function qstr_coerce

static int qstr_coerce (
    const  unsigned  char * src,
    int src_length,
    int src_precision,
    DB_TYPE src_type,
    INTL_CODESET src_codeset,
    INTL_CODESET dest_codeset,
    unsigned  char ** dest,
    int * dest_length,
    int * dest_size,
    int dest_precision,
    DB_TYPE dest_type,
    DB_DATA_STATUS * data_status
) 

function qstr_concatenate

static int qstr_concatenate (
    const  unsigned  char * s1,
    int s1_length,
    int s1_size,
    int s1_precision,
    DB_TYPE s1_type,
    const  unsigned  char * s2,
    int s2_length,
    int s2_size,
    int s2_precision,
    DB_TYPE s2_type,
    INTL_CODESET codeset,
    unsigned  char ** result,
    int * result_length,
    int * result_size,
    DB_DATA_STATUS * data_status
) 

function qstr_eval_like

static int qstr_eval_like (
    const  char * tar,
    int tar_length,
    const  char * expr,
    int expr_length,
    const  char * escape,
    INTL_CODESET codeset,
    int coll_id
) 

function qstr_ffs

static int qstr_ffs (
    int v
) 

function qstr_get_category

static QSTR_CATEGORY qstr_get_category (
    const  DB_VALUE * s
) 

function qstr_grow_string

static int qstr_grow_string (
    DB_VALUE * src_string,
    DB_VALUE * result,
    int new_size
) 

function qstr_pad

static int qstr_pad (
    MISC_OPERAND pad_operand,
    int pad_length,
    const  unsigned  char * pad_charset_ptr,
    int pad_charset_length,
    int pad_charset_size,
    const  unsigned  char * src_ptr,
    DB_TYPE src_type,
    int src_length,
    int src_size,
    INTL_CODESET codeset,
    unsigned  char ** result,
    int * result_length,
    int * result_size
) 

function qstr_position

static int qstr_position (
    const  char * sub_string,
    const  int sub_size,
    const  int sub_length,
    const  char * src_string,
    const  char * src_end,
    const  char * src_string_bound,
    int src_length,
    int coll_id,
    bool is_forward_search,
    int * position
) 

function qstr_replace

static int qstr_replace (
    const  unsigned  char * src_buf,
    int src_len,
    int src_size,
    INTL_CODESET codeset,
    int coll_id,
    const  unsigned  char * srch_str_buf,
    int srch_str_size,
    const  unsigned  char * repl_str_buf,
    int repl_str_size,
    unsigned  char ** result_buf,
    int * result_len,
    int * result_size
) 

function qstr_substring

static int qstr_substring (
    const  unsigned  char * src,
    int src_length,
    int start,
    int length,
    INTL_CODESET codeset,
    unsigned  char ** r,
    int * r_length,
    int * r_size
) 

function qstr_translate

static int qstr_translate (
    const  unsigned  char * src_ptr,
    DB_TYPE src_type,
    int src_size,
    INTL_CODESET codeset,
    const  unsigned  char * from_str_ptr,
    int from_str_size,
    const  unsigned  char * to_str_ptr,
    int to_str_size,
    unsigned  char ** result_ptr,
    int * result_len,
    int * result_size
) 

function qstr_trim

static int qstr_trim (
    MISC_OPERAND tr_operand,
    const  unsigned  char * trim,
    int trim_length,
    int trim_size,
    const  unsigned  char * src_ptr,
    DB_TYPE src_type,
    int src_length,
    int src_size,
    INTL_CODESET codeset,
    unsigned  char ** res,
    int * res_length,
    int * res_size
) 

function roundoff

static int roundoff (
    const  INTL_LANG lang,
    char * src_string,
    int flag,
    int * cipher,
    char * format
) 

function scientific_to_decimal_string

static int scientific_to_decimal_string (
    const  INTL_LANG lang,
    char * src_string,
    char ** scientific_str
) 

function set_time_argument

static void set_time_argument (
    struct  tm * dest,
    int year,
    int month,
    int day,
    int hour,
    int min,
    int sec
) 

function shift_left

static int shift_left (
    unsigned  char * bit_string,
    int bit_string_size
) 

function sub_and_normalize_date_time

static int sub_and_normalize_date_time (
    int * years,
    int * months,
    int * days,
    int * hours,
    int * minutes,
    int * seconds,
    int * milliseconds,
    const  DB_BIGINT * composite_values
) 

function to_number_next_state

static int to_number_next_state (
    const  int previous_state,
    const  int input_char,
    const  INTL_LANG number_lang_id
) 

function trim_leading

static void trim_leading (
    const  unsigned  char * trim_charset_ptr,
    int trim_charset_size,
    const  unsigned  char * src_ptr,
    DB_TYPE src_type,
    int src_length,
    int src_size,
    INTL_CODESET codeset,
    unsigned  char ** lead_trimmed_ptr,
    int * lead_trimmed_length,
    int * lead_trimmed_size,
    bool skip_spaces
) 

function varbit_truncated

static bool varbit_truncated (
    const  unsigned  char * s,
    int s_length,
    int used_bits
) 

function varchar_truncated

static bool varchar_truncated (
    const  unsigned  char * s,
    DB_TYPE s_type,
    int s_length,
    int used_chars,
    INTL_CODESET codeset
) 

Macro Definition Documentation

define ABS

#define ABS (
    i
) `(( i ) >= 0 ? ( i ) : -( i ))`

define AM_NAME_KR

#define AM_NAME_KR `"ojeon"`

define AM_NAME_KR_EUC

#define AM_NAME_KR_EUC `"\xbf\xc0\xc0\xfc"`

define AM_NAME_KR_UTF8

#define AM_NAME_KR_UTF8 `"\xec\x98\xa4\xec\xa0\x84"`

define BYTE_SIZE

#define BYTE_SIZE `(8)`

define DBL_MAX_DIGITS

#define DBL_MAX_DIGITS `(( int ) ceil ( DBL_MAX_EXP * log10 (( double ) FLT_RADIX )))`

define DB_GET_UCHAR

#define DB_GET_UCHAR (
    dbval
) `( REINTERPRET_CAST ( const  unsigned  char *, db_get_string ((dbval))))`

define DB_NUMERIC_E38_MAX

#define DB_NUMERIC_E38_MAX `"99999999999999999999999999999999999999"`

define ESCAPE_CHAR

#define ESCAPE_CHAR (
    c
) `(c <= 0x1f || (c) == '"' || (c) == '\\')`

define GUID_STANDARD_BYTES_LENGTH

#define GUID_STANDARD_BYTES_LENGTH `16`

define LEAP

#define LEAP (
    y
) `((( y ) % 400 == 0) || (( y ) % 100 != 0 && ( y ) % 4 == 0))`

define LEAST_DATE_FORMAT_CHECK_LENGTH

#define LEAST_DATE_FORMAT_CHECK_LENGTH `(26)`

define LOB_CHUNK_SIZE

#define LOB_CHUNK_SIZE `(128 * 1024)`

define MAX_STRING_DATE_TOKEN_LEN

#define MAX_STRING_DATE_TOKEN_LEN `LOC_DATA_MONTH_WIDE_SIZE`

define MAX_TOKEN_SIZE

#define MAX_TOKEN_SIZE `16000`

define MINUS

#define MINUS `0`

define PAD

#define PAD `' '            /* str_pad_char ( INTL_CODESET_ISO88591 , pad , & pad_size ) */`

define PAD

#define PAD `' '            /* str_pad_char ( INTL_CODESET_ISO88591 , pad , & pad_size ) */`

define PAD

#define PAD `' '            /* str_pad_char ( INTL_CODESET_ISO88591 , pad , & pad_size ) */`

define PAD

#define PAD `' '            /* str_pad_char ( INTL_CODESET_ISO88591 , pad , & pad_size ) */`

define PLUS

#define PLUS `1`

define PM_NAME_KR

#define PM_NAME_KR `"ohu"`

define PM_NAME_KR_EUC

#define PM_NAME_KR_EUC `"\xbf\xc0\xc8\xc4"`

define PM_NAME_KR_UTF8

#define PM_NAME_KR_UTF8 `"\xec\x98\xa4\xed\x9b\x84"`

define PUNCTUATIONAL

#define PUNCTUATIONAL (
    c
) `/* multi line expression */`

define QSTR_DATE_LENGTH

#define QSTR_DATE_LENGTH `10`

define QSTR_MAX_PRECISION

#define QSTR_MAX_PRECISION (
    str_type
) `( QSTR_IS_CHAR ( str_type ) ? DB_MAX_VARCHAR_PRECISION : DB_MAX_VARBIT_PRECISION )`

define QSTR_TIME_LENGTH

#define QSTR_TIME_LENGTH `11`

define QSTR_TIME_STAMPLENGTH

#define QSTR_TIME_STAMPLENGTH `22`

define QSTR_TO_CHAR_LEN_MULTIPLIER_RATIO

#define QSTR_TO_CHAR_LEN_MULTIPLIER_RATIO `LOC_PARSE_FRMT_TO_TOKEN_MULT`

define QSTR_VALUE_PRECISION

#define QSTR_VALUE_PRECISION (
    value
) `/* multi line expression */`

define REPL_POS_ARRAY_EXTENT

#define REPL_POS_ARRAY_EXTENT `32`

define SKIP_SPACES

#define SKIP_SPACES (
    ch,
    end
) `/* multi line expression */`

define SPACE

#define SPACE `PAD /* smallest  character in the collation sequence */`

define SPACE

#define SPACE `PAD /* smallest  character in the collation sequence */`

define STACK_SIZE

#define STACK_SIZE `100`

define TRIM_FORMAT_STRING

#define TRIM_FORMAT_STRING (
    sz,
    n
) `{ if ( strlen ( sz ) > n) sz [n] = 0;}`

define TZD_DEFAULT_EXPECTED_LEN

#define TZD_DEFAULT_EXPECTED_LEN `4`

define TZD_MAX_EXPECTED_LEN

#define TZD_MAX_EXPECTED_LEN `TZ_DS_STRING_SIZE`

define UINT64_MAX_BIN_DIGITS

#define UINT64_MAX_BIN_DIGITS `64`

define UINT64_MAX_HEX_DIGITS

#define UINT64_MAX_HEX_DIGITS `16`

define WHITESPACE

#define WHITESPACE (
    c
) `( char_isspace2 ((c)))`

define WHITE_CHARS

#define WHITE_CHARS `" \r\t\n"`

define ZERO

#define ZERO `'\0'      /* space  is  treated  as  zero */`

define ZERO

#define ZERO `'\0'      /* space  is  treated  as  zero */`


The documentation for this class was generated from the following file cubrid/src/query/string_opfunc.c