Doxygen
FilterRelative类 参考

The implementation of the "relative" filter 更多...

静态 Public 成员函数

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

详细描述

The implementation of the "relative" filter

在文件 template.cpp1220 行定义.

成员函数说明

◆ apply()

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

在文件 template.cpp1223 行定义.

1224  {
1225  if (v.isValid() && v.isString() && v.toString().left(2)=="..")
1226  {
1227  return TRUE;
1228  }
1229  else
1230  {
1231  return FALSE;
1232  }
1233  }

引用了 FALSE, TemplateVariant::isString(), TemplateVariant::isValid(), QCString::left(), TemplateVariant::toString() , 以及 TRUE.


该类的文档由以下文件生成:
QCString::left
QCString left(size_t len) const
Definition: qcstring.h:212
TRUE
#define TRUE
Definition: qcstring.h:36
TemplateVariant::toString
QCString toString() const
Returns the variant as a string.
Definition: template.cpp:399
TemplateVariant::isValid
constexpr bool isValid() const
Returns TRUE if the variant holds a valid value, or FALSE otherwise
Definition: template.h:203
TemplateVariant::isString
constexpr bool isString() const
Returns TRUE if the variant holds a string value
Definition: template.h:209
FALSE
#define FALSE
Definition: qcstring.h:33