pistring remove indexOf*
This commit is contained in:
@@ -860,17 +860,14 @@ public:
|
||||
//! \~english Search symbol "c" from symbol at index "start" and return first occur position
|
||||
//! \~russian Ищет символ "c" от символа "start" и возвращает первое вхождение
|
||||
int find(const char c, const int start = 0) const;
|
||||
int indexOf(const char c, const int start = 0) const {return find(c, start);}
|
||||
|
||||
//! \~english Search symbol "c" from symbol at index "start" and return first occur position
|
||||
//! \~russian Ищет символ "c" от символа "start" и возвращает первое вхождение
|
||||
int find(PIChar c, const int start = 0) const {return d.indexOf(c, start);}
|
||||
int indexOf(PIChar c, const int start = 0) const {return d.indexOf(c, start);}
|
||||
|
||||
//! \~english Search substring "str" from symbol at index "start" and return first occur position
|
||||
//! \~russian Ищет подстроку "str" от символа "start" и возвращает первое вхождение
|
||||
int find(const PIString & str, const int start = 0) const;
|
||||
int indexOf(const PIString & str, const int start = 0) const {return find(str, start);}
|
||||
|
||||
//! \~english Search substring "str" from symbol at index "start" and return first occur position
|
||||
//! \~russian Ищет подстроку "str" от символа "start" и возвращает первое вхождение
|
||||
@@ -884,7 +881,6 @@ public:
|
||||
//! \endcode
|
||||
//! \~\sa \a findAny(), \a findLast(), \a findAnyLast(), \a findWord(), \a findCWord(), \a findRange()
|
||||
int find(const char * str, const int start = 0) const {return find(PIString(str), start);}
|
||||
int indexOf(const char * str, const int start = 0) const {return find(str, start);}
|
||||
|
||||
//! \~english Search any symbol of "str" from symbol at index "start" and return first occur position
|
||||
//! \~russian Ищет любой символ строки "str" от симола "start" и возвращает первое вхождение
|
||||
@@ -904,17 +900,14 @@ public:
|
||||
//! \~english Search symbol "c" from symbol at index "start" and return last occur position
|
||||
//! \~russian Ищет символ "c" от символа "start" и возвращает последнее вхождение
|
||||
int findLast(const char c, const int start = 0) const;
|
||||
int lastIndexOf(const char c, const int start = 0) const {return findLast(c, start);}
|
||||
|
||||
//! \~english Search symbol "c" from symbol at index "start" and return last occur position
|
||||
//! \~russian Ищет символ "c" от символа "start" и возвращает последнее вхождение
|
||||
int findLast(PIChar c, const int start = 0) const;
|
||||
int lastIndexOf(PIChar c, const int start = 0) const {return findLast(c, start);}
|
||||
|
||||
//! \~english Search substring "str" from symbol at index "start" and return last occur position
|
||||
//! \~russian Ищет подстроку "str" от символа "start" и возвращает последнее вхождение
|
||||
int findLast(const PIString & str, const int start = 0) const;
|
||||
int lastIndexOf(const PIString & str, const int start = 0) const {return findLast(str, start);}
|
||||
|
||||
//! \~english Search substring "str" from symbol at index "start" and return last occur position
|
||||
//! \~russian Ищет подстроку "str" от символа "start" и возвращает последнее вхождение
|
||||
@@ -928,7 +921,6 @@ public:
|
||||
//! \endcode
|
||||
//! \~\sa \a find(), \a findAny(), \a findAnyLast(), \a findWord(), \a findCWord(), \a findRange()
|
||||
int findLast(const char * str, const int start = 0) const {return findLast(PIString(str), start);}
|
||||
int lastIndexOf(const char * str, const int start = 0) const {return findLast(str, start);}
|
||||
|
||||
//! \~english Search any symbol of "str" from symbol at index "start" and return last occur position
|
||||
//! \~russian Ищет любой символ строки "str" от символа "start" и возвращает последнее вхождение
|
||||
|
||||
@@ -185,7 +185,7 @@ PIString frameworkName(const PIString & l) {
|
||||
|
||||
|
||||
PIString frameworkInternalPath(const PIString & l) {
|
||||
return l.right(l.size_s() - l.lastIndexOf(".framework") - 11);
|
||||
return l.right(l.size_s() - l.findLast('.') - 11);
|
||||
}
|
||||
|
||||
|
||||
@@ -632,7 +632,7 @@ int main(int argc, char * argv[]) {
|
||||
if (styles.isEmpty()) styles << "";
|
||||
PIStringList qpd = cli.argumentValue("qt-plugins").toLowerCase().split(DELIM);
|
||||
piForeachC (PIString & qp, qpd) {
|
||||
int _i = qp.indexOf("=");
|
||||
int _i = qp.find('=');
|
||||
if (_i < 0) continue;
|
||||
PIString pname = qp.left(_i).trim();
|
||||
PIStringList pfilt = qp.mid(_i + 1).trim().split(",");
|
||||
|
||||
Reference in New Issue
Block a user