CUBRID Engine  latest
adjustable_array.c File Reference
#include "config.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <assert.h>
#include "porting.h"
#include "adjustable_array.h"
Include dependency graph for adjustable_array.c:

Go to the source code of this file.

Functions

const char * adj_ar_concat_strings (const char *string1, const char *string2,...)
 
ADJ_ARRAYadj_ar_new (int element_size, int min, float growth_rate)
 
void adj_ar_free (ADJ_ARRAY *adj_array_p)
 
int adj_ar_reset (ADJ_ARRAY *adj_array_p, int element_size, int min, float growth_rate)
 
int adj_ar_initialize (ADJ_ARRAY *adj_array_p, const void *initial, int initial_length)
 
int adj_ar_replace (ADJ_ARRAY *adj_array_p, const void *src, int src_length, int start, int end)
 
int adj_ar_remove (ADJ_ARRAY *adj_array_p, int start, int end)
 
int adj_ar_insert (ADJ_ARRAY *adj_array_p, const void *src, int src_length, int start)
 
int adj_ar_append (ADJ_ARRAY *adj_array_p, const void *src, int src_length)
 
void * adj_ar_get_buffer (const ADJ_ARRAY *adj_array_p)
 
int adj_ar_length (const ADJ_ARRAY *adj_array_p)
 

Function Documentation

int adj_ar_append ( ADJ_ARRAY adj_array_p,
const void *  src,
int  src_length 
)
const char* adj_ar_concat_strings ( const char *  string1,
const char *  string2,
  ... 
)

Definition at line 48 of file adjustable_array.c.

References adj_ar_append(), adj_ar_get_buffer(), adj_ar_new(), adj_ar_reset(), NULL, and strlen.

Referenced by bifmt_numeric_value(), ffmt_value(), and mfmt_value().

Here is the caller graph for this function:

void adj_ar_free ( ADJ_ARRAY adj_array_p)

Definition at line 122 of file adjustable_array.c.

References adj_array::buffer.

Referenced by cubthread::entry::clear_resources(), cnvutil_cleanup(), and co_final().

Here is the caller graph for this function:

int adj_ar_initialize ( ADJ_ARRAY adj_array_p,
const void *  initial,
int  initial_length 
)
int adj_ar_insert ( ADJ_ARRAY adj_array_p,
const void *  src,
int  src_length,
int  start 
)

Definition at line 334 of file adjustable_array.c.

References adj_ar_replace(), assert, and NULL.

Referenced by bifmt_numeric_value(), ffmt_value(), fmt_fractional_value(), mfmt_value(), and num_fmt_print().

Here is the caller graph for this function:

int adj_ar_length ( const ADJ_ARRAY adj_array_p)

Definition at line 375 of file adjustable_array.c.

References assert, adj_array::buffer, adj_array::cur_length, adj_array::element_size, and NULL.

Referenced by cnv_wcs(), and co_signalv().

Here is the caller graph for this function:

ADJ_ARRAY* adj_ar_new ( int  element_size,
int  min,
float  growth_rate 
)
int adj_ar_remove ( ADJ_ARRAY adj_array_p,
int  start,
int  end 
)

Definition at line 318 of file adjustable_array.c.

References adj_ar_replace(), assert, and NULL.

Referenced by adj_ar_initialize(), bifmt_numeric_value(), co_conversion_spec(), co_signalv(), ffmt_value(), fmt_fractional_value(), mfmt_value(), num_fmt_print(), and tfmt_new().

Here is the caller graph for this function:

int adj_ar_reset ( ADJ_ARRAY adj_array_p,
int  element_size,
int  min,
float  growth_rate 
)