NonStop SOAP 4.1 User's Manual

Description:
This function finds the first occurrence of the substring needle in the string haystack. It ignores the
case of both arguments.
Parameters:
haystack
is the string in which the given string is to be found.
needle
is the string to be found in haystack.
Return Values:
This function returns pointer to the beginning of the substring, or NULL if the substring is not found.
The axutil_strchr() Function
Synopsis:
AXIS2_EXTERN axis2_char_t* axutil_strchr
( const axis2_char_t * s,
axis2_char_t ch )
Description:
This function finds the first occurrence of a character in a string.
Parameters:
s
is the string in which the character is searched.
ch
is the character to be searched.
Return Values:
This function returns pointer to the first occurrence of the character in the string.
The axutil_replace()Function
Synopsis:
AXIS2_EXTERN axis2_char_t * axutil_replace
(const axutil_env_t *env,
axis2_char_t *str,
int s1, int s2)
Description:
This function replaces a string by another string.
Parameters:
env
is an input parameter and is a pointer to the environment structure. It cannot have a NULL
value.
str
is the string in which the input string (s1) is searched .
s1
is the string to be searched in str.
s2
is the string that replaces s1.
Return Values:
This function returns the new string.
384 NonStop SOAP 4 APIs