Sha256: c23d316fb2540cb1e914f042ed0c8a168709f754b01836049e8047025b56d094
Contents?: true
Size: 623 Bytes
Versions: 39
Compression:
Stored size: 623 Bytes
Contents
#include "ruby/ext/rho/rhoruby.h" #include <AtlBase.h> #include <AtlConv.h> using namespace std; namespace rho { namespace emml { wstring rubyValueToEMML(rho_param* p) { wstring emml; if (p && p->type == RHO_PARAM_HASH) { for (int i = 0; i < p->v.hash->size; i++) { emml.append(CA2W(p->v.hash->name[i])); emml.append(L":"); emml.append(CA2W(p->v.hash->value[i]->v.string)); if(i < p->v.hash->size - 1) emml.append(L";"); } } rho_param_free(p); return emml; } void addEMML(wstring& dest, wchar_t* src) { dest.append(L";"); dest.append(src); } } }
Version data entries
39 entries across 39 versions & 2 rubygems