#include <ft2build.h>
Go to the source code of this file.
|
FT_BEGIN_HEADER | PS_Conv_Strtol (FT_Byte **cursor, FT_Byte *limit, FT_Long base) |
|
| PS_Conv_ToInt (FT_Byte **cursor, FT_Byte *limit) |
|
| PS_Conv_ToFixed (FT_Byte **cursor, FT_Byte *limit, FT_Long power_ten) |
|
| PS_Conv_ASCIIHexDecode (FT_Byte **cursor, FT_Byte *limit, FT_Byte *buffer, FT_Offset n) |
|
| PS_Conv_EexecDecode (FT_Byte **cursor, FT_Byte *limit, FT_Byte *buffer, FT_Offset n, FT_UShort *seed) |
|
◆ PS_Conv_ASCIIHexDecode()
Definition at line 465 of file psconv.c.
521 for (
r = 0;
r <
n;
r++ )
532 c = ft_char_table[*
p & 0x7F];
534 if ( (
unsigned)
c >= 16 )
550 return (
r + 1 ) / 2;
GLubyte GLubyte GLubyte GLubyte w
GLdouble GLdouble GLdouble r
Referenced by ps_parser_to_bytes().
◆ PS_Conv_EexecDecode()
Definition at line 558 of file psconv.c.
579 for (
r = 0;
r <
n;
r++ )
585 s = ( (
val +
s)*52845
U + 22719 ) & 0xFFFF
U;
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
Referenced by t1_decrypt().
◆ PS_Conv_Strtol()
Definition at line 84 of file psconv.c.
107 if ( *
p ==
'-' || *
p ==
'+' )
116 if ( *
p ==
'-' || *
p ==
'+' )
120 num_limit = 0x7FFFFFFF
L /
base;
131 c = ft_char_table[*
p & 0x7F];
static size_t double int int int * sign
FT_BEGIN_HEADER typedef unsigned char FT_Bool
#define FT_TRACE4(varformat)
Referenced by PS_Conv_ToInt().
◆ PS_Conv_ToFixed()
Definition at line 196 of file psconv.c.
215 if ( *
p ==
'-' || *
p ==
'+' )
224 if ( *
p ==
'-' || *
p ==
'+' )
237 if ( integral > 0x7FFF )
240 integral = (
FT_Fixed)( (FT_UInt32)integral << 16 );
256 c = ft_char_table[*
p & 0x7F];
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 = 0x7FFFFFFF
L;
static size_t double int int int * sign
FT_DivFix(FT_Long a, FT_Long b)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
#define FT_TRACE4(varformat)
PS_Conv_ToInt(FT_Byte **cursor, FT_Byte *limit)
Referenced by afm_parser_read_vals(), ps_parser_load_field(), ps_parser_to_fixed(), ps_tocoordarray(), and ps_tofixedarray().
◆ PS_Conv_ToInt()