Lines Matching defs:index
385 NS_ASSERTION(aIndex >= 0,"InsertElementAt(negative index)");
388 // An invalid index causes the insertion to fail
430 NS_ASSERTION(aIndex >= 0,"InsertElementsAt(negative index)");
433 // An invalid index causes the insertion to fail
476 NS_ASSERTION(aIndex >= 0,"ReplaceElementAt(negative index)");
532 NS_ASSERTION(aTo >= 0 && aFrom >= 0,"MoveElement(negative index)");
561 NS_ASSERTION(aIndex >= 0,"RemoveElementsAt(negative index)");
564 // An invalid index causes the replace to fail
641 PRInt32 index = -1;
646 while (running && (++index < mImpl->mCount))
648 running = (*aFunc)(mImpl->mArray[index], aData);
660 PRInt32 index = Count();
661 while (running && (0 <= --index))
663 running = (*aFunc)(mImpl->mArray[index], aData);
818 PRInt32 index = IndexOf(aString);
819 if (-1 < index)
821 return RemoveStringAt(index);
841 PRInt32 index = Count();
842 while (0 <= --index)
844 nsString* string = NS_STATIC_CAST(nsString*, mImpl->mArray[index]);
869 PRInt32 index = -1;
874 while (running && (++index < mImpl->mCount))
876 running = (*aFunc)(*NS_STATIC_CAST(nsString*, mImpl->mArray[index]), aData);
885 PRInt32 index = Count();
890 while (running && (0 <= --index))
892 running = (*aFunc)(*NS_STATIC_CAST(nsString*, mImpl->mArray[index]), aData);
1042 PRInt32 index = IndexOf(aCString);
1043 if (-1 < index)
1045 return RemoveCStringAt(index);
1053 PRInt32 index = IndexOfIgnoreCase(aCString);
1054 if (-1 < index)
1056 return RemoveCStringAt(index);
1076 PRInt32 index = Count();
1077 while (0 <= --index)
1079 nsCString* string = NS_STATIC_CAST(nsCString*, mImpl->mArray[index]);
1119 PRInt32 index = -1;
1120 while (running && (++index < mImpl->mCount))
1122 running = (*aFunc)(*NS_STATIC_CAST(nsCString*, mImpl->mArray[index]), aData);
1135 PRInt32 index = Count();
1136 while (running && (0 <= --index))
1138 running = (*aFunc)(*NS_STATIC_CAST(nsCString*, mImpl->mArray[index]), aData);