1 /***************************************************************************/
   2 /*                                                                         */
   3 /*  psconv.h                                                               */
   4 /*                                                                         */
   5 /*    Some convenience conversions (specification).                        */
   6 /*                                                                         */
   7 /*  Copyright 2006-2018 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 <ft2build.h>
  24 #include FT_INTERNAL_POSTSCRIPT_AUX_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 
  39   FT_LOCAL( FT_Fixed )
  40   PS_Conv_ToFixed( FT_Byte**  cursor,
  41                    FT_Byte*   limit,
  42                    FT_Long    power_ten );
  43 
  44 #if 0
  45   FT_LOCAL( FT_UInt )
  46   PS_Conv_StringDecode( FT_Byte**  cursor,
  47                         FT_Byte*   limit,
  48                         FT_Byte*   buffer,
  49                         FT_Offset  n );
  50 #endif
  51 
  52   FT_LOCAL( FT_UInt )
  53   PS_Conv_ASCIIHexDecode( FT_Byte**  cursor,
  54                           FT_Byte*   limit,
  55                           FT_Byte*   buffer,
  56                           FT_Offset  n );
  57 
  58   FT_LOCAL( FT_UInt )
  59   PS_Conv_EexecDecode( FT_Byte**   cursor,
  60                        FT_Byte*    limit,
  61                        FT_Byte*    buffer,
  62                        FT_Offset   n,
  63                        FT_UShort*  seed );
  64 
  65 
  66 FT_END_HEADER
  67 
  68 #endif /* PSCONV_H_ */
  69 
  70 
  71 /* END */