Public Member Functions | List of all members
LatexSpaceless Class Reference
Inheritance diagram for LatexSpaceless:
TemplateSpacelessIntf

Public Member Functions

 LatexSpaceless ()
 
void reset ()
 
QCString remove (const QCString &s)
 

Detailed Description

Definition at line 9944 of file context.cpp.

Constructor & Destructor Documentation

LatexSpaceless::LatexSpaceless ( )
inline

Definition at line 9947 of file context.cpp.

9947 { reset(); }

Member Function Documentation

QCString LatexSpaceless::remove ( const QCString input)
inlinevirtual

Returns the input after removing redundant whitespace

Implements TemplateSpacelessIntf.

Definition at line 9949 of file context.cpp.

9950  {
9951  QGString result;
9952  const char *p = s.data();
9953  char c;
9954  while ((c=*p++))
9955  {
9956  switch(c)
9957  {
9958  case '\t': case ' ': case '\n':
9959  break;
9960  default:
9961  result+=c;
9962  break;
9963  }
9964  }
9965  result+='\0';
9966  return result.data();
9967  }
char * data() const
Definition: qgstring.h:42
static QCString result
p
Definition: test.py:223
const char * data() const
Definition: qcstring.h:207
static QCString * s
Definition: config.cpp:1042
void LatexSpaceless::reset ( )
inlinevirtual

Reset filter state

Implements TemplateSpacelessIntf.

Definition at line 9948 of file context.cpp.

9948 { }

The documentation for this class was generated from the following file: