1 /* Copyright (C) 2001-2012 Artifex Software, Inc. 2 All Rights Reserved. 3 4 This software is provided AS-IS with no warranty, either express or 5 implied. 6 7 This software is distributed under license and may not be copied, 8 modified or distributed except as expressly authorized under the terms 9 of the license contained in the file LICENSE in this distribution. 10 11 Refer to licensing information at http://www.artifex.com or contact 12 Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, 13 CA 94903, U.S.A., +1(415)492-9861, for further information. 14 */ 15 16 17 /* Interface to Ghostscript number scanner */ 18 19 #ifndef iscannum_INCLUDED 20 # define iscannum_INCLUDED 21 22 /* 23 * Scan a number. If the number consumes the entire string, return 0; 24 * if not, set *psp to the first character beyond the number and return 1. 25 * Note that scan_number does not mark the result ref as "new". 26 */ 27 int scan_number(const byte * sp, const byte * end, int sign, ref * pref, 28 const byte ** psp, int scanner_options); 29 30 #endif /* iscannum_INCLUDED */ 31