![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() |
RazrFalcon |
![]()
Сообщение
#1
|
![]() Zombie Mod ![]() ![]() ![]() ![]() ![]() Группа: Участник Сообщений: 1654 Регистрация: 24.5.2010 Из: Харьков Пользователь №: 1752 Спасибо сказали: 64 раз(а) Репутация: ![]() ![]() ![]() |
Что быстрее работает? И есть ли вообще разница?
Из доки: Цитата int QString::count ( const QString & str, Qt::CaseSensitivity cs = Qt::CaseSensitive ) const иReturns the number of (potentially overlapping) occurrences of the string str in this string. If cs is Qt::CaseSensitive (default), the search is case sensitive; otherwise the search is case insensitive. Цитата int QString::length () const Returns the number of characters in this string. Equivalent to size(). Как я понимаю length лучше использовать, в тех же циклах. Да? |
|
|
![]() ![]() ![]() |
![]() |
|
Текстовая версия | Сейчас: 23.4.2025, 15:55 |