Eneboo - Documentación para desarrolladores
Clases | 'typedefs' | Funciones | Variables
Referencia del Archivo src/libdigidoc/DigiDocConvert.c
#include <libdigidoc/DigiDocDebug.h>
#include <libdigidoc/DigiDocConvert.h>
#include <libdigidoc/DigiDocError.h>
#include <libdigidoc/DigiDocMem.h>
#include <libxml/globals.h>
#include <libxml/xmlerror.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
#include <libxml/debugXML.h>
#include <libxml/xmlmemory.h>
#include <libxml/c14n.h>
#include <ctype.h>
#include <memory.h>

Clases

struct  u2w
struct  xmlsym_st

'typedefs'

typedef struct xmlsym_st xmlsym

Funciones

EXP_OPTION char * ascii2utf8 (const char *ascii, char *utf8out, int *outlen)
EXP_OPTION char * utf82ascii (const char *utf8in, char *asciiout, int *outlen)
int hex2char (char c)
int isUmlaut (unsigned char c)
int hasUmlauts (const char *str)
int uni2char (long c)
int uni2utf8 (long c, int utfidx)
EXP_OPTION void unicode2ascii (const char *uni, char *dest)
int findEscape (const char *src, char *sym)
char * escape2xmlsym (const char *src)
byte h2b (char h)
EXP_OPTION void hex2bin (const char *hex, byte *bin, int *len)
void b2h (byte b, char *dest)
EXP_OPTION void bin2hex (const byte *bin, int blen, char *hex, int *len)
EXP_OPTION void convFNameToWin (const char *src, char *dest, int len)
EXP_OPTION void convWinToFName (const char *src, char *dest, int len)
EXP_OPTION int ddocConvertInput (const char *src, char **dest)
EXP_OPTION void freeLibMem (void *p)
int ddocConvertFileName (char *dest, int destlen, const char *src)
EXP_OPTION void encode (const byte *raw, int rawlen, byte *buf, int *buflen)
bytebreakToLinesOf64 (byte *raw, int rawlen)
EXP_OPTION void decode (const byte *raw, int rawlen, byte *buf, int *buflen)
int isb64char (int c)
EXP_OPTION int ddocDecodeBase64 (DigiDocMemBuf *pMBufSrc, DigiDocMemBuf *pMBufDest)
EXP_OPTION int ddocDecodeBase64Data (void *data, long len, DigiDocMemBuf *pMBufDest)
EXP_OPTION int ddocEncodeBase64 (const DigiDocMemBuf *pMBufSrc, DigiDocMemBuf *pMBufDest)
int decodeGeneralizedTime (ASN1_GENERALIZEDTIME *tm, int *y, int *M, int *d, int *h, int *m, int *s)
int decodeUTCTime (ASN1_UTCTIME *tm, int *y, int *M, int *d, int *h, int *m, int *s)
int asn1time2time_t (ASN1_TIME *tm, time_t *pT)
int asn1time2time_t_local (ASN1_TIME *tm, time_t *pT)
int asn1time2strYear (const SignedDoc *pSigDoc, ASN1_TIME *tm, char *buf, int year, int len)
int asn1time2str (const SignedDoc *pSigDoc, ASN1_TIME *tm, char *buf, int len)
int str2asn1time (const SignedDoc *pSigDoc, const char *str, ASN1_GENERALIZEDTIME *asn1tm)
EXP_OPTION int time_t2str (time_t t, char *szTimestamp, int len)

Variables

struct u2w uni2cp1252 []
int g_xmlsyms = 5
xmlsym g_xmlsym []
char g_hexChars [] = "0123456789ABCDEF"

Documentación de los 'typedefs'

typedef struct xmlsym_st xmlsym

Documentación de las funciones

EXP_OPTION char* ascii2utf8 ( const char *  ascii,
char *  utf8out,
int outlen 
)
int asn1time2str ( const SignedDoc pSigDoc,
ASN1_TIME tm,
char *  buf,
int  len 
)
int asn1time2strYear ( const SignedDoc pSigDoc,
ASN1_TIME tm,
char *  buf,
int  year,
int  len 
)
int asn1time2time_t ( ASN1_TIME tm,
time_t *  pT 
)
int asn1time2time_t_local ( ASN1_TIME tm,
time_t *  pT 
)
void b2h ( byte  b,
char *  dest 
)
EXP_OPTION void bin2hex ( const byte bin,
int  blen,
char *  hex,
int len 
)
byte* breakToLinesOf64 ( byte raw,
int  rawlen 
)
EXP_OPTION void convFNameToWin ( const char *  src,
char *  dest,
int  len 
)
EXP_OPTION void convWinToFName ( const char *  src,
char *  dest,
int  len 
)
int ddocConvertFileName ( char *  dest,
int  destlen,
const char *  src 
)
EXP_OPTION int ddocConvertInput ( const char *  src,
char **  dest 
)
EXP_OPTION int ddocDecodeBase64 ( DigiDocMemBuf pMBufSrc,
DigiDocMemBuf pMBufDest 
)
EXP_OPTION int ddocDecodeBase64Data ( void *  data,
long  len,
DigiDocMemBuf pMBufDest 
)
EXP_OPTION int ddocEncodeBase64 ( const DigiDocMemBuf pMBufSrc,
DigiDocMemBuf pMBufDest 
)
EXP_OPTION void decode ( const byte raw,
int  rawlen,
byte buf,
int buflen 
)
int decodeGeneralizedTime ( ASN1_GENERALIZEDTIME tm,
int y,
int M,
int d,
int h,
int m,
int s 
)
int decodeUTCTime ( ASN1_UTCTIME tm,
int y,
int M,
int d,
int h,
int m,
int s 
)
EXP_OPTION void encode ( const byte raw,
int  rawlen,
byte buf,
int buflen 
)
char* escape2xmlsym ( const char *  src)
int findEscape ( const char *  src,
char *  sym 
)
EXP_OPTION void freeLibMem ( void *  p)
byte h2b ( char  h)
int hasUmlauts ( const char *  str)
EXP_OPTION void hex2bin ( const char *  hex,
byte bin,
int len 
)
int hex2char ( char  c)
int isb64char ( int  c)
int isUmlaut ( unsigned char  c)
int str2asn1time ( const SignedDoc pSigDoc,
const char *  str,
ASN1_GENERALIZEDTIME asn1tm 
)
EXP_OPTION int time_t2str ( time_t  t,
char *  szTimestamp,
int  len 
)
int uni2char ( long  c)
int uni2utf8 ( long  c,
int  utfidx 
)
EXP_OPTION void unicode2ascii ( const char *  uni,
char *  dest 
)
EXP_OPTION char* utf82ascii ( const char *  utf8in,
char *  asciiout,
int outlen 
)

Documentación de las variables

char g_hexChars[] = "0123456789ABCDEF"
Valor inicial:
 {
  { '\n',  "&#xA;" },
  { '\r',  "&#xD;" },
  { '<',  "&lt;" },
  { '>',  "&gt;" },
  { '&',  "&amp;" }   
}
struct u2w uni2cp1252[]
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'