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 156... Line 156...
156
			if ((*itr)->str.Compare(str, !bIgnoreCase))
156
			if ((*itr)->str.Compare(str, !bIgnoreCase))
157
			{
157
			{
158
				if ((*itr)->data.Compare(data, !bIgnoreCase))
158
				if ((*itr)->data.Compare(data, !bIgnoreCase))
159
					return static_cast<int>(pos);
159
					return static_cast<int>(pos);
160
			}
160
			}
-
 
161
		}
-
 
162
 
-
 
163
		return -1;
-
 
164
	}
-
 
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);
161
		}
172
		}
162
 
173
 
163
		return -1;
174
		return -1;
164
	}
175
	}
165
 
176
 
Line 169... Line 180...
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))
171
			{
182
			{
172
				if ((*itr)->data.Compare(data, !bIgnoreCase))
183
				if ((*itr)->data.Compare(data, !bIgnoreCase))
173
					return true;
184
					return true;
174
			}
185
			}
175
		}
186
		}
176
 
187
 
177
		return false;
188
		return false;
178
	}
189
	}
179
 
190
 
180
	bool CStringList::containsData(const Utils::String &data, bool bIgnoreCase) const
191
	bool CStringList::containsData(const Utils::String &data, bool bIgnoreCase) const
181
	{
192
	{
182
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++) {
193
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++) {
183
			if ((*itr)->data.Compare(data, !bIgnoreCase))
194
			if ((*itr)->data.Compare(data, !bIgnoreCase))
184
				return true;
195
				return true;
185
		}
196
		}
186
 
197
 
187
		return false;
198
		return false;
188
	}
199
	}
189
 
200
 
Line 204... Line 215...
204
	{
215
	{
205
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++) {
216
		for (CList<SStringList>::iterator itr = _lList->begin(); itr != _lList->end(); itr++) {
206
			if ((*itr)->str.Compare(str, !bIgnoreCase))
217
			if ((*itr)->str.Compare(str, !bIgnoreCase))
207
				return true;
218
				return true;
208
		}
219
		}
209
 
220
 
210
		return false;
221
		return false;
211
	}
222
	}
212
 
223
 
213
	void CStringList::removeAt(int at)
224
	void CStringList::removeAt(int at)
-
 
225
	{
-
 
226
		_lList->removeAt(at);
-
 
227
	}
-
 
228
 
-
 
229
	CStringListIterator CStringList::remove(CStringListIterator itr)
214
	{
230
	{
215
		_lList->removeAt(at);
231
		return _lList->remove(itr);
216
	}
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