PLStringFuncs.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:3k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       PLStringFuncs.h
  3.  
  4.      Contains:   xxx put contents here xxx
  5.  
  6.      Version:    Technology: xxx put version here xxx
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1999-2001 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __PLSTRINGFUNCS__
  18. #define __PLSTRINGFUNCS__
  19. #ifndef __MACTYPES__
  20. #include "MacTypes.h"
  21. #endif
  22. #if PRAGMA_ONCE
  23. #pragma once
  24. #endif
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #if PRAGMA_IMPORT
  29. #pragma import on
  30. #endif
  31. #if PRAGMA_STRUCT_ALIGN
  32.     #pragma options align=mac68k
  33. #elif PRAGMA_STRUCT_PACKPUSH
  34.     #pragma pack(push, 2)
  35. #elif PRAGMA_STRUCT_PACK
  36.     #pragma pack(2)
  37. #endif
  38. EXTERN_API( short )
  39. PLstrcmp                        (ConstStr255Param       str1,
  40.                                  ConstStr255Param       str2);
  41. EXTERN_API( short )
  42. PLstrncmp                       (ConstStr255Param       str1,
  43.                                  ConstStr255Param       str2,
  44.                                  short                  num);
  45. EXTERN_API( StringPtr )
  46. PLstrcpy                        (StringPtr              str1,
  47.                                  ConstStr255Param       str2);
  48. EXTERN_API( StringPtr )
  49. PLstrncpy                       (StringPtr              str1,
  50.                                  ConstStr255Param       str2,
  51.                                  short                  num);
  52. EXTERN_API( StringPtr )
  53. PLstrcat                        (StringPtr              str1,
  54.                                  ConstStr255Param       str2);
  55. EXTERN_API( StringPtr )
  56. PLstrncat                       (StringPtr              str1,
  57.                                  ConstStr255Param       str2,
  58.                                  short                  num);
  59. EXTERN_API( Ptr )
  60. PLstrchr                        (ConstStr255Param       str1,
  61.                                  short                  ch1);
  62. EXTERN_API( Ptr )
  63. PLstrrchr                       (ConstStr255Param       str1,
  64.                                  short                  ch1);
  65. EXTERN_API( Ptr )
  66. PLstrpbrk                       (ConstStr255Param       str1,
  67.                                  ConstStr255Param       str2);
  68. EXTERN_API( short )
  69. PLstrspn                        (ConstStr255Param       str1,
  70.                                  ConstStr255Param       str2);
  71. EXTERN_API( Ptr )
  72. PLstrstr                        (ConstStr255Param       str1,
  73.                                  ConstStr255Param       str2);
  74. EXTERN_API( short )
  75. PLstrlen                        (ConstStr255Param       str);
  76. EXTERN_API( short )
  77. PLpos                           (ConstStr255Param       str1,
  78.                                  ConstStr255Param       str2);
  79. #if PRAGMA_STRUCT_ALIGN
  80.     #pragma options align=reset
  81. #elif PRAGMA_STRUCT_PACKPUSH
  82.     #pragma pack(pop)
  83. #elif PRAGMA_STRUCT_PACK
  84.     #pragma pack()
  85. #endif
  86. #ifdef PRAGMA_IMPORT_OFF
  87. #pragma import off
  88. #elif PRAGMA_IMPORT
  89. #pragma import reset
  90. #endif
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* __PLSTRINGFUNCS__ */