Static Public Member Functions | List of all members
FilterRelative Class Reference

The implementation of the "relative" filter. More...

Static Public Member Functions

static TemplateVariant apply (const TemplateVariant &v, const TemplateVariant &)
 

Detailed Description

The implementation of the "relative" filter.

Definition at line 1027 of file template.cpp.

Member Function Documentation

static TemplateVariant FilterRelative::apply ( const TemplateVariant v,
const TemplateVariant  
)
inlinestatic

Definition at line 1030 of file template.cpp.

1031  {
1032  if (v.isValid() && v.type()==TemplateVariant::String && v.toString().left(2)=="..")
1033  {
1034  return TRUE;
1035  }
1036  else
1037  {
1038  return FALSE;
1039  }
1040  }
const bool FALSE
Definition: qglobal.h:370
QCString left(uint len) const
Definition: qcstring.cpp:213
QCString toString() const
Definition: template.h:232
bool isValid() const
Definition: template.h:161
Type type() const
Definition: template.h:142
const bool TRUE
Definition: qglobal.h:371

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