7 void CopyPStrToCStr(
const unsigned char *thePStr,
char *theCStr,
const int maxCStrLength);
8 void CopyPStrToPStr(
const unsigned char *theSrcPStr,
unsigned char *theDstPStr,
const int maxDstStrLength);
9 void CopyCStrToCStr(
const char *theSrcCStr,
char *theDstCStr,
const int maxDstStrLength);
10 void CopyCStrToPStr(
const char *theSrcCStr,
unsigned char *theDstPStr,
const int maxDstStrLength);
11 void ConcatPStrToCStr(
const unsigned char *thePStr,
char *theCStr,
const int maxCStrLength);
12 void ConcatPStrToPStr(
const unsigned char *theSrcPStr,
unsigned char *theDstPStr,
const int maxDstStrLength);
13 void ConcatCStrToPStr(
const char *theSrcCStr,
unsigned char *theDstPStr,
const int maxDstStrLength);
14 void ConcatCStrToCStr(
const char *theSrcCStr,
char *theDstCStr,
const int maxCStrLength);
16 void ConcatCharToCStr(
const char theChar,
char *theDstCStr,
const int maxCStrLength);
17 void ConcatCharToPStr(
const char theChar,
unsigned char *theDstPStr,
const int maxPStrLength);
19 int ComparePStrs(
const unsigned char *theFirstPStr,
const unsigned char *theSecondPStr,
const Boolean ignoreCase =
true);
20 int CompareCStrs(
const char *theFirstCStr,
const char *theSecondCStr,
const Boolean ignoreCase =
true);
21 int CompareCStrToPStr(
const char *theCStr,
const unsigned char *thePStr,
const Boolean ignoreCase =
true);
23 Boolean
CStrsAreEqual(
const char *theFirstCStr,
const char *theSecondCStr,
const Boolean ignoreCase =
true);
24 Boolean
PStrsAreEqual(
const unsigned char *theFirstCStr,
const unsigned char *theSecondCStr,
const Boolean ignoreCase =
true);
26 void CopyLongIntToCStr(
const long theNum,
char *theCStr,
const int maxCStrLength,
const int numDigits = -1);
28 void ConcatLongIntToCStr(
const long theNum,
char *theCStr,
const int maxCStrLength,
const int numDigits = -1);
31 void CopyLongIntToPStr(
const long theNum,
unsigned char *thePStr,
const int maxPStrLength,
const int numDigits = -1);
32 void ConcatLongIntToPStr(
const long theNum,
unsigned char *thePStr,
const int maxPStrLength,
const int numDigits = -1);
35 long PStrLength(
const unsigned char *thePString);
44 OSErr
AppendCStrToHandle(
const char *theCString,Handle theHandle,
long *currentLength = nil,
long *maxLength = nil);
45 OSErr
AppendCharsToHandle(
const char *theChars,
const int numChars,Handle theHandle,
long *currentLength = nil,
long *maxLength = nil);
46 OSErr
AppendPStrToHandle(
const unsigned char *thePString,Handle theHandle,
long *currentLength = nil);
49 void ZeroMem(
void *theMemPtr,
const unsigned long numBytes);
52 long FindCharOffsetInCStr(
const char theChar,
const char *theCString,
const Boolean inIgnoreCase =
false);
53 long FindCStrOffsetInCStr(
const char *theCSubstring,
const char *theCString,
const Boolean inIgnoreCase =
false);
55 void CopyCSubstrToCStr(
const char *theSrcCStr,
const int maxCharsToCopy,
char *theDstCStr,
const int maxDstStrLength);
56 void CopyCSubstrToPStr(
const char *theSrcCStr,
const int maxCharsToCopy,
unsigned char *theDstPStr,
const int maxDstStrLength);
58 void InsertCStrIntoCStr(
const char *theSrcCStr,
const int theInsertionOffset,
char *theDstCStr,
const int maxDstStrLength);
59 void InsertPStrIntoCStr(
const unsigned char *theSrcPStr,
const int theInsertionOffset,
char *theDstCStr,
const int maxDstStrLength);
77 OSErr
CopyIndexedLineToCStr(
const char *theSrcCStr,
int inWhichLine,
int *lineEndIndex,Boolean *gotLastLine,
char *theDstCStr,
const int maxDstCStrLength);
80 OSErr
ExtractIntFromCStr(
const char *theSrcCStr,
int *outInt,Boolean skipLeadingSpaces =
true);
81 OSErr
ExtractIntFromPStr(
const unsigned char *theSrcPStr,
int *outInt,Boolean skipLeadingSpaces =
true);
90 OSErr
CountDigits(
const char *inCStr,
int *outNumIntegerDigits,
int *outNumFractDigits);
92 void ExtractCStrItemFromCStr(
const char *inSrcCStr,
const char inItemDelimiter,
const int inItemNumber,Boolean *foundItem,
char *outDstCharPtr,
const int inDstCharPtrMaxLength,
const Boolean inTreatMultipleDelimsAsSingleDelim =
false);
93 OSErr
ExtractCStrItemFromCStrIntoNewHandle(
const char *inSrcCStr,
const char inItemDelimiter,
const int inItemNumber,Boolean *foundItem,Handle *outNewHandle,
const Boolean inTreatMultipleDelimsAsSingleDelim =
false);
97 OSErr
CopyFloatToCStr(
const extended80 *theFloat,
char *theCStr,
const int maxCStrLength,
const int inMaxNumIntDigits = -1,
const int inMaxNumFractDigits = -1);
99 void SkipWhiteSpace(
char **ioSrcCharPtr,
const Boolean inStopAtEOL =
false);