Back to index

lightning-sunbird  0.9+nobinonly
Functions
unicpriv.h File Reference
#include "ubase.h"
#include "umap.h"
#include "uconvutil.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void uFillInfo (const uTable *uT, PRUint32 *info)
PRBool uMapCode (const uTable *uT, PRUint16 in, PRUint16 *out)
PRBool uGenerate (uShiftTable *shift, PRInt32 *state, PRUint16 in, unsigned char *out, PRUint32 outbuflen, PRUint32 *outlen)
PRBool uScan (uShiftTable *shift, PRInt32 *state, unsigned char *in, PRUint16 *out, PRUint32 inbuflen, PRUint32 *inscanlen)

Function Documentation

void uFillInfo ( const uTable uT,
PRUint32 info 
)

Definition at line 100 of file umap.c.

{
  PRUint16 itemOfList = uT->itemOfList;
  PRUint16 i;
  for(i=0;i<itemOfList;i++)
  {
    const uMapCell* uCell;
    PRInt8 format = uGetFormat(uT,i);
    uCell = uGetMapCell(uT,i);
    uFillInfoCell(format, uT, uCell, aInfo);
  }
}

Here is the caller graph for this function:

PRBool uGenerate ( uShiftTable shift,
PRInt32 state,
PRUint16  in,
unsigned char *  out,
PRUint32  outbuflen,
PRUint32 outlen 
)

Definition at line 300 of file ugen.c.

{
    return (* m_generator[shift->classID]) (shift,state,in,out,outbuflen,outlen);
}

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool uMapCode ( const uTable uT,
PRUint16  in,
PRUint16 out 
)

Definition at line 115 of file umap.c.

{
  PRBool done = PR_FALSE;
  PRUint16 itemOfList = uT->itemOfList;
  PRUint16 i;
  *out = NOMAPPING;
  for(i=0;i<itemOfList;i++)
  {
    const uMapCell* uCell;
    PRInt8 format = uGetFormat(uT,i);
    uCell = uGetMapCell(uT,i);
    if(uHit(format, in, uCell))
    {
      *out = uMap(format, in, uT,uCell);
      done = PR_TRUE;
      break;
    }
  }
  return ( done && (*out != NOMAPPING));
}

Here is the call graph for this function:

Here is the caller graph for this function:

MODULE_PRIVATE PRBool uScan ( uShiftTable shift,
PRInt32 state,
unsigned char *  in,
PRUint16 out,
PRUint32  inbuflen,
PRUint32 inscanlen 
)

Definition at line 300 of file uscan.c.

{
  return (* m_scanner[shift->classID]) (shift,state,in,out,inbuflen,inscanlen);
}

Here is the call graph for this function:

Here is the caller graph for this function: