Q3CString_EmptyData |
( TQ3Status ) Q3CString_EmptyData ( char **str );
Releases the memory allocated by a previous call to
Q3CString_GetString.
After the string data has been freed, the str parameter
will be reset to NULL.
- str
- The string data to release.
Q3CString_GetLength |
( TQ3Status ) Q3CString_GetLength ( TQ3StringObject stringObj, TQ3Uns32 *length );
Get the length of a string object.
Returns the number of bytes required to store the character
data in the string object. The length returned does not
include the terminating NULL byte.
- stringObj
- The object to test.
- length
- The number of bytes needed for character data.
Q3CString_GetString |
( TQ3Status ) Q3CString_GetString ( TQ3StringObject stringObj, char **str );
Return the character data of a string object.
The data returned must be released with a subsequent call to
Q3CString_EmptyData. The data returned will be NULL terminated.
The str parameter is overwritten, and so must not point to an
existing string or a memory leak will occur. If the value of
the str parameter is not NULL, a warning will be posted.
- stringObj
- The object to query.
- str
- Receives a pointer to the character data.
Q3CString_New |
( TQ3StringObject ) Q3CString_New ( const char *str );
Create a new C string object.
Creates a string object based on a NULL terminated string. The
string data is copied, and so str can be disposed of after
creating the object.
- str
- The C string to copy.
Q3CString_SetString |
( TQ3Status ) Q3CString_SetString ( TQ3StringObject stringObj, const char *str );
Set the character data of a string object.
Assigns a C string to the string object. The string data is copied
and so str can be disposed of after this call.
- stringObj
- The object to update.
- str
- The string to assign to the object.
Q3String_GetType |
( TQ3ObjectType ) Q3String_GetType ( TQ3StringObject stringObj );
Returns the type of a string object.
Returns kQ3StringTypeCString, or kQ3ObjectTypeInvalid if the
object type is unknown.
- stringObj
- The object to test.
© 1999-2008 Quesa Developers (Last Updated 5/10/2008)