当前位置: 首页>>代码示例>>C++>>正文


C++ AvmCore::concatStrings方法代码示例

本文整理汇总了C++中AvmCore::concatStrings方法的典型用法代码示例。如果您正苦于以下问题:C++ AvmCore::concatStrings方法的具体用法?C++ AvmCore::concatStrings怎么用?C++ AvmCore::concatStrings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AvmCore的用法示例。


在下文中一共展示了AvmCore::concatStrings方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: implToString

 Stringp ScriptObject::implToString() const
 {
     AvmCore* core = this->core();
     Traits* t = this->traits();
     Stringp s = core->concatStrings(core->newConstantStringLatin1("[object "), t->name());
     return core->concatStrings(s, core->newConstantStringLatin1("]"));
 }
开发者ID:bsdf,项目名称:trx,代码行数:7,代码来源:ScriptObject.cpp

示例2: implToString

 Stringp ClassClosure::implToString() const
 {
     AvmCore* core = this->core();
     Traits* t = this->traits()->itraits;
     Stringp s = core->concatStrings(core->newConstantStringLatin1("[class "), t->name());
     return core->concatStrings(s, core->newConstantStringLatin1("]"));
 }
开发者ID:AdiKo,项目名称:avmplus,代码行数:7,代码来源:ClassClosure.cpp

示例3: _toString

    /**
     * Object.prototype.toString()
     */
    Stringp ObjectClass::_toString(Atom thisAtom)
    {
        AvmCore* core = this->core();

        if (AvmCore::isObject(thisAtom))
        {
            return AvmCore::atomToScriptObject(thisAtom)->implToString();
        }
        else
        {
            Traits*     t = toplevel()->toTraits(thisAtom);
            Stringp s = core->concatStrings(core->newConstantStringLatin1("[object "), t->name());
            return core->concatStrings(s, core->newConstantStringLatin1("]"));
        }
    }
开发者ID:bsdf,项目名称:trx,代码行数:18,代码来源:ObjectClass.cpp

示例4: _toString

	/**
     * Object.prototype.toString()
     */
	Stringp ObjectClass::_toString(Atom thisAtom)
	{		
		AvmCore* core = this->core();

		if (core->istype(thisAtom, CLASS_TYPE))
		{
			ClassClosure *cc = (ClassClosure *)AvmCore::atomToScriptObject(thisAtom);
			Traits*		t = cc->ivtable()->traits;
			Stringp s = core->concatStrings(core->newString("[class "), t->name);
			return core->concatStrings(s, core->newString("]"));
		}
		else
		{
			Traits*		t = toplevel()->toTraits(thisAtom);
			Stringp s = core->concatStrings(core->newString("[object "), t->name);
			return core->concatStrings(s, core->newString("]"));
		}
	}
开发者ID:PushButtonLabs,项目名称:PBNetworking,代码行数:21,代码来源:ObjectClass.cpp

示例5: getStackTraceLine

	static Stringp getStackTraceLine(MethodInfo* method, Stringp filename) 
	{
		AvmCore *core = method->pool()->core;
		Stringp s = core->newStringLatin1("\tat ");
		s = core->concatStrings(s, method->format(core));
		if (filename)
		{
			s = s->appendLatin1("[");
			s = s->append(filename);
			s = s->appendLatin1(":");
		}
		return s;
	}
开发者ID:hgl888,项目名称:nashtest,代码行数:13,代码来源:StackTrace.cpp

示例6: implToString

	Stringp FunctionObject::implToString() const
	{
		AvmCore* core = this->core();
		Stringp s = core->concatStrings(core->newConstantStringLatin1("[object Function-"), core->intToString(_call->method->method_id()));
		return core->concatStrings(s, core->newConstantStringLatin1("]"));
	}
开发者ID:hgl888,项目名称:nashtest,代码行数:6,代码来源:FunctionClass.cpp


注:本文中的AvmCore::concatStrings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。