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

Member Function Documentation

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

Definition at line 1037 of file template.cpp.

References TemplateVariant::isValid(), TemplateVariant::String, TemplateVariant::toString(), and TemplateVariant::type().

{
if (v.isValid() && v.type()==TemplateVariant::String && v.toString().left(2)=="..")
{
return TRUE;
}
else
{
return FALSE;
}
}

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