My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 9959 of file context.cpp.

Constructor & Destructor Documentation

LatexSpaceless::LatexSpaceless ( )
inline

Definition at line 9962 of file context.cpp.

References reset().

{ reset(); }

Member Function Documentation

QCString LatexSpaceless::remove ( const QCString &  input)
inlinevirtual

Returns the input after removing redundant whitespace

Implements TemplateSpacelessIntf.

Definition at line 9964 of file context.cpp.

{
QGString result;
const char *p = s.data();
char c;
while ((c=*p++))
{
switch(c)
{
case '\t': case ' ': case '\n':
break;
default:
result+=c;
break;
}
}
result+='\0';
return result.data();
}
void LatexSpaceless::reset ( )
inlinevirtual

Reset filter state

Implements TemplateSpacelessIntf.

Definition at line 9963 of file context.cpp.

Referenced by LatexSpaceless().

{ }

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