void Tools::Upxcore(Handle
& value,std::string& str){
if(value->IsArray()){
str += "[";
Array* arr = Array::Cast(*value);
int len = arr->Length();
for( int a = 0; a < len; a = a + 1 )
{
Handlenvalue = arr->Get(a);
Upxcore(nvalue,str);
if(a != len-1){
str += ',';
}
}
str +="]";
}else if(value->IsObject()){
str += "{";
Localnkey = key_arr->Get(a);
Handlenvalue = obj->Get(nkey);
Upxcore(nkey,str);
str += ":";
Upxcore(nvalue,str);
if(a != len-1){
str += ',';
}
}
str += "}";
}else if(value->IsString()){
String::Utf8Value keyUtf8Value(value);
std::string keyString = std::string(*keyUtf8Value);
str += "\""+keyString+"\"";
}
return;
}看到这段代码的时候我已经在改汇编了- -