void LocationMapForm::HandleJavaScriptRequestN (Tizen::Web::Json::IJsonValue *pArg) { AppLog("PathFinder:: HandleJavaScriptRequestN"); result r = E_SUCCESS; JsonObject* pJsonObject = static_cast< JsonObject* >(pArg); IJsonValue* pValue = null; JsonString* pJsonStringValue = null; String key(L"data"); r = pJsonObject->GetValue(&key, pValue); pJsonStringValue = static_cast< JsonString* >(pValue); const wchar_t* mapPointString = pJsonStringValue->GetPointer(); AppLog("data: %ls\n", mapPointString); String *tmpString = new String(mapPointString); Float x , y; int idx = 0; tmpString->IndexOf(' ' , 0 , idx); String *tmpString2 = new String ( mapPointString + idx + 1 ); const wchar_t* tmpChar = tmpString->GetPointer(); wchar_t* tmpChar3 = const_cast<wchar_t*>(tmpChar); tmpChar3[idx] = '\0'; const wchar_t* tmpChar2 = tmpString2->GetPointer(); x.Parse(tmpChar3 , this->__latitude ); y.Parse(tmpChar2 , this->__longitude ); }
inline bool operator<(const JsonString& left, const JsonString& right) { return left.Value() < right.Value(); }
void JsonWriter::Visit(const JsonString &value) { *m_output << '"' << EscapeString(EncodeString(value.Value())) << '"'; }