Subversion Repositories spk

Rev

Rev 165 | Rev 179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 165 Rev 170
Line 161... Line 161...
161
		}
161
		}
162
 
162
 
163
		return -1;
163
		return -1;
164
	}
164
	}
165
 
165
 
-
 
166
	int CStringList::findPos(const Utils::String& str, bool bIgnoreCase) const
-
 
167
	{
-
 
168
		size_t pos = 0;
-
 
169
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++, pos++) {
-
 
170
			if ((*itr)->str.Compare(str, !bIgnoreCase))
-
 
171
				return static_cast<int>(pos);
-
 
172
		}
-
 
173
 
-
 
174
		return -1;
-
 
175
	}
-
 
176
 
166
	bool CStringList::containsStringAndData(const Utils::String& str, const Utils::String& data, bool bIgnoreCase) const
177
	bool CStringList::containsStringAndData(const Utils::String& str, const Utils::String& data, bool bIgnoreCase) const
167
	{
178
	{
168
		size_t pos = 0;
179
		size_t pos = 0;
169
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++, pos++) {
180
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++, pos++) {
170
			if ((*itr)->str.Compare(str, !bIgnoreCase))
181
			if ((*itr)->str.Compare(str, !bIgnoreCase))
Line 212... Line 223...
212
 
223
 
213
	void CStringList::removeAt(int at)
224
	void CStringList::removeAt(int at)
214
	{
225
	{
215
		_lList->removeAt(at);
226
		_lList->removeAt(at);
216
	}
227
	}
-
 
228
 
-
 
229
	CStringListIterator CStringList::remove(CStringListIterator itr)
-
 
230
	{
-
 
231
		return _lList->remove(itr);
-
 
232
	}
217
	bool CStringList::remove(const Utils::String &str, bool single)
233
	bool CStringList::remove(const Utils::String &str, bool single)
218
	{
234
	{
219
		bool removed = false;
235
		bool removed = false;
220
 
236
 
221
		CList<Utils::SStringList>::iterator itr = _lList->begin();
237
		CList<Utils::SStringList>::iterator itr = _lList->begin();