[Reference] System.SysUtils.StrComp
Delphi
function StrComp(const Str1, Str2: PAnsiChar): Integer;
function StrComp(const Str1, Str2: PWideChar): Integer;
C++
extern PACKAGE int __fastcall StrComp(const char * Str1, const char * Str2)/* overload */;
Properties
Type |
Visibility |
Source |
Unit |
Parent |
function |
public |
System.SysUtils.pas System.SysUtils.hpp |
Description
Compares two strings with case sensitivity.
Call StrComp to compare two null-terminated strings, with case sensitivity.
The return value is indicated in the following table.
Note: When working with International characters, use AnsiStrComp instead.
대소문자를 구분하여 두 문자열을 비교합니다.
StrCmp를 호출하여 두 개의 Null 종료 문자열을 대소문자를 구분하여 비교합니다.
반환 값은 다음 표에 나와 있습니다.
참고: 국제 문자로 작업 할 때 대신 AnsiStrComp 를 사용하십시오.
Return value |
Condition |
<0 |
Str1 sorts before Str2. |
=0 |
Str1 is the same as Str2. |
>0 |
Str1 sorts after Str2. |
계기에 표시된; 바람직한. indicate 미국·영국 [|ɪndɪkeɪt] 1. (사실임・존재함을) 나타내다 |
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.StrComp