Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

xmlchar.cpp File Reference

Definitions of some XmlChar specific functions. More...

#include "xmlchar.h"

Go to the source code of this file.

Functions

size_t xmlchar_strlen (const XmlChar *str)
 Calculate the length of the XmlChar string. More...

XmlChar * xmlchar_strcpy (XmlChar *dest, const XmlChar *src)
 Copy XmlChar string. More...

XmlChar * xmlchar_cstrcpy (XmlChar *dest, const char *src)
 Copy char * string to XmlChar string. More...

XmlChar * xmlchar_strncpy (XmlChar *dest, const XmlChar *src, size_t n)
 Copy up to a given number of characters of a XmlChar string. More...

XmlChar * xmlchar_cstrncpy (XmlChar *dest, const char *src, size_t n)
 Copy up to a given number of characters of char * string to a XmlChar string. More...

XmlChar * xmlchar_strcat (XmlChar *dest, const XmlChar *src)
 Concatenate two XmlChar strings. More...

XmlChar * xmlchar_cstrcat (XmlChar *dest, const char *src)
 Append char * string to XmlChar string. More...

XmlChar * xmlchar_strncat (XmlChar *dest, const XmlChar *src, size_t n)
 Append up to a given number of characters to XmlChar string. More...

XmlChar * xmlchar_cstrncat (XmlChar *dest, const char *src, size_t n)
 Append up to a given number of characters from char * string to XmlChar string. More...

int xmlchar_strcmp (const XmlChar *s1, const XmlChar *s2)
 Compare two XmlChar strings. More...

int xmlchar_strncmp (const XmlChar *s1, const XmlChar *s2, size_t n)
 Compare up to n characters of two XmlChar strings. More...

int xmlchar_cstrcmp (const XmlChar *s1, const char *s2)
 Compare two XmlChar strings. More...

int xmlchar_cstrncmp (const XmlChar *s1, const char *s2, size_t n)
 Compare up to n characters of two XmlChar strings. More...


Detailed Description

Definitions of some XmlChar specific functions.

This file contains definitions XmlChar specific functions.

Definition in file xmlchar.cpp.


Function Documentation

XmlChar* xmlchar_cstrcat XmlChar *    dest,
const char *    src
 

Append char * string to XmlChar string.

This function is an simple equivalent to strcat(), except that it works with XmlChar based string. It appends src to dest. Terminating 0 is included. Characters of src are simply overtyped to XmlChar.

Parameters:
dest  Destination string.
src  Source string.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strncpy() , xmlchar_strncat() , xmlchar_cstrncat()

Definition at line 131 of file xmlchar.cpp.

References XmlChar.

int xmlchar_cstrcmp const XmlChar *    s1,
const char *    s2
 

Compare two XmlChar strings.

This function is an simple equivalent to strcmp(), except that it works with XmlChar based string. It returns -1, 0 or 1 if first string is less, equal or more than the second string.

Parameters:
s1  XmlChar string.
s2  XmlChar string.
Returns:
-1, 0, 1.
See also:
xmlchar_cstrncmp() , xmlchar_strcmp() , xmlchar_strncmp() , xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strcat()

Definition at line 280 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_cstrcpy XmlChar *    dest,
const char *    src
 

Copy char * string to XmlChar string.

This function is an simple equivalent to strcpy(), except that it works with XmlChar based string. It copies src to dest. Terminating 0 is included.

Parameters:
dest  Destination string.
src  Source string.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strncpy() , xmlchar_strcat() , xmlchar_strncat() , xmlchar_cstrncpy()

Definition at line 60 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_cstrncat XmlChar *    dest,
const char *    src,
size_t    n
 

Append up to a given number of characters from char * string to XmlChar string.

This function is an simple equivalent to strncat(), except that it works with XmlChar based string. It appends up to n XmlChars from src to dest. If there is no terminating 0 in the n XmlChars of src, dest will not be zero terminated. Characters of src are simply overtyped to XmlChar.

Parameters:
dest  Destination string.
src  Source string.
n  Maximum number of appended XmlChars.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strncpy() , xmlchar_strcat() , xmlchar_cstrcat()

Definition at line 166 of file xmlchar.cpp.

References XmlChar.

int xmlchar_cstrncmp const XmlChar *    s1,
const char *    s2,
size_t    n
 

Compare up to n characters of two XmlChar strings.

This function is an simple equivalent to strncmp(), except that it works with XmlChar based string. It returns -1, 0 or 1 if first string is less, equal or more than the second string.

