#include <SIBCString.h>
This class is used throughout the FTK as a standard method in dealing with strings. The strings are NULL-terminated strings. It supports many methods that perform useful string operations.
|
Default Constructor. Constructs an empty string (length zero). |
|
Copy Constructor. Constructs a string idential to
|
|
Constructor Constructs a string object containing the NULL-terminated character string pointer to by
|
|
Returns the amount of memory allocated by the string. This does not include the size of the SIBCString class, only the data contained in its character buffer. In SIBCString (but not necessarily in other classes) SIBCString::AllocatedMemory is equivalent to SIBCString::UsedMemory.
|
|
Deletes the internal character buffer of the string, and sets the length to zero. |
|
Returns a value indicated the differences between this string and the string representation of
|
|
Returns a value indicated the differences between this string and the string representation of
|
|
Returns a value indicated the differences between this string and
|
|
Returns a value indicated the differences between this string and
|
|
Concatenate
SIBCString * t_pMyString = SIBCString("FTK v"); t_pMyString->Concat(3.6f); printf("This is %s\n", t_pMyString.GetText()); // output is "This is FTK v3.6" |
|
Concatenate
SIBCString * t_pMyString = SIBCString("FTK v"); t_pMyString->Concat(3); t_pMyString->Concat("."); t_pMyString->Concat(6); printf("This is %s\n", t_pMyString.GetText()); // output is "This is FTK v3.6" |
|
Concatenate
|
|
Concatenate
|
|
Output debugging information for this string. This includes the address of the string, the length and contents of the string buffer. |
|
Returns the length of the string.
|
|
Returns a character buffer with the contents of the string. This buffer should not be modified, and does not need to be freed after use. This function is generally used to output the text contained within the string.
SIBCString * t_pMyString = new SIBCString("FTK"); // This is OK. printf("I think that %s is the best!\n", t_pMyString->GetText()); // This is wrong. printf("I think that %s is the best!\n", t_pMyString); |
|
Converts all alphabetic characters contained within this string to lower-case characters.
|
|
Inequality operator. Determines whether
|
|
Assignment operator. Copies the value of
|
|
Assignment operator. Copies the value of
|
|
Equality operator. Determines whether
|
|
Equality operator. Determines whether
|
|
Assigns the string representation of
|
|
Assigns the string representation of
|
|
Assigns the NULL-terminated string contained in the character buffer
|
|
Assigns the value contained in the string
|
|
Converts all alphabetic characters contained within this string to upper-case characters.
|
|
Returns the amount of memory used by the string. This does not include the size of the SIBCString class, only the data contained in its character buffer. In SIBCString (but not necessarily in other classes) SIBCString::UsedMemory is equivalent to SIBCString::AllocatedMemory.
|
© Copyright 2001-2003 Avid Technology, Inc. All rights reserved.