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