Doxygen
FilterPrepend类 参考

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

静态 Public 成员函数

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

详细描述

The implementation of the "prepend" filter

在文件 template.cpp945 行定义.

成员函数说明

◆ apply()

static TemplateVariant FilterPrepend::apply ( const TemplateVariant v,
const TemplateVariant arg 
)
inlinestatic

在文件 template.cpp948 行定义.

949  {
950  if ((v.isString() || v.isInt()) &&
951  arg.isString())
952  {
953  return TemplateVariant(arg.toString() + v.toString());
954  }
955  else
956  {
957  return v;
958  }
959  }

引用了 TemplateVariant::isInt(), TemplateVariant::isString() , 以及 TemplateVariant::toString().


该类的文档由以下文件生成:
TemplateVariant
Variant type which can hold one value of a fixed set of types.
Definition: template.h:98
TemplateVariant::isInt
constexpr bool isInt() const
Returns TRUE if the variant holds an integer value
Definition: template.h:207
TemplateVariant::toString
QCString toString() const
Returns the variant as a string.
Definition: template.cpp:399
TemplateVariant::isString
constexpr bool isString() const
Returns TRUE if the variant holds a string value
Definition: template.h:209