Lines Matching refs:idx
74 void StringArray::erase(int idx) { in erase() argument
75 if (idx < 0 || idx >= mCurrent) in erase()
77 delete[] mArray[idx]; in erase()
78 if (idx < mCurrent-1) { in erase()
79 memmove(&mArray[idx], &mArray[idx+1], in erase()
80 (mCurrent-1 - idx) * sizeof(char*)); in erase()
103 void StringArray::setEntry(int idx, const char* str) { in setEntry() argument
104 if (idx < 0 || idx >= mCurrent) in setEntry()
106 delete[] mArray[idx]; in setEntry()
108 mArray[idx] = new char[len+1]; in setEntry()
109 memcpy(mArray[idx], str, len+1); in setEntry()