20#include FT_INTERNAL_POSTSCRIPT_AUX_H
21#include FT_INTERNAL_DEBUG_H
34#define FT_COMPONENT trace_psconv
46 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
47 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
48 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
49 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1,
50 -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
51 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1,
52 -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
53 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1,
67 -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1,
68 -1, 19, 20, 21, 22, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1,
69 -1, -1, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, -1,
70 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
71 -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1,
72 -1, 19, 20, 21, 22, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1,
73 -1, -1, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, -1,
74 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1,
101 if ( base < 2 || base > 36 )
107 if ( *
p ==
'-' || *
p ==
'+' )
116 if ( *
p ==
'-' || *
p ==
'+' )
120 num_limit = 0x7FFFFFFFL /
base;
133 if ( c < 0 || c >=
base )
215 if ( *
p ==
'-' || *
p ==
'+' )
224 if ( *
p ==
'-' || *
p ==
'+' )
237 if ( integral > 0x7FFF )
240 integral = (
FT_Fixed)( (FT_UInt32)integral << 16 );
258 if ( c < 0 || c >= 10 )
262 if ( divider < 0xCCCCCCCL && decimal < 0xCCCCCCCL )
264 decimal = decimal * 10 +
c;
266 if ( !integral && power_ten > 0 )
275 if (
p + 1 <
limit && ( *
p ==
'e' || *
p ==
'E' ) )
289 if ( exponent > 1000 )
291 else if ( exponent < -1000 )
294 power_ten += exponent;
299 if ( !integral && !decimal )
304 if ( have_underflow )
307 while ( power_ten > 0 )
309 if ( integral >= 0xCCCCCCCL )
313 if ( decimal >= 0xCCCCCCCL )
325 while ( power_ten < 0 )
328 if ( divider < 0xCCCCCCCL )
333 if ( !integral && !decimal )
349 integral = -integral;
358 integral = 0x7FFFFFFFL;
431 b =
b * 8 + *
p -
'0';
436 b =
b * 8 + *
p -
'0';
504 pad = ( pad << 4 ) |
c;
521 for (
r = 0;
r <
n;
r++ )
534 if ( (
unsigned)
c >= 16 )
550 return (
r + 1 ) / 2;
579 for (
r = 0;
r <
n;
r++ )
585 s = ( (
val +
s)*52845U + 22719 ) & 0xFFFFU;
FT_DivFix(FT_Long a, FT_Long b)
#define FT_TRACE4(varformat)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLubyte GLubyte GLubyte GLubyte w
PS_Conv_ToInt(FT_Byte **cursor, FT_Byte *limit)
PS_Conv_Strtol(FT_Byte **cursor, FT_Byte *limit, FT_Long base)
PS_Conv_ToFixed(FT_Byte **cursor, FT_Byte *limit, FT_Long power_ten)
static const FT_Char ft_char_table[128]
PS_Conv_EexecDecode(FT_Byte **cursor, FT_Byte *limit, FT_Byte *buffer, FT_Offset n, FT_UShort *seed)
PS_Conv_ASCIIHexDecode(FT_Byte **cursor, FT_Byte *limit, FT_Byte *buffer, FT_Offset n)