Lines Matching refs:theInsertionOffset
1404 void InsertCStrIntoCStr(const char *theSrcCStr,const int theInsertionOffset,char *theDstCStr,const int maxDstStrLength)
1412 if (theDstCStr != nil && theSrcCStr != nil && maxDstStrLength > 0 && theInsertionOffset < maxDstStrLength - 1)
1419 if (theInsertionOffset + insertLength < maxDstStrLength - 1)
1426 numCharsToInsert = maxDstStrLength - 1 - theInsertionOffset;
1432 numCharsToShift = currentLength - theInsertionOffset;
1437 numCharsToShift = maxDstStrLength - 1 - theInsertionOffset - numCharsToInsert;
1443 BlockMove(theDstCStr + theInsertionOffset,theDstCStr + theInsertionOffset + numCharsToInsert,numCharsToShift);
1448 BlockMove(theSrcCStr,theDstCStr + theInsertionOffset,numCharsToInsert);
1451 theDstCStr[theInsertionOffset + numCharsToInsert + numCharsToShift] = 0;
1457 void InsertPStrIntoCStr(const unsigned char *theSrcPStr,const int theInsertionOffset,char *theDstCStr,const int maxDstStrLength)
1465 if (theDstCStr != nil && theSrcPStr != nil && maxDstStrLength > 0 && theInsertionOffset < maxDstStrLength - 1)
1472 if (theInsertionOffset + insertLength < maxDstStrLength - 1)
1479 numCharsToInsert = maxDstStrLength - 1 - theInsertionOffset;
1485 numCharsToShift = currentLength - theInsertionOffset;
1490 numCharsToShift = maxDstStrLength - 1 - theInsertionOffset - numCharsToInsert;
1496 BlockMove(theDstCStr + theInsertionOffset,theDstCStr + theInsertionOffset + numCharsToInsert,numCharsToShift);
1501 BlockMove(theSrcPStr + 1,theDstCStr + theInsertionOffset,numCharsToInsert);
1504 theDstCStr[theInsertionOffset + numCharsToInsert + numCharsToShift] = 0;