handles string processing


Functions

AXIS2_EXTERN int w2c_string_indexof (axis2_char_t *str, axis2_char_t c)
AXIS2_EXTERN int w2c_string_indexof_cs (axis2_char_t *str, axis2_char_t *cs)
AXIS2_EXTERN axis2_char_t * w2c_string_add_string (axis2_char_t *string1, axis2_char_t *string2, const axis2_env_t *env)
AXIS2_EXTERN axis2_char_t * w2c_string_make_c_simple_name (axis2_char_t *name, const axis2_env_t *env)
AXIS2_EXTERN axis2_char_t * w2c_string_make_c_macro_name (axis2_char_t *name, const axis2_env_t *env)
AXIS2_EXTERN axis2_char_t * w2c_string_make_key_from_qname (axis2_qname_t *qname, const axis2_env_t *env)

Function Documentation

AXIS2_EXTERN axis2_char_t* w2c_string_add_string ( axis2_char_t *  string1,
axis2_char_t *  string2,
const axis2_env_t env 
)

if string1 is NULL new string created otherwise add string2 to string1.

Parameters:
env pointer to the environment. MUST NOT be NULL
string1 string
string2 string
Returns:
added string

AXIS2_EXTERN int w2c_string_indexof ( axis2_char_t *  str,
axis2_char_t  c 
)

gives the index of the given axis2_char_tacter in its first occurrence.

Parameters:
str string operation apply
c character
Returns:
index of the first occurrence

AXIS2_EXTERN int w2c_string_indexof_cs ( axis2_char_t *  str,
axis2_char_t *  cs 
)

gives the index of the given axis2_char_tacters in its first occurrence.

Parameters:
str string operation apply
cs characters
Returns:
index of the first occurrence

AXIS2_EXTERN axis2_char_t* w2c_string_make_c_macro_name ( axis2_char_t *  name,
const axis2_env_t env 
)

convert given name to an axis2/c convension macro name ie whenver the case change '_' is placed between all letters convert to capital.

Parameters:
name name to convert
env pointer to the environment. MUST NOT be NULL
Returns:
c macro name

AXIS2_EXTERN axis2_char_t* w2c_string_make_c_simple_name ( axis2_char_t *  name,
const axis2_env_t env 
)

convert given name to an axis2/c convension ie whenver the case change '_' is placed between all letters convert to simple.

Parameters:
name name to convert
env pointer to the environment. MUST NOT be NULL
Returns:
c simple name

AXIS2_EXTERN axis2_char_t* w2c_string_make_key_from_qname ( axis2_qname_t *  qname,
const axis2_env_t env 
)

get a hash key from the qname.

Parameters:
qname qname to make the key
env pointer to the environment. MUST NOT be NULL
Returns:
newly create hash key


Generated on Thu Oct 26 21:11:38 2006 for Axis2/C by  doxygen 1.4.7