Back to index

tetex-bin  3.0
Classes | Defines | Functions
CharCodeToUnicode.cc File Reference
#include <aconf.h>
#include <stdio.h>
#include <string.h>
#include "gmem.h"
#include "gfile.h"
#include "GString.h"
#include "Error.h"
#include "GlobalParams.h"
#include "PSTokenizer.h"
#include "CharCodeToUnicode.h"

Go to the source code of this file.

Classes

struct  CharCodeToUnicodeString

Defines

#define maxUnicodeString   8

Functions

static int getCharFromString (void *data)
static int getCharFromFile (void *data)

Class Documentation

struct CharCodeToUnicodeString

Definition at line 29 of file CharCodeToUnicode.cc.

Class Members
CharCode c
int len
Unicode u

Define Documentation

#define maxUnicodeString   8

Definition at line 27 of file CharCodeToUnicode.cc.


Function Documentation

static int getCharFromFile ( void data) [static]

Definition at line 51 of file CharCodeToUnicode.cc.

                                       {
  return fgetc((FILE *)data);
}

Here is the caller graph for this function:

static int getCharFromString ( void data) [static]

Definition at line 37 of file CharCodeToUnicode.cc.

                                         {
  char *p;
  int c;

  p = *(char **)data;
  if (*p) {
    c = *p++;
    *(char **)data = p;
  } else {
    c = EOF;
  }
  return c;
}

Here is the caller graph for this function: