WideCompareText - C++ Builder

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


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

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

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

参数:

  • S1:要比较的字符串1,UnicodeString 类型;
  • S2:要比较的字符串2,UnicodeString 类型;

返回值:

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

相关:

  • 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 ➙ WideCompareText

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