XFA: merge patch from CL 817753002
[pdfium.git] / core / src / fxge / fx_freetype / fxft2.5.01 / src / psaux / psconv.h
1 /***************************************************************************/
2 /*                                                                         */
3 /*  psconv.h                                                               */
4 /*                                                                         */
5 /*    Some convenience conversions (specification).                        */
6 /*                                                                         */
7 /*  Copyright 2006, 2012 by                                                */
8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
9 /*                                                                         */
10 /*  This file is part of the FreeType project, and may only be used,       */
11 /*  modified, and distributed under the terms of the FreeType project      */
12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
13 /*  this file you indicate that you have read the license and              */
14 /*  understand and accept it fully.                                        */
15 /*                                                                         */
16 /***************************************************************************/
17
18
19 #ifndef __PSCONV_H__
20 #define __PSCONV_H__
21
22
23 #include "../../include/ft2build.h"
24 #include "../../include/freetype/internal/psaux.h"
25
26 FT_BEGIN_HEADER
27
28
29   FT_LOCAL( FT_Long )
30   PS_Conv_Strtol( FT_Byte**  cursor,
31                   FT_Byte*   limit,
32                   FT_Long    base );
33
34
35   FT_LOCAL( FT_Long )
36   PS_Conv_ToInt( FT_Byte**  cursor,
37                  FT_Byte*   limit );
38   FT_LOCAL( FT_Bool )
39           xyq_PS_Conv_ToInt( FT_Byte**  cursor,
40           FT_Byte*   limit, FT_Long* val );     /* XYQ 2007-10-10: we add return value indicating whether it's actually a number */
41
42   FT_LOCAL( FT_Fixed )
43   PS_Conv_ToFixed( FT_Byte**  cursor,
44                    FT_Byte*   limit,
45                    FT_Long    power_ten );
46
47 #if 0
48   FT_LOCAL( FT_UInt )
49   PS_Conv_StringDecode( FT_Byte**  cursor,
50                         FT_Byte*   limit,
51                         FT_Byte*   buffer,
52                         FT_Offset  n );
53 #endif
54
55   FT_LOCAL( FT_UInt )
56   PS_Conv_ASCIIHexDecode( FT_Byte**  cursor,
57                           FT_Byte*   limit,
58                           FT_Byte*   buffer,
59                           FT_Offset  n );
60
61   FT_LOCAL( FT_UInt )
62   PS_Conv_EexecDecode( FT_Byte**   cursor,
63                        FT_Byte*    limit,
64                        FT_Byte*    buffer,
65                        FT_Offset   n,
66                        FT_UShort*  seed );
67
68
69 FT_END_HEADER
70
71 #endif /* __PSCONV_H__ */
72
73
74 /* END */