Lines Matching refs:theDstCStr
127 void CopyCStrToCStr(const char *theSrcCStr,char *theDstCStr,const int maxDstStrLength)
132 if (theDstCStr != nil && theSrcCStr != nil && maxDstStrLength > 0)
138 theDstCStr[i] = 0;
145 theDstCStr[i] = theSrcCStr[i];
153 void CopyCSubstrToCStr(const char *theSrcCStr,const int maxCharsToCopy,char *theDstCStr,const int maxDstStrLength)
158 if (theDstCStr != nil && theSrcCStr != nil && maxDstStrLength > 0)
164 theDstCStr[i] = 0;
171 theDstCStr[i] = theSrcCStr[i];
355 void ConcatCStrToCStr(const char *theSrcCStr,char *theDstCStr,const int maxCStrLength)
360 if (theSrcCStr != nil && theDstCStr != nil && maxCStrLength > 0)
362 for (cStrLength = 0;theDstCStr[cStrLength] != 0;cStrLength++)
372 theDstCStr[cStrLength++] = 0;
379 theDstCStr[cStrLength++] = *theSrcCStr++;
387 void ConcatCharToCStr(const char theChar,char *theDstCStr,const int maxCStrLength)
392 if (theDstCStr != nil && maxCStrLength > 0)
394 cStrLength = CStrLength(theDstCStr);
398 theDstCStr[cStrLength++] = theChar;
399 theDstCStr[cStrLength++] = '\0';
702 void CopyCStrAndConcatLongIntToCStr(const char *theSrcCStr,const long theNum,char *theDstCStr,const int maxDstStrLength)
704 CopyCStrToCStr(theSrcCStr,theDstCStr,maxDstStrLength);
706 ConcatLongIntToCStr(theNum,theDstCStr,maxDstStrLength);
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)
1414 currentLength = CStrLength(theDstCStr);
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)
1467 currentLength = CStrLength(theDstCStr);
1496 BlockMove(theDstCStr + theInsertionOffset,theDstCStr + theInsertionOffset + numCharsToInsert,numCharsToShift);
1501 BlockMove(theSrcPStr + 1,theDstCStr + theInsertionOffset,numCharsToInsert);
1504 theDstCStr[theInsertionOffset + numCharsToInsert + numCharsToShift] = 0;
1558 void CopyCStrAndInsert1LongIntIntoCStr(const char *theSrcCStr,const long theNum,char *theDstCStr,const int maxDstStrLength)
1560 CopyCStrAndInsertCStrLongIntIntoCStr(theSrcCStr,nil,theNum,theDstCStr,maxDstStrLength);
1564 void CopyCStrAndInsert2LongIntsIntoCStr(const char *theSrcCStr,const long long1,const long long2,char *theDstCStr,const int maxDstStrLength)
1568 CopyCStrAndInsertCStrsLongIntsIntoCStr(theSrcCStr,nil,theLongInts,theDstCStr,maxDstStrLength);
1572 void CopyCStrAndInsert3LongIntsIntoCStr(const char *theSrcCStr,const long long1,const long long2,const long long3,char *theDstCStr,const int maxDstStrLength)
1576 CopyCStrAndInsertCStrsLongIntsIntoCStr(theSrcCStr,nil,theLongInts,theDstCStr,maxDstStrLength);
1580 void CopyCStrAndInsertCStrIntoCStr(const char *theSrcCStr,const char *theInsertCStr,char *theDstCStr,const int maxDstStrLength)
1584 CopyCStrAndInsertCStrsLongIntsIntoCStr(theSrcCStr,theCStrs,nil,theDstCStr,maxDstStrLength);
1589 void CopyCStrAndInsertCStrLongIntIntoCStr(const char *theSrcCStr,const char *theInsertCStr,const long theNum,char *theDstCStr,const int maxDstStrLength)
1594 CopyCStrAndInsertCStrsLongIntsIntoCStr(theSrcCStr,theCStrs,theLongInts,theDstCStr,maxDstStrLength);
1599 void CopyCStrAndInsertCStrsLongIntsIntoCStr(const char *theSrcCStr,const char **theInsertCStrs,const long *theLongInts,char *theDstCStr,const int maxDstStrLength)
1608 if (theDstCStr != nil && theSrcCStr != nil && theMaxDstStrLength > 0)
1626 theDstCStr[dstCharIndex++] = 0;
1635 theDstCStr[dstCharIndex++] = 0;
1651 theDstCStr[dstCharIndex] = 0;
1653 ConcatCStrToCStr(theInsertCStrs[theCStrIndex],theDstCStr,theMaxDstStrLength);
1655 dstCharIndex = CStrLength(theDstCStr);
1671 theDstCStr[dstCharIndex] = 0;
1673 ConcatLongIntToCStr(theLongInts[theLongIntIndex],theDstCStr,theMaxDstStrLength);
1677 dstCharIndex = CStrLength(theDstCStr);
1682 theDstCStr[dstCharIndex++] = theSrcCStr[srcCharIndex++];
1735 OSErr CopyIndexedWordToCStr(char *theSrcCStr,int whichWord,char *theDstCStr,int maxDstCStrLength)
1748 if (theDstCStr == nil)
1750 SetErrorMessageAndBail(("CopyIndexedWordToCStr: Bad parameter, theDstCStr == nil"));
1764 *theDstCStr = '\0';
1802 dstCharPtr = theDstCStr;
1922 OSErr CopyIndexedLineToCStr(const char *theSrcCStr,int inWhichLine,int *lineEndIndex,Boolean *gotLastLine,char *theDstCStr,const int maxDstCStrLength)
1935 if (theDstCStr == nil)
1937 SetErrorMessageAndBail(("CopyIndexedLineToCStr: Bad parameter, theDstCStr == nil"));
1957 *theDstCStr = 0;
1990 CopyCSubstrToCStr(theSrcCStr + theCurrentLineOffset,theEOSOffset,theDstCStr,maxDstCStrLength);
2007 CopyCSubstrToCStr(theSrcCStr + theCurrentLineOffset,theEOSOffset,theDstCStr,maxDstCStrLength);