WideCompareStr - C++ Builder

C++ Builder 参考手册 ➙ System::Sysutils ➙ WideCompareStr


比较两个 WideString,区分大小写,使用当前的地区和语言

头文件:#include
命名空间:System::Sysutils
函数原型:

int __fastcall WideCompareStr(const System::WideString S1, const System::WideString S2);

参数:

  • S1:要比较的字符串1;
  • S2:要比较的字符串2;

返回值:

  • 0: S1==S2
  • >0: S1>S2
  • <0: S1
  • 比较两个 WideString,区分大小写,使用当前的地区和语言;
  • 和 AnsiCompareStr 的比较结果相同,区别是参数的类型:
    • AnsiCompareStr 的参数是 UnicodeString 类型的;
    • WideCompareStr 的参数是 WideString 类型的;
  • 详细描述和例子请参考 AnsiCompareStr 的描述和例子。

相关:

  • System::Sysutils::TLocaleOptions
  • System::Sysutils::AnsiCompareStr
  • System::Sysutils::AnsiCompareFileName
  • System::Sysutils::AnsiCompareText
  • System::Sysutils::AnsiStrComp
  • System::Sysutils::AnsiStrIComp
  • System::Sysutils::AnsiStrLComp
  • System::Sysutils::AnsiStrLIComp
  • System::Sysutils::CompareMem
  • System::Sysutils::CompareStr
  • System::Sysutils::CompareText
  • System::Sysutils::StrComp
  • System::Sysutils::StrIComp
  • System::Sysutils::StrLComp
  • System::Sysutils::StrLIComp
  • System::Sysutils::WideCompareStr
  • System::Sysutils::WideCompareText
  • System::Sysutils
  • strcmp, _strcmp, _fstrcmp, _tcscmp, wcscmp
  • strncmp, _fstrncmp, _tcsncmp, _tcsnccmp, wcsncmp
  • stricmp, _stricmp, _fstricmp, strcmpi, _strcmpi, _tcsicmp, _tcscmpi, _wcsicmp, wcscmpi, _wcscmpi
  • strnicmp, _strnicmp, _fstrnicmp, strncmpi, _tcsnicmp, _tcsncicmp, _tcsncmpi, _wcsnicmp, wcsncmpi, _wcsncmpi

C++ Builder 参考手册 ➙ System::Sysutils ➙ WideCompareStr

你可能感兴趣的:(WideCompareStr - C++ Builder)