Bagikan melalui


CStringT Members

The following tables list the members of the CStringT class. For a list of members inherited by the CStringT class, see CSimpleStringT Members.

Constructors/Destructors

CStringT::CStringT

Constructs a CStringT object in various ways.

CStringT::~CStringT

Destroys a CStringT object.

Methods

CStringT::AllocSysString

Allocates a BSTR from CStringT data.

CStringT::AnsiToOem

Makes an in-place conversion from the ANSI character set to the OEM character set.

CStringT::AppendFormat

Appends formatted data to an existing CStringT object.

CStringT::Collate

Compares two strings (case sensitive, uses locale-specific information).

CStringT::CollateNoCase

Compares two strings (case insensitive, uses locale-specific information).

CStringT::Compare

Compares two strings (case sensitive).

CStringT::CompareNoCase

Compares two strings (case insensitive).

CStringT::Delete

Deletes a character or characters from a string.

CStringT::Find

Finds a character or substring inside a larger string.

CStringT::FindOneOf

Finds the first matching character from a set.

CStringT::Format

Formats the string as sprintf does.

CStringT::FormatMessage

Formats a message string.

CStringT::FormatMessageV

Formats a message string using a variable argument list.

CStringT::FormatV

Formats the string using a variable list of arguments.

CStringT::GetEnvironmentVariable

Sets the string to the value of the specified environment variable.

CStringT::Insert

Inserts a single character or a substring at the given index within the string.

CStringT::Left

Extracts the left part of a string.

CStringT::LoadString

Loads an existing CStringT object from a Windows resource.

CStringT::MakeLower

Converts all the characters in this string to lowercase characters.

CStringT::MakeReverse

Reverses the string.

CStringT::MakeUpper

Converts all the characters in this string to uppercase characters.

CStringT::Mid

Extracts the middle part of a string.

CStringT::OemToAnsi

Makes an in-place conversion from the OEM character set to the ANSI character set.

CStringT::Remove

Removes indicated characters from a string.

CStringT::Replace

Replaces indicated characters with other characters.

CStringT::ReverseFind

Finds a character inside a larger string; starts from the end.

CStringT::Right

Extracts the right part of a string.

CStringT::SetSysString

Sets an existing BSTR object with data from a CStringT object.

CStringT::SpanExcluding

Extracts characters from the string, starting with the first character, that are not in the set of characters identified by pszCharSet.

CStringT::SpanIncluding

Extracts a substring that contains only the characters in a set.

CStringT::Tokenize

Extracts specified tokens in a target string.

CStringT::Trim

Trims all leading and trailing whitespace characters from the string.

CStringT::TrimLeft

Trims leading whitespace characters from the string.

CStringT::TrimRight

Trims trailing whitespace characters from the string.

Operators

CStringT::operator =

Assigns a new value to a CStringT object.

CStringT::operator +

Concatenates two strings or a character and a string.

CStringT::operator +=

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

CStringT::operator ==

Determines if two strings are logically equal.

CStringT::operator !=

Determines if two strings are logically not equal.

CStringT::operator <

Determines if the string on the left side of the operator is less than to the string on the right side.

CStringT::operator >

Determines if the string on the left side of the operator is greater than to the string on the right side.

CStringT::operator <=

Determines if the string on the left side of the operator is less than or equal to the string on the right side.

CStringT::operator >=

Determines if the string on the left side of the operator is greater than or equal to the string on the right side.

See Also

Reference

CStringT Class

Other Resources

CSimpleStringT Members