Author: sayer
Date: 2009-03-13 18:26:28 +0100 (Fri, 13 Mar 2009)
New Revision: 1315
Modified:
trunk/core/AmArg.cpp
Log:
synced print format to python's
Modified: trunk/core/AmArg.cpp
===================================================================
--- trunk/core/AmArg.cpp 2009-03-13 17:19:59 UTC (rev 1314)
+++ trunk/core/AmArg.cpp 2009-03-13 17:26:28 UTC (rev 1315)
@@ -366,7 +366,7 @@
case Double:
return int2str((int)a.asDouble()); //TODO: FIXME
case CStr:
- return '"' + string(a.asCStr()) + '"';
+ return "'" + string(a.asCStr()) + "'";
case Array:
s = "[";
for (size_t i = 0; i < a.size(); i ++)
@@ -379,7 +379,7 @@
s = "{";
for (AmArg::ValueStruct::const_iterator it = a.asStruct()->begin();
it != a.asStruct()->end(); it ++) {
- s += it->first + ":";
+ s += "'"+it->first + "': ";
s += print(it->second);
s += ", ";
}
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev