w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dvipsencoding.cc File Reference
#include "dvipsencoding.hh"
#include "metrics.hh"
#include "secondary.hh"
#include <lcdf/error.hh>
#include <lcdf/straccum.hh>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <algorithm>
#include "util.hh"
Include dependency graph for dvipsencoding.cc:

Go to the source code of this file.

Macros

#define NEXT_GLYPH_NAME(gn)   ("/" + (gn))
 

Enumerations

enum  { GLYPHLIST_ALTERNATIVE = 0x40000000 , GLYPHLIST_USEMAP = GLYPHLIST_ALTERNATIVE , U_EMPTYSLOT = 0xD801 , U_ALTSELECTOR = 0xD802 }
 

Functions

static void unicode_add_suffix (Vector< uint32_t > &prefix, int prefix_starting_from, const Vector< uint32_t > &suffix)
 
static String tokenize (const String &s, int &pos_in, int &line)
 
static String comment_tokenize (const String &s, int &pos_in, int &line)
 
static bool retokenize_isword (char c)
 
static int find_ligkern_op (const String &s)
 
bool operator== (const DvipsEncoding::Ligature &l1, const DvipsEncoding::Ligature &l2)
 
static String trim_space (const String &s, int pos)
 
static Efont::OpenType::Glyph map_uni (uint32_t uni, const Efont::OpenType::Cmap &cmap, const Metrics &m)
 

Variables

static HashMap< String, uint32_tglyphlist ((uint32_t) -1)
 
static Vector< uint32_tglyphmap
 
static PermString::Initializer perm_initializer
 
struct {
   const char *   s
 
   int   v
 
ligkern_ops []
 

Macro Definition Documentation

◆ NEXT_GLYPH_NAME

#define NEXT_GLYPH_NAME (   gn)    ("/" + (gn))

Definition at line 38 of file dvipsencoding.cc.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GLYPHLIST_ALTERNATIVE 
GLYPHLIST_USEMAP 
U_EMPTYSLOT 
U_ALTSELECTOR 

Definition at line 29 of file dvipsencoding.cc.

Function Documentation

◆ comment_tokenize()

static String comment_tokenize ( const String s,
int pos_in,
int line 
)
static

Definition at line 282 of file dvipsencoding.cc.

References data, first, len, nest, pos, and s.

Referenced by DvipsEncoding::parse().

◆ find_ligkern_op()

static int find_ligkern_op ( const String s)
static

Definition at line 352 of file dvipsencoding.cc.

References i, ligkern_ops, and s.

Referenced by DvipsEncoding::parse_ligkern_words().

◆ map_uni()

static Efont::OpenType::Glyph map_uni ( uint32_t  uni,
const Efont::OpenType::Cmap cmap,
const Metrics m 
)
inlinestatic

Definition at line 745 of file dvipsencoding.cc.

References cmap, m, and U_EMPTYSLOT.

Referenced by DvipsEncoding::make_metrics().

◆ operator==()

Definition at line 361 of file dvipsencoding.cc.

◆ retokenize_isword()

static bool retokenize_isword ( char  c)
static

Definition at line 329 of file dvipsencoding.cc.

References c.

Referenced by DvipsEncoding::parse_word_group().

◆ tokenize()

static String tokenize ( const String s,
int pos_in,
int line 
)
static

Definition at line 226 of file dvipsencoding.cc.

References data, first, isspace, len, nest, pos, and s.

Referenced by DvipsEncoding::parse().

◆ trim_space()

static String trim_space ( const String s,
int  pos 
)
static

Definition at line 598 of file dvipsencoding.cc.

References isspace, pos, s, and cordic::x.

Referenced by DvipsEncoding::parse().

◆ unicode_add_suffix()

static void unicode_add_suffix ( Vector< uint32_t > &  prefix,
int  prefix_starting_from,
const Vector< uint32_t > &  suffix 
)
static

Definition at line 108 of file dvipsencoding.cc.

References GLYPHLIST_ALTERNATIVE, i, and suffix.

Referenced by DvipsEncoding::glyphname_unicode().

Variable Documentation

◆ glyphlist

◆ glyphmap

Vector<uint32_t> glyphmap
static

◆ 

◆ perm_initializer

PermString::Initializer perm_initializer
static

Definition at line 35 of file dvipsencoding.cc.

◆ s

◆ v