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)  

analyze.c File Reference
#include <stdio.h>
#include <ctype.h>
#include "plain2.h"
#include "picture.h"
#include "kanji.h"
Include dependency graph for analyze.c:

Go to the source code of this file.

Macros

#define skipSpaces()   while (*str == ' ') {str++;len++;}
 

Functions

struct strValkstrMatch (char *str, struct strVal *kpat)
 
 checkIfNumber (char *str, int *rval)
 
 checkIfRoman (char *str, int *rval, int *typep)
 
 checkIfAppendix (char *str, int *nump)
 
 checkIfSecNumber (char *str, int *dots)
 
 checkIfNumStr (char *str, int *lnump)
 
 checkIfZenkakuAlpha (char *str, int *lnump, int *typep)
 
 checkIfAlpha (char *str, int *lnump, int *typep)
 
 checkIfEnumList (char *str, struct text *textp)
 
 checkIfDscrList (char *str)
 
 lineAtrListSec (struct text *textp)
 
 lineAtrDlist (struct text *textp)
 
 byteRegister (reg, struct strVal *kpat)
 
 analyzeLines (int begin, int end)
 

Variables

static char rcsid []
 
struct strVal appendixPat []
 
struct strVal zenkakuAlpUp []
 
struct strVal zenkakuAlpLow []
 
struct strVal bullet []
 
struct strVal dash []
 
struct strVal listSpecial []
 
struct strVal zenkakuNum []
 
struct strVal lroman []
 
struct strVal sroman []
 
struct strVal lparenpat []
 
struct strVal rparenpat []
 
struct strVal rbracketpat []
 
struct strVal kdot []
 

Macro Definition Documentation

◆ skipSpaces

#define skipSpaces (   void)    while (*str == ' ') {str++;len++;}

Function Documentation

◆ analyzeLines()

◆ byteRegister()

byteRegister ( reg  ,
struct strVal kpat 
)

Definition at line 584 of file analyze.c.

References strVal::pattern, and reg.

Referenced by analyzeLines().

◆ checkIfAlpha()

checkIfAlpha ( char *  str,
int lnump,
int typep 
)

Definition at line 361 of file analyze.c.

References alphaVal, islower, isupper, L_LALPHA, L_SALPHA, str, and tolower.

Referenced by checkIfAppendix(), and checkIfEnumList().

◆ checkIfAppendix()

checkIfAppendix ( char *  str,
int nump 
)

◆ checkIfDscrList()

checkIfDscrList ( char *  str)

Definition at line 456 of file analyze.c.

References index, and str.

Referenced by lineAtrDlist().

◆ checkIfEnumList()

◆ checkIfNumber()

checkIfNumber ( char *  str,
int rval 
)

Definition at line 189 of file analyze.c.

References index, kstrMatch(), str, strVal::value, and zenkakuNum.

Referenced by checkIfNumStr(), and checkIfSecNumber().

◆ checkIfNumStr()

checkIfNumStr ( char *  str,
int lnump 
)

Definition at line 317 of file analyze.c.

References checkIfNumber(), len, num, and str.

Referenced by checkIfAppendix(), and checkIfEnumList().

◆ checkIfRoman()

checkIfRoman ( char *  str,
int rval,
int typep 
)

Definition at line 210 of file analyze.c.

References kstrMatch(), L_LROMAN, L_SROMAN, lroman, strVal::pattern, sroman, str, strlen(), and strVal::value.

Referenced by checkIfAppendix(), and checkIfEnumList().

◆ checkIfSecNumber()

checkIfSecNumber ( char *  str,
int dots 
)

Definition at line 270 of file analyze.c.

References checkIfNumber(), dots(), dummy, index, kdot, kstrMatch(), len, NULL, strVal::pattern, str, and strlen().

Referenced by lineAtrListSec().

◆ checkIfZenkakuAlpha()

checkIfZenkakuAlpha ( char *  str,
int lnump,
int typep 
)

Definition at line 337 of file analyze.c.

References kstrMatch(), L_LALPHA, L_SALPHA, str, strVal::value, zenkakuAlpLow, and zenkakuAlpUp.

Referenced by checkIfAppendix().

◆ kstrMatch()

struct strVal* kstrMatch ( char *  str,
struct strVal kpat 
)

◆ lineAtrDlist()

◆ lineAtrListSec()

Variable Documentation

◆ appendixPat

struct strVal appendixPat[]
Initial value:
= {
{"t^", 0},
{"Appendix", 0},
{"APPENDIX", 0},
{"`", 0},
{"`oodmchw", 0},
{"Appendix", 0},
{"APPENDIX", 0},
{"`", 0},
{"`oodmchw", 0},
{"", -1}
}

