Compartir a través de


CSimpleStringT Members

Methods

Append

Appends a CSimpleStringT object to an existing CSimpleStringT object.

AppendChar

Appends a character to an existing CSimpleStringT object.

CopyChars

Copies a character or characters to another string.

CopyCharsOverlapped

Copies a character or characters to another string in which the buffers overlap.

CSimpleStringT

Constructs CSimpleStringT objects in various ways.

Empty

Forces a string to have a length of zero.

FreeExtra

Frees any extra memory previously allocated by the string object.

GetAllocLength

Retrieves the allocated length of a CSimpleStringT object.

GetAt

Returns the character at a given position.

GetBuffer

Returns a pointer to the characters in a CSimpleStringT.

GetBufferSetLength

Returns a pointer to the characters in a CSimpleStringT, truncating to the specified length.

GetLength

Returns the number of characters in a CSimpleStringT object.

GetManager

Retrieves the memory manager of the CSimpleStringT object.

GetString

Retrieves the character string

IsEmpty

Tests whether a CSimpleStringT object contains no characters.

LockBuffer

Disables reference counting and protects the string in the buffer.

Preallocate

Allocates a specific amount of memory for the character buffer.

ReleaseBuffer

Releases control of the buffer returned by GetBuffer.

ReleaseBufferSetLength

Releases control of the buffer returned by GetBuffer.

SetAt

Sets a character at a given position.

SetManager

Sets the memory manager of a CSimpleStringT object.

SetString

Sets the string of a CSimpleStringT object.

StringLength

Returns the number of characters in the specified string.

Truncate

Truncates the string to a specified length.

UnlockBuffer

Enables reference counting and releases the string in the buffer.

Operators

operator +=

Concatenates a new string to the end of an existing string.

operator =

Assigns a new value to a CSimpleStringT object.

operator []

Returns the character at a given position — operator substitution for GetAt.

operator PCXSTR

Directly accesses characters stored in a CSimpleStringT object as a C-style string.

Typedefs

PCXSTR

A pointer to a constant string.

PXSTR

A pointer to a string.

See Also

Concepts

CSimpleStringT Class

Hierarchy Chart