NXConstStr.h
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:1k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. /* Interface for the NXConstantString class for Objective-C.
  2.    Copyright (C) 1995 Free Software Foundation, Inc.
  3.    Contributed by Pieter J. Schoenmakers <tiggr@es.ele.tue.nl>
  4. This file is part of GNU CC.
  5. GNU CC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9. GNU CC is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GNU CC; see the file COPYING.  If not, write to
  15. the Free Software Foundation, 59 Temple Place - Suite 330,
  16. Boston, MA 02111-1307, USA.  */
  17.  
  18. /* As a special exception, if you link this library with files
  19.    compiled with GCC to produce an executable, this does not cause
  20.    the resulting executable to be covered by the GNU General Public License.
  21.    This exception does not however invalidate any other reasons why
  22.    the executable file might be covered by the GNU General Public License.  */
  23. #ifndef __nxconstantstring_INCLUDE_GNU
  24. #define __nxconstantstring_INCLUDE_GNU
  25. #include "objc/Object.h"
  26. @interface NXConstantString: Object
  27. {
  28.   char *c_string;
  29.   unsigned int len;
  30. }
  31. -(const char *) cString;
  32. -(unsigned int) length;
  33. @end
  34. #endif