home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Languages / python / PyObjC-0.47-MIHS / pyobjc-0.47-src / Include / OC_PythonString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-04  |  1.3 KB  |  54 lines

  1. /* Copyright (c) 1996 by Lele Gaifax.  All Rights Reserved
  2.  *
  3.  * This software may be used and distributed freely for any purpose
  4.  * provided that this notice is included unchanged on any and all
  5.  * copies. The author does not warrant or guarantee this software in
  6.  * any way.
  7.  *
  8.  * This file is part of the PyObjC package.
  9.  *
  10.  * $RCSfile: OC_PythonString.h,v $
  11.  * $Revision: 1.1.1.2 $
  12.  * $Date: 1996/10/04 20:58:57 $
  13.  *
  14.  * Created Thu Sep  5 19:46:45 1996.
  15.  */
  16.  
  17. #ifndef _OC_PythonString_H
  18. #define _OC_PythonString_H
  19.  
  20. #include "OC_PythonObject.h"
  21.  
  22. /*#C This class wraps a PyString object, making it easier to handle this
  23.   kind of objects from Objective-C.  */
  24. @interface OC_PythonString : OC_PythonObject
  25. {
  26. }
  27.  
  28. //#M Initialize the version number of this class.
  29. + (void) initialize;
  30.  
  31. /*#M Returns a new autoreleased PyString object with @var{str} of
  32.   length @var{size} as contents. */
  33. + (id <PythonObject>) fromString:(char *) str andSize:(int) size;
  34.  
  35. //#M Returns a new autoreleased PyString object with @var{str} as contents.
  36. + (id <PythonObject>) fromString:(char *) str;
  37.  
  38. //#M Returns the size of the string.
  39. - (int) size;
  40.  
  41. //#M Returns the ``C'' equivalent.
  42. - (char *) asString;
  43.  
  44. @end /* OC_PythonString class interface */
  45.  
  46.  
  47. #endif /* _OC_PythonString_H */
  48.  
  49. /*
  50. ** Local Variables:
  51. ** change-log-default-name:"../ChangeLog.PyObjC"
  52. ** End:
  53. */
  54.