Share via


wstring::compare (Windows Embedded CE 6.0)

1/6/2010

This method 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.

Syntax

int compare(
  const wstring& _X
) const;
int compare(
  const wchar_t* _S
) const;

Parameters

  • _X
    The wstring to be compared to this string.
  • _S
    The C-style string to be compared to this string.

Return Value

This method returns:

  • A negative value if this string is lexicographically less than the parameter string.
  • A positive value if this string is lexicographically greater than the parameter string.
  • Zero if the two strings are lexicographically equal.

Requirements

Header av_upnp.h
Library Av_upnp.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

wstring class (UPnP AV)