Definition at line 5 of file analyze.c.

Referenced by checkIfAppendix().

◆ bullet

struct strVal bullet[]
Initial value:
= {
{ "E", 0}, { "", 0},
{ "o ", 0}, { "* ", 0},
{ "+ ", 0},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by analyzeLines(), and lineAtrListSec().

◆ dash

◆ kdot

struct strVal kdot[]
Initial value:
= {
{"D", 0},
{"B", 0},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by checkIfAppendix(), and checkIfSecNumber().

◆ listSpecial

struct strVal listSpecial[]
Initial value:
= {
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0}, { "", 0},
{ "", 0},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by lineAtrDlist().

◆ lparenpat

struct strVal lparenpat[]
Initial value:
= {
{"i", 0},
{"m", 0},
{"(", 0},
{"[", 0},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by analyzeLines(), and checkIfEnumList().

◆ lroman

struct strVal lroman[]
Initial value:
= {
{"w", 10 }, {"hw", 9 },
{"uhhh", 8 }, {"uhh", 7 },
{"uh", 6 }, {"u", 5 },
{"hu", 4 }, {"hhh", 3 },
{"hh", 2 }, {"h", 1 },
{"X", 10 }, {"IX", 9 },
{"VIII",8 }, {"VII", 7 },
{"VI", 6 }, {"V", 5 },
{"IV", 4 }, {"III", 3 },
{"II", 2 }, {"I", 1 },
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by analyzeLines(), and checkIfRoman().

◆ rbracketpat

struct strVal rbracketpat[]
Initial value:
= {
{"n", 0},
{"]", 0},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by checkIfEnumList().

◆ rcsid

char rcsid[]
static
Initial value:
=
"$Id: analyze.c,v 2.13 1994/04/19 10:16:17 uchida Exp $ (NEC)"

Definition at line 5 of file analyze.c.

◆ rparenpat

struct strVal rparenpat[]
Initial value:
= {
{"j", 0},
{")", 0},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by checkIfEnumList().

◆ sroman

struct strVal sroman[]
Initial value:
= {
{"", 10 }, {"", 9 },
{"", 8 }, {"", 7 },
{"", 6 }, {"", 5 },
{"", 4 }, {"", 3 },
{"", 2 }, {"", 1 },
{"x", 10 }, {"ix", 9 },
{"viii",8 }, {"vii", 7 },
{"vi", 6 }, {"v", 5 },
{"iv", 4 }, {"iii", 3 },
{"ii", 2 }, {"i", 1 },
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by analyzeLines(), and checkIfRoman().

◆ zenkakuAlpLow

struct strVal zenkakuAlpLow[]
Initial value:
= {
{"", 0}, {"", 1}, {"", 2}, {"", 3},
{"", 4}, {"", 5}, {"", 6}, {"", 7},
{"", 8}, {"", 9}, {"", 10}, {"", 11},
{"", 12}, {"", 13}, {"", 14}, {"", 15},
{"", 16}, {"", 17}, {"", 18}, {"", 19},
{"", 20}, {"", 21}, {"", 22}, {"", 23},
{"", 24}, {"", 25}, { "", -1}}

Definition at line 5 of file analyze.c.

Referenced by checkIfZenkakuAlpha().

◆ zenkakuAlpUp

struct strVal zenkakuAlpUp[]
Initial value:
= {
{"`", 0}, {"a", 1}, {"b", 2}, {"c", 3},
{"d", 4}, {"e", 5}, {"f", 6}, {"g", 7},
{"h", 8}, {"i", 9}, {"j", 10}, {"k", 11},
{"l", 12}, {"m", 13}, {"n", 14}, {"o", 15},
{"p", 16}, {"q", 17}, {"r", 18}, {"s", 19},
{"t", 20}, {"u", 21}, {"v", 22}, {"w", 23},
{"x", 24}, {"y", 25}, { "", -1}}

Definition at line 5 of file analyze.c.

Referenced by checkIfZenkakuAlpha().

◆ zenkakuNum

struct strVal zenkakuNum[]
Initial value:
= {
{ "O", 0}, { "P", 1},
{ "Q", 2}, { "R", 3},
{ "S", 4}, { "T", 5},
{ "U", 6}, { "V", 7},
{ "W", 8}, { "X", 9},
{ "", -1}
}

Definition at line 5 of file analyze.c.

Referenced by analyzeLines(), and checkIfNumber().