本文整理汇总了C++中wtf::StringBuilder::append方法的典型用法代码示例。如果您正苦于以下问题:C++ StringBuilder::append方法的具体用法?C++ StringBuilder::append怎么用?C++ StringBuilder::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wtf::StringBuilder
的用法示例。
在下文中一共展示了StringBuilder::append方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dumpPropertiesAsDebugString
void BeginCompositingDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
DisplayItem::dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append(WTF::String::format(", xferMode: %d, opacity: %f", m_xferMode, m_opacity));
if (m_hasBounds)
stringBuilder.append(WTF::String::format(", bounds: [%f, %f, %f, %f]", m_bounds.location().x(), m_bounds.location().y(), m_bounds.size().width(), m_bounds.size().height()));
}
示例2: asDebugString
WTF::String DisplayItem::asDebugString() const
{
WTF::StringBuilder stringBuilder;
stringBuilder.append('{');
dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append('}');
return stringBuilder.toString();
}
示例3: asDebugString
WTF::String DisplayItem::asDebugString() const
{
if (!isValid())
return "null";
WTF::StringBuilder stringBuilder;
stringBuilder.append('{');
dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append('}');
return stringBuilder.toString();
}
示例4:
void BeginTransform3DDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
PairedBeginDisplayItem::dumpPropertiesAsDebugString(stringBuilder);
TransformationMatrix::DecomposedType decomposition;
if (m_transform.decompose(decomposition)) {
stringBuilder.append(WTF::String::format(
", translate: [%lf,%lf,%lf], scale: [%lf,%lf,%lf], skew: [%lf,%lf,%lf], quarternion: [%lf,%lf,%lf,%lf], perspective: [%lf,%lf,%lf,%lf]",
decomposition.translateX, decomposition.translateY, decomposition.translateZ,
decomposition.scaleX, decomposition.scaleY, decomposition.scaleZ,
decomposition.skewXY, decomposition.skewXZ, decomposition.skewYZ,
decomposition.quaternionX, decomposition.quaternionY, decomposition.quaternionZ, decomposition.quaternionW,
decomposition.perspectiveX, decomposition.perspectiveY, decomposition.perspectiveZ, decomposition.perspectiveW));
}
stringBuilder.append(String::format(", transformOrigin: [%f,%f,%f]", m_transformOrigin.x(), m_transformOrigin.y(), m_transformOrigin.z()));
}
示例5: dumpPropertiesAsDebugString
void BeginClipPathDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
DisplayItem::dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append(WTF::String::format(", pathVerbs: %d, pathPoints: %d, windRule: \"%s\"",
m_clipPath.countVerbs(), m_clipPath.countPoints(),
m_clipPath.getFillType() == SkPath::kWinding_FillType ? "nonzero" : "evenodd"));
}
示例6: dumpPropertiesAsDebugString
void BeginFilterDisplayItem::dumpPropertiesAsDebugString(
WTF::StringBuilder& stringBuilder) const {
DisplayItem::dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append(
WTF::String::format(", filter bounds: [%f,%f,%f,%f]", m_bounds.x(),
m_bounds.y(), m_bounds.width(), m_bounds.height()));
}
示例7: dumpPropertiesAsDebugString
void DrawingDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
DisplayItem::dumpPropertiesAsDebugString(stringBuilder);
if (m_picture) {
stringBuilder.append(WTF::String::format(", rect: [%f,%f %fx%f]",
m_picture->cullRect().x(), m_picture->cullRect().y(),
m_picture->cullRect().width(), m_picture->cullRect().height()));
}
}
示例8: dumpPropertiesAsDebugString
void DisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
if (!hasValidClient()) {
stringBuilder.append("validClient: false, originalDebugString: ");
// This is the original debug string which is in json format.
stringBuilder.append(clientDebugString());
return;
}
stringBuilder.append(String::format("client: \"%p", &client()));
if (!clientDebugString().isEmpty()) {
stringBuilder.append(' ');
stringBuilder.append(clientDebugString());
}
stringBuilder.append("\", type: \"");
stringBuilder.append(typeAsDebugString(type()));
stringBuilder.append('"');
if (m_skippedCache)
stringBuilder.append(", skippedCache: true");
if (m_scope)
stringBuilder.append(String::format(", scope: %d", m_scope));
}
示例9: dumpPropertiesAsDebugString
void DisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
stringBuilder.append(String::format("client: \"%p", client()));
if (!clientDebugString().isEmpty()) {
stringBuilder.append(' ');
stringBuilder.append(clientDebugString());
}
stringBuilder.append("\", type: \"");
stringBuilder.append(typeAsDebugString(type()));
stringBuilder.append('"');
if (m_skippedCache)
stringBuilder.append(", skippedCache: true");
if (m_scopeContainer)
stringBuilder.append(String::format(", scope: \"%p,%d\"", m_scopeContainer, m_scopeId));
}
示例10: dumpPropertiesAsDebugString
void BeginScrollDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
PairedBeginDisplayItem::dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append(WTF::String::format(", currentOffset: [%d,%d]", m_currentOffset.width(), m_currentOffset.height()));
}
示例11: dumpPropertiesAsDebugString
void ClipDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
DisplayItem::dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append(WTF::String::format(", clipRect: [%d,%d,%d,%d]",
m_clipRect.x(), m_clipRect.y(), m_clipRect.width(), m_clipRect.height()));
}
示例12: dumpPropertiesAsDebugString
void BeginTransformDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
PairedBeginDisplayItem::dumpPropertiesAsDebugString(stringBuilder);
stringBuilder.append(WTF::String::format(", transform: [%lf,%lf,%lf,%lf,%lf,%lf]",
m_transform.a(), m_transform.b(), m_transform.c(), m_transform.d(), m_transform.e(), m_transform.f()));
}