Parameters:
s1  XmlChar string.
s2  XmlChar string.
n  Number of compared characters.
Returns:
-1, 0, 1.
See also:
xmlchar_cstrcmp() , xmlchar_strcmp() , xmlchar_strncmp() , xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strcat()

Definition at line 326 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_cstrncpy XmlChar *    dest,
const char *    src,
size_t    n
 

Copy up to a given number of characters of char * string to a XmlChar string.

This function is an simple equivalent to strncpy(), except that it works with XmlChar based string. It copies up to n XmlChars from src to dest. If there is no terminating 0 in the n XmlChars of src, dest will not be zero terminated. Characters of src are simply overtyped to XmlChar.

Parameters:
dest  Destination string.
src  Source string.
n  Maximum number of copied XmlChars.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strcat() , xmlchar_strncat() , xmlchar_cstrcpy()

Definition at line 95 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_strcat XmlChar *    dest,
const XmlChar *    src
 

Concatenate two XmlChar strings.

This function is an simple equivalent to strcat(), except that it works with XmlChar based string. It appends src to dest. Terminating 0 is included.

Parameters:
dest  Destination string.
src  Source string.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strncpy() , xmlchar_strncat()

Definition at line 114 of file xmlchar.cpp.

References XmlChar.

int xmlchar_strcmp const XmlChar *    s1,
const XmlChar *    s2
 

Compare two XmlChar strings.

This function is an simple equivalent to strcmp(), except that it works with XmlChar based string. It returns -1, 0 or 1 if first string is less, equal or more than the second string.

Parameters:
s1  XmlChar string.
s2  XmlChar string.
Returns:
-1, 0, 1.
See also:
xmlchar_strncmp() , xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strcat()

Definition at line 185 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_strcpy XmlChar *    dest,
const XmlChar *    src
 

Copy XmlChar string.

This function is an simple equivalent to strcpy(), except that it works with XmlChar based string. It copies src to dest. Terminating 0 is included.

Parameters:
dest  Destination string.
src  Source string.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strncpy() , xmlchar_strcat() , xmlchar_strncat()

Definition at line 46 of file xmlchar.cpp.

References XmlChar.

size_t xmlchar_strlen const XmlChar *    str
 

Calculate the length of the XmlChar string.

This function is an simple equivalent to strlen(), except that it works with XmlChar based string.

Parameters:
str  XmlChar string.
Returns:
Number of XmlChars in string.
See also:
xmlchar_strcpy() , xmlchar_strncpy() , xmlchar_strcat() , xmlchar_strncat()

Definition at line 30 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_strncat XmlChar *    dest,
const XmlChar *    src,
size_t    n
 

Append up to a given number of characters to XmlChar string.

This function is an simple equivalent to strncat(), except that it works with XmlChar based string. It appends up to n XmlChars from src to dest. If there is no terminating 0 in the n XmlChars of src, dest will not be zero terminated.

Parameters:
dest  Destination string.
src  Source string.
n  Maximum number of appended XmlChars.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strncpy() , xmlchar_strcat()

Definition at line 148 of file xmlchar.cpp.

References XmlChar.

int xmlchar_strncmp const XmlChar *    s1,
const XmlChar *    s2,
size_t    n
 

Compare up to n characters of two XmlChar strings.

This function is an simple equivalent to strncmp(), except that it works with XmlChar based string. It returns -1, 0 or 1 if first string is less, equal or more than the second string.

Parameters:
s1  XmlChar string.
s2  XmlChar string.
n  Number of compared characters.
Returns:
-1, 0, 1.
See also:
xmlchar_strcmp() , xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strcat()

Definition at line 231 of file xmlchar.cpp.

References XmlChar.

XmlChar* xmlchar_strncpy XmlChar *    dest,
const XmlChar *    src,
size_t    n
 

Copy up to a given number of characters of a XmlChar string.

This function is an simple equivalent to strncpy(), except that it works with XmlChar based string. It copies up to n XmlChars from src to dest. If there is no terminating 0 in the n XmlChars of src, dest will not be zero terminated.

Parameters:
dest  Destination string.
src  Source string.
n  Maximum number of copied XmlChars.
Returns:
Pointer to the destination string.
See also:
xmlchar_strlen() , xmlchar_strcpy() , xmlchar_strcat() , xmlchar_strncat()

Definition at line 76 of file xmlchar.cpp.

References XmlChar.


Generated on Wed Feb 5 10:43:03 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002