iscannum.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: iscannum.h,v 1.6 2002/06/16 04:47:10 lpd Exp $ */
  14. /* Interface to Ghostscript number scanner */
  15. #ifndef iscannum_INCLUDED
  16. # define iscannum_INCLUDED
  17. /*
  18. * Scan a number. If the number consumes the entire string, return 0;
  19. * if not, set *psp to the first character beyond the number and return 1.
  20. * Note that scan_number does not mark the result ref as "new".
  21. */
  22. int scan_number(const byte * sp, const byte * end, int sign, ref * pref,
  23. const byte ** psp, const bool PDFScanRules);
  24. #endif /* iscannum_INCLUDED */