Typedefs | |
typedef struct axutil_string | axutil_string_t |
Functions | |
AXIS2_EXTERN axutil_string_t * | axutil_string_create (const axutil_env_t *env, const axis2_char_t *str) |
AXIS2_EXTERN axutil_string_t * | axutil_string_create_assume_ownership (const axutil_env_t *env, axis2_char_t **str) |
AXIS2_EXTERN axutil_string_t * | axutil_string_create_const (const axutil_env_t *env, axis2_char_t **str) |
AXIS2_EXTERN void | axutil_string_free (struct axutil_string *string, const axutil_env_t *env) |
AXIS2_EXTERN axis2_bool_t | axutil_string_equals (const struct axutil_string *string, const axutil_env_t *env, const struct axutil_string *string1) |
AXIS2_EXTERN struct axutil_string * | axutil_string_clone (struct axutil_string *string, const axutil_env_t *env) |
AXIS2_EXTERN const axis2_char_t * | axutil_string_get_buffer (const struct axutil_string *string, const axutil_env_t *env) |
AXIS2_EXTERN unsigned int | axutil_string_get_length (const struct axutil_string *string, const axutil_env_t *env) |
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
AXIS2_EXTERN struct axutil_string* axutil_string_clone | ( | struct axutil_string * | string, | |
const axutil_env_t * | env | |||
) | [read] |
Clones a given string. Does not duplicate the buffer, rather increments the reference count. Each call to clone needs to have a matching free, when the clone is done with.
string | pointer to string struct | |
env | pointer to environment struct |
AXIS2_EXTERN axutil_string_t* axutil_string_create | ( | const axutil_env_t * | env, | |
const axis2_char_t * | str | |||
) |
Creates a string struct.
str | pointer to string. string struct would create a duplicate of this | |
env | pointer to environment struct |
AXIS2_EXTERN axutil_string_t* axutil_string_create_assume_ownership | ( | const axutil_env_t * | env, | |
axis2_char_t ** | str | |||
) |
Creates a string struct.
str | pointer to string. string struct would not create a duplicate of this, but would assume ownership | |
env | pointer to environment struct |
AXIS2_EXTERN axutil_string_t* axutil_string_create_const | ( | const axutil_env_t * | env, | |
axis2_char_t ** | str | |||
) |
Creates a string struct.
str | pointer to string. string struct would not create a duplicate of this and assumes the str would have longer life than that of itself | |
env | pointer to environment struct |
AXIS2_EXTERN axis2_bool_t axutil_string_equals | ( | const struct axutil_string * | string, | |
const axutil_env_t * | env, | |||
const struct axutil_string * | string1 | |||
) |
Compares two strings. Checks if the two strings point to the same buffer. Do not cmpare the buffer contents.
string | pointer to string struct | |
env | pointer to environment struct | |
string1 | pointer to string struct to be compared |
AXIS2_EXTERN void axutil_string_free | ( | struct axutil_string * | string, | |
const axutil_env_t * | env | |||
) |
Frees string struct.
string | pointer to string struct | |
env | pointer to environment struct |
AXIS2_EXTERN const axis2_char_t* axutil_string_get_buffer | ( | const struct axutil_string * | string, | |
const axutil_env_t * | env | |||
) |
Gets string buffer.
string | pointer to string struct | |
env | pointer to environment struct |
AXIS2_EXTERN unsigned int axutil_string_get_length | ( | const struct axutil_string * | string, | |
const axutil_env_t * | env | |||
) |
Gets string length. *
string | pointer to string struct * | |
env | pointer to environment struct * |