Partager via


wstring class (UPnP AV) (Windows Embedded CE 6.0)

1/6/2010

This class provides a case-sensitive string that contains comparison and concatenation operations, iterators, and so on, and uses class allocator-managed memory for copies and assignments.

Note

This string class is provided for use only from the UPnP AV Framework. Its extension or use in other applications is not supported.

Remarks

The following table shows the methods for this class.

Method Description

append

Adds characters to the end of the string.

assign

Assigns new character values to the contents of the string.

capacity

Returns the largest number of elements that could be stored in the string without increasing the memory allocation of the string.

clear

Erases all elements of the string.

compare

Compares the string with a specified string to determine if the two strings are equal or if one is lexicographically lesser or greater than the other.

empty

Tests to determine if the string contains elements.

length

Returns the current number of elements in the string.

reserve

Sets the capacity of the string to a number at least as great as a specified number.

resize

Specifies a new size for the string, appending or erasing elements if required.

size

Returns the current number of elements in the string.

wstring

Constructs a string that is empty or initialized by specific characters, or that is a copy of all or part of some other string object or C-style null-terminated string.

The following table shows the operators for this class.

Operator Description

operator const wchar_t*

Converts the contents of the string into a C-style null-terminated string.

operator!=

Compares two strings for inequality.

operator+=

Appends the specified characters to the string.

operator=

Assigns new character values to the contents of a string.

operator==

Compares two strings for equality.

See Also

Reference

UPnP Other Utility Classes