Compare() checks the equality of two strings - Case sensitive.
Result is the same as strcmp (0 == same).
- Parameters:
-
| str | - CATString to compare against |
| cmpLen | - length to compare (0 = all) |
| offset | - offset to begin comparison |
- Returns:
- CATInt32 - 0 if equal, < 0 if less than, > 0 if greater.
- See also:
- CompareNoCase()
Definition at line 157 of file CATString.cpp.
References CATASSERT, fAsciiLocked, fUnicodeBuffer, IsEmpty(), and LengthCalc().
Referenced by CATGuiObj::Find(), CATWindow::FindControlCallback(), CATFileSystem_Win32::FindFirst(), CATFileSystem_Win32::FindNext(), CATListBox::GetByName(), CATSkin::GetControlsByCommand(), CATSkin::GetWindowByName(), CATComboBox::Load(), GASPilot::OnCommand(), CATSkin::OnCommand(), CATApp::OnCommand(), CATListBox::OnEvent(), CATComboBox::OnEvent(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), CATSlider::ParseAttributes(), CATMenu::ParseAttributes(), CATKnob::ParseAttributes(), CATControl::ParseAttributes(), CATWindow::ProcessCommandTable(), CATGuiObj::RectFromAttribs(), CATListBox::RemoveByName(), CATControl::ResetCursorToDefault(), CATListBox::SetCurSelByName(), CATTreeCtrl::SetFocused(), CATListBox::SetFocused(), CATEditBox::SetFocused(), and GASPilot::UpdateControllerMenu().