My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
FilterStripPath Class Reference

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

Static Public Member Functions

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

Detailed Description

The implementation of the "default" filter.

Definition at line 1223 of file template.cpp.

Member Function Documentation

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

Definition at line 1226 of file template.cpp.

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

{
{
return v;
}
QCString result = v.toString();
int i=result.findRev('/');
if (i!=-1)
{
result=result.mid(i+1);
}
i=result.findRev('\\');
if (i!=-1)
{
result=result.mid(i+1);
}
return result;
}

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