@@ -82,7 +82,7 @@ using EnumUnderlyingType = {{#isNumeric}}int64_t{{/isNumeric}}{{^isNumeric}}util
82
82
{ {/isNumeric} }
83
83
{ {^isNumeric} }
84
84
{ {#enumVars} }
85
- if (val == utility::conversions::to_string_t(U ("{ {{value} }}")))
85
+ if (val == utility::conversions::to_string_t(_XPLATSTR ("{ {{value} }}")))
86
86
return { {classname} }::e{ {classname} }::{ {classname} }_{ {name} };
87
87
{ {/enumVars} }
88
88
{ {/isNumeric} }
@@ -97,7 +97,7 @@ EnumUnderlyingType fromEnum({{classname}}::e{{classname}} e)
97
97
{
98
98
{{#enumVars} }
99
99
case { {classname} }::e{ {classname} }::{ {classname} }_{ {name} }:
100
- return { {#isNumeric} }{ {value} }{ {/isNumeric} }{ {^isNumeric} }U ("{ {value} }"){ {/isNumeric} };
100
+ return { {#isNumeric} }{ {value} }{ {/isNumeric} }{ {^isNumeric} }_XPLATSTR ("{ {value} }"){ {/isNumeric} };
101
101
{ {#-last} }
102
102
default:
103
103
break;
@@ -137,9 +137,9 @@ bool {{classname}}::fromJson(const web::json::value& val)
137
137
void { {classname} }::toMultipart(std::shared_ptr<MultipartFormData > multipart, const utility::string_t& prefix) const
138
138
{
139
139
utility::string_t namePrefix = prefix;
140
- if (! namePrefix.empty() && namePrefix.back() != U (' .' ))
140
+ if (! namePrefix.empty() && namePrefix.back() != _XPLATSTR (' .' ))
141
141
{
142
- namePrefix.push_back(U (' .' ));
142
+ namePrefix.push_back(_XPLATSTR (' .' ));
143
143
}
144
144
145
145
auto e = fromEnum(m_value);
@@ -150,9 +150,9 @@ bool {{classname}}::fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
150
150
{
151
151
bool ok = true ;
152
152
utility::string_t namePrefix = prefix;
153
- if (! namePrefix.empty() && namePrefix.back() != U (' .' ))
153
+ if (! namePrefix.empty() && namePrefix.back() != _XPLATSTR (' .' ))
154
154
{
155
- namePrefix.push_back(U (' .' ));
155
+ namePrefix.push_back(_XPLATSTR (' .' ));
156
156
}
157
157
{
158
158
EnumUnderlyingType e;
@@ -231,13 +231,13 @@ web::json::value {{classname}}::toJson() const
231
231
{{#isEnum} }{ {#isContainer} }{ {#isArray} }
232
232
{ {{dataType} }} refVal = from{ {{enumName} }}(m_{ {name} });
233
233
{ {/isArray} }{ {#isMap} }
234
- val[utility::conversions::to_string_t(U ("{ {baseName} }"))] = ModelBase::toJson(m_{ {name} });
234
+ val[utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }"))] = ModelBase::toJson(m_{ {name} });
235
235
{ {/isMap} }{ {/isContainer} }{ {^isContainer} }
236
236
utility::string_t refVal = from{ {{datatypeWithEnum} }}(m_{ {name} });
237
- { {/isContainer} }{ {^isMap} }val[utility::conversions::to_string_t(U ("{ {baseName} }"))] = ModelBase::toJson(refVal);
237
+ { {/isContainer} }{ {^isMap} }val[utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }"))] = ModelBase::toJson(refVal);
238
238
{ {/isMap} }{ {/isEnum} }
239
239
{ {^isEnum} }
240
- val[utility::conversions::to_string_t(U ("{ {baseName} }"))] = ModelBase::toJson(m_{ {name} });
240
+ val[utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }"))] = ModelBase::toJson(m_{ {name} });
241
241
{ {/isEnum} }
242
242
}
243
243
{ {/isInherited} }
@@ -254,9 +254,9 @@ bool {{classname}}::fromJson(const web::json::value& val)
254
254
{ {/parent} }
255
255
{ {#vars} }
256
256
{ {^isInherited} }
257
- if(val.has_field(utility::conversions::to_string_t(U ("{ {baseName} }"))))
257
+ if(val.has_field(utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }"))))
258
258
{
259
- const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(U (" {{baseName}}" )));
259
+ const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR (" {{baseName}}" )));
260
260
if (! fieldValue.is_null())
261
261
{
262
262
{{{dataType} }} refVal_{ {setter} };
@@ -281,26 +281,26 @@ bool {{classname}}::fromJson(const web::json::value& val)
281
281
void { {classname} }::toMultipart(std::shared_ptr<MultipartFormData > multipart, const utility::string_t& prefix) const
282
282
{
283
283
utility::string_t namePrefix = prefix;
284
- if (namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U (" ." )))
284
+ if (namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR (" ." )))
285
285
{
286
- namePrefix += utility::conversions::to_string_t(U (" ." ));
286
+ namePrefix += utility::conversions::to_string_t(_XPLATSTR (" ." ));
287
287
}
288
288
{ {#vars} }
289
289
if(m_{ {name} }IsSet)
290
290
{
291
291
{{^isEnum} }
292
- multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U ("{ {baseName} }")), m_{ {name} }));
292
+ multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }")), m_{ {name} }));
293
293
{ {/isEnum} }
294
294
{ {#isEnum} }
295
295
{ {#isContainer} }
296
296
{ {#isArray} }
297
- multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U ("{ {baseName} }")), from{ {{enumName} }}(m_{ {name} })));
297
+ multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }")), from{ {{enumName} }}(m_{ {name} })));
298
298
{ {/isArray} }{ {#isMap} }
299
- multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U ("{ {baseName} }")), m_{ {name} }));
299
+ multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }")), m_{ {name} }));
300
300
{ {/isMap} }
301
301
{ {/isContainer} }
302
302
{ {^isContainer} }
303
- multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U ("{ {baseName} }")), from{ {{datatypeWithEnum} }}(m_{ {name} })));
303
+ multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }")), from{ {{datatypeWithEnum} }}(m_{ {name} })));
304
304
{ {/isContainer} }
305
305
{ {/isEnum} }
306
306
}
@@ -311,16 +311,16 @@ bool {{classname}}::fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
311
311
{
312
312
bool ok = true ;
313
313
utility::string_t namePrefix = prefix;
314
- if (namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U (" ." )))
314
+ if (namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR (" ." )))
315
315
{
316
- namePrefix += utility::conversions::to_string_t(U (" ." ));
316
+ namePrefix += utility::conversions::to_string_t(_XPLATSTR (" ." ));
317
317
}
318
318
319
319
{ {#vars} }
320
- if(multipart->hasContent(utility::conversions::to_string_t(U ("{ {baseName} }"))))
320
+ if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }"))))
321
321
{
322
322
{{{dataType} }} refVal_{ {setter} };
323
- ok & = ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U ("{ {baseName} }"))), refVal_{ {setter} } );
323
+ ok & = ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR ("{ {baseName} }"))), refVal_{ {setter} } );
324
324
{ {^isEnum} }
325
325
{ {setter} }(refVal_{ {setter} });
326
326
{ {/isEnum} }
0 commit comments