26 #ifndef __NUMBERFORMATTING__
30 #ifndef __STRINGCOMPARE__
34 #ifndef __DATETIMEUTILS__
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
55 #elif PRAGMA_STRUCT_PACK
112 short backwdTableOff;
131 Munger(Handle h,
long offset,
const void *ptr1,
long len1,
const void *ptr2,
154 SetString(StringHandle theString, ConstStr255Param strNew);
178 #if CALL_NOT_IN_CARBON
224 BreakTablePtr breaks, OffsetTable offsets, ScriptCode script);
286 #if CALL_NOT_IN_CARBON
325 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
326 #pragma parameter LwrText(__A0, __D0)
339 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
340 #pragma parameter LowerText(__A0, __D0)
353 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
354 #pragma parameter StripText(__A0, __D0)
367 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
368 #pragma parameter UpperText(__A0, __D0)
381 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
382 #pragma parameter StripUpperText(__A0, __D0)
416 #define UprString(theString, diacSensitive) \
417 UpperString(theString, diacSensitive)
421 #if CALL_NOT_IN_CARBON
431 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
432 #pragma parameter UprText(__A0, __D0)
500 #if CALL_NOT_IN_CARBON
549 #define C2PStr(a) (StringPtr) c2pstr((Ptr)(a))
550 #define P2CStr(a) (Ptr) p2cstr(a)
552 #define CopyPascalStringToC(src, dst) p2cstrcpy(dst, src)
553 #define CopyCStringToPascal(src, dst) c2pstrcpy(dst, src)
555 #if TARGET_OS_MAC && TARGET_API_MAC_CARBON && OLDP2C
558 #define p2cstr(aStr) (p2cstrcpy((char *)aStr, aStr), (char *)aStr)
559 #define c2pstr(aStr) (c2pstrcpy((StringPtr)aStr, aStr), (StringPtr)aStr)
561 #define C2PStr(a) (StringPtr) c2pstr((Ptr)(a))
562 #define P2CStr(a) (Ptr) p2cstr(a)
565 #if PRAGMA_STRUCT_ALIGN
566 #pragma options align = reset
567 #elif PRAGMA_STRUCT_PACKPUSH
569 #elif PRAGMA_STRUCT_PACK
573 #ifdef PRAGMA_IMPORT_OFF
586 #define C2PStr(a) (StringPtr) c2pstr((Ptr)(a))
587 #define P2CStr(a) (Ptr) p2cstr(a)
590 #if PRAGMA_STRUCT_ALIGN
591 #pragma options align = reset
592 #elif PRAGMA_STRUCT_PACKPUSH
594 #elif PRAGMA_STRUCT_PACK
598 #ifdef PRAGMA_IMPORT_OFF
International Date and Time Interfaces (previously in TextUtils)
Basic Macintosh data types.
unsigned char * StringPtr
Definition: MacTypes.h:477
unsigned char Boolean
Definition: MacTypes.h:318
Public interfaces for String Comparison and related operations.
StringHandle newstring(const char *theString)
ScriptRunStatus FindScriptRun(Ptr textPtr, long textLen, long *lenUsed)
void UppercaseStripDiacritics(Ptr textPtr, short len, ScriptCode script)
void LowercaseText(Ptr textPtr, short len, ScriptCode script)
void setstring(StringHandle theString, const char *strNew)
void CopyPascalStringToC(ConstStr255Param src, char *dst)
void UpperString(Str255 theString, Boolean diacSensitive)
void UpperText(Ptr textPtr, short len)
void p2cstrcpy(char *dst, ConstStr255Param src)
char * p2cstr(StringPtr aStr)
long Munger(Handle h, long offset, const void *ptr1, long len1, const void *ptr2, long len2)
void LowerText(Ptr textPtr, short len)
StringPtr c2pstr(char *aStr)
void GetIndString(Str255 theString, short strListID, short index)
void c2pstrcpy(Str255 dst, const char *src)
#define C2PStr(a)
Definition: TextUtils.h:549
StringHandle GetString(short stringID)
void getindstring(char *theString, short strListID, short index)
void CopyCStringToPascal(const char *src, Str255 dst)
StringHandle NewString(ConstStr255Param theString)
void LwrText(Ptr textPtr, short len)
void UprText(Ptr textPtr, short len)
Provide non-localizable uppercasing.
void StripUpperText(Ptr textPtr, short len)
void SetString(StringHandle theString, ConstStr255Param strNew)
void upperstring(char *theString, Boolean diacSensitive)
void NFindWord(Ptr textPtr, short textLength, short offset, Boolean leadingEdge, NBreakTablePtr nbreaks, OffsetTable offsets)
void FindWordBreaks(Ptr textPtr, short textLength, short offset, Boolean leadingEdge, BreakTablePtr breaks, OffsetTable offsets, ScriptCode script)
void UppercaseText(Ptr textPtr, short len, ScriptCode script)
void FindWord(Ptr textPtr, short textLength, short offset, Boolean leadingEdge, BreakTablePtr breaks, OffsetTable offsets)
void StripDiacritics(Ptr textPtr, short len, ScriptCode script)
Ptr P2CStr(StringPtr pString)
void StripText(Ptr textPtr, short len)
Definition: TextUtils.h:98
Definition: TextUtils.h:106
char charTypes[256]
Definition: TextUtils.h:116
Definition: TextUtils.h:92