Lines Matching defs:theCString
847 OSErr CopyCStrToExistingHandle(const char *theCString,Handle theHandle)
853 if (theCString == nil)
855 SetErrorMessageAndBail(("CopyCStrToExistingHandle: Bad parameter, theCString == nil"));
870 stringLength = CStrLength(theCString) + 1;
880 ::BlockMove(theCString,*theHandle,stringLength);
892 OSErr CopyCStrToNewHandle(const char *theCString,Handle *theHandle)
898 if (theCString == nil)
900 SetErrorMessageAndBail(("CopyCStrToNewHandle: Bad parameter, theCString == nil"));
910 stringLength = CStrLength(theCString) + 1;
920 ::BlockMove(theCString,**theHandle,stringLength);
990 OSErr AppendCStrToHandle(const char *theCString,Handle theHandle,long *currentLength,long *maxLength)
996 if (theCString == nil)
998 SetErrorMessageAndBail(("AppendCStrToHandle: Bad parameter, theCString == nil"));
1029 stringLength = CStrLength(theCString);
1056 BlockMove(theCString,*theHandle + handleCurrentLength,stringLength + 1);
1175 long CStrLength(const char *theCString)
1180 if (theCString != nil)
1182 for (cStrLength = 0;theCString[cStrLength] != 0;cStrLength++)
1261 char *FindCharInCStr(const char theChar,const char *theCString)
1266 theStringSearchPtr = (char *) theCString;
1286 long FindCharOffsetInCStr(const char theChar,const char *theCString,const Boolean inIgnoreCase)
1291 if (theCString != nil)
1306 while (*theCString != 0)
1308 char currentChar = *theCString;
1320 theCString++;
1327 while (*theCString != 0 && *theCString != theChar)
1329 theCString++;
1334 if (*theCString == 0)
1344 long FindCStrOffsetInCStr(const char *theCSubstring,const char *theCString,const Boolean inIgnoreCase)
1349 if (theCSubstring != nil && theCString != nil)
1353 if (theCString[theOffset] == 0)
1361 for (const char *tempSubstringPtr = theCSubstring,*tempCStringPtr = theCString + theOffset;;tempSubstringPtr++,tempCStringPtr++)
1510 OSErr InsertCStrIntoHandle(const char *theCString,Handle theHandle,const long inInsertOffset)
1517 SetErrorMessageAndBailIfNil(theCString,"InsertCStrIntoHandle: Bad parameter, theCString == nil");
1533 insertLength = CStrLength(theCString);
1544 ::BlockMove(theCString,*theHandle + inInsertOffset,insertLength);