Doxygen
FilterAppend类 参考

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

静态 Public 成员函数

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

详细描述

The implementation of the "append" filter

在文件 template.cpp925 行定义.

成员函数说明

◆ apply()

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

在文件 template.cpp928 行定义.

929  {
930  if ((v.isString() || v.isInt()) &&
931  (arg.isString() || arg.isInt()))
932  {
933  return TemplateVariant(v.toString() + arg.toString());
934  }
935  else
936  {
937  return v;
938  }
939  }

引用了 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