Home Libraries Author Links

cuglify.c File Reference


Detailed Description

Implementation of the console command cuglify, a C and C++ source code uglifier.

Version:
1.12-r341
Date:
2007-12-04 08:40:24 (Tom)
Author:
Tom Michaelis
SysToMath
Wittelsbacherstr. 7
D-80469 Munich
Contact:
http://www.SysToMath.com
mailto:Tom.Michaelis@SysToMath.com
This C program demonstrates the usage and tests the implementation of pattern matching in strings by means of regular expressions.

Definition in file cuglify.c.

Go to the source code of this file.

Data Structures

struct  CuglifyEnv
 Match environment CuglifyEnv. More...

Typedefs

typedef struct CuglifyEnv CuglifyEnv
 Type name of the match environment CuglifyEnv.

Enumerations

enum  LastChar {
  NORMAL,
  PLUS,
  MINUS,
  GREATER,
  TIMES,
  AMPERSAND,
  POUND,
  IDCHAR
}
 Last character state enumeration LastChar. More...

Functions

int main (int argc, char **argv)
 Main function implementing the command cuglify.
static int out (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action out.
static int errout (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action errout.
static int pout (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action pout.
static int bout (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action bout.
static int pnlout (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action pnlout.
static int cnlout (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action cnlout.
static int commout (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action commout.
static int setclbeg (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action setclbeg.
static int cmode (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action cmode.
static int incif (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action incif.
static int chkif (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action chkif.
static int decif (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action decif.
static int newlnr (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action newlnr.
static int newfile (StmMtcFctCmd cmd, StmQreMtc qreMtc)
 Qualified regular expression action function for the qualified regular expression action newfile.
static void defsreact (StmReCtrl reCtrl, CuglifyEnv *env)
 Definition of regular expression StmRe objects and of qualified regular expression action functions.
static StmBool readline (CuglifyEnv *env)
 Read a logical line from the input and store it in the match environment.
static void flushout (CuglifyEnv *env)
 Flushes any still existing characters prepared for output.
static void gatherout (CuglifyEnv *env, const char *str, int len)
 Prepares characters for output.

Variables

static const char * man []
 Man page.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).