This documentation describes the Prokee module interface.
Templates
Show templates with parameter T set to: (
T),
(
char),
(
char16_t),
(
char32_t),
(
wchar_t
)
Static Template Methods:
len
template< class T > unsigned int str::len(const T *a)
cpy
template< class T > T *str::cpy(T *a,const T *b)
cat
template< class T > T *str::cat(T *a,const T *b)
cmp
template< class T > int str::cmp(const T *a,const T *b)
Motivation
Static Template Methods
len
Returns the length of the string.
Signature:
template< class T > unsigned int str::len(const T *a)
Parameters:
| const T * | a | [IN] | Pointer to a null-terminated string. |
Return value:The length (number of characters) of the string.
cpy
Copies the string from
b to
a.
Signature:
template< class T > T *str::cpy(T *a,const T *b)
Parameters:
| T * | a | [IN/OUT] | Pointer to a null-terminated string. |
| const T * | b | [IN] | Pointer to a null-terminated string. |
Return value:Returns a pointer to
a.
cat
Appends the string from
b to the string at
a.
Signature:
template< class T > T *str::cat(T *a,const T *b)
Parameters:
| T * | a | [IN/OUT] | Pointer to a null-terminated string. |
| const T * | b | [IN] | Pointer to a null-terminated string. |
Return value:Returns a pointer to
a.
cmp
Compares the strings in
a and
b.
Signature:
template< class T > int str::cmp(const T *a,const T *b)
Parameters:
| const T * | a | [IN] | Pointer to a null-terminated string. |
| const T * | b | [IN] | Pointer to a null-terminated string. |
Return value:Returnes 0 if both strings are equal and a value other than 0 otherwise.