Lines Matching refs:str
136 wxString str;
137 if (GetData()->Write(str))
138 return str;
218 virtual bool Read(wxString& str);
219 virtual bool Write(wxString& str) const;
221 virtual bool Read(wxSTD istream& str);
222 virtual bool Write(wxSTD ostream& str) const;
225 virtual bool Read(wxInputStream& str);
226 virtual bool Write(wxOutputStream &str) const;
247 bool wxVariantDataLong::Write(wxSTD ostream& str) const
251 str << (const char*) s.mb_str();
256 bool wxVariantDataLong::Write(wxString& str) const
258 str.Printf(wxT("%ld"), m_value);
263 bool wxVariantDataLong::Read(wxSTD istream& str)
265 str >> m_value;
271 bool wxVariantDataLong::Write(wxOutputStream& str) const
273 wxTextOutputStream s(str);
279 bool wxVariantDataLong::Read(wxInputStream& str)
281 wxTextInputStream s(str);
287 bool wxVariantDataLong::Read(wxString& str)
289 m_value = wxAtol((const wxChar*) str);
368 virtual bool Read(wxString& str);
370 virtual bool Write(wxSTD ostream& str) const;
372 virtual bool Write(wxString& str) const;
374 virtual bool Read(wxSTD istream& str);
377 virtual bool Read(wxInputStream& str);
378 virtual bool Write(wxOutputStream &str) const;
398 bool wxVariantDoubleData::Write(wxSTD ostream& str) const
402 str << (const char*) s.mb_str();
407 bool wxVariantDoubleData::Write(wxString& str) const
409 str.Printf(wxT("%.14g"), m_value);
414 bool wxVariantDoubleData::Read(wxSTD istream& str)
416 str >> m_value;
422 bool wxVariantDoubleData::Write(wxOutputStream& str) const
424 wxTextOutputStream s(str);
429 bool wxVariantDoubleData::Read(wxInputStream& str)
431 wxTextInputStream s(str);
437 bool wxVariantDoubleData::Read(wxString& str)
439 m_value = wxAtof((const wxChar*) str);
509 virtual bool Write(wxSTD ostream& str) const;
511 virtual bool Write(wxString& str) const;
512 virtual bool Read(wxString& str);
514 virtual bool Read(wxSTD istream& str);
517 virtual bool Read(wxInputStream& str);
518 virtual bool Write(wxOutputStream& str) const;
538 bool wxVariantDataBool::Write(wxSTD ostream& str) const
542 str << (const char*) s.mb_str();
547 bool wxVariantDataBool::Write(wxString& str) const
549 str.Printf(wxT("%d"), (int) m_value);
554 bool wxVariantDataBool::Read(wxSTD istream& WXUNUSED(str))
557 // str >> (long) m_value;
563 bool wxVariantDataBool::Write(wxOutputStream& str) const
565 wxTextOutputStream s(str);
571 bool wxVariantDataBool::Read(wxInputStream& str)
573 wxTextInputStream s(str);
580 bool wxVariantDataBool::Read(wxString& str)
582 m_value = (wxAtol((const wxChar*) str) != 0);
652 virtual bool Read(wxSTD istream& str);
653 virtual bool Write(wxSTD ostream& str) const;
655 virtual bool Read(wxString& str);
656 virtual bool Write(wxString& str) const;
658 virtual bool Read(wxInputStream& str);
659 virtual bool Write(wxOutputStream& str) const;
679 bool wxVariantDataChar::Write(wxSTD ostream& str) const
683 str << (const char*) s.mb_str();
688 bool wxVariantDataChar::Write(wxString& str) const
690 str.Printf(wxT("%c"), m_value);
695 bool wxVariantDataChar::Read(wxSTD istream& WXUNUSED(str))
704 bool wxVariantDataChar::Write(wxOutputStream& str) const
706 wxTextOutputStream s(str);
713 bool wxVariantDataChar::Read(wxInputStream& str)
715 wxTextInputStream s(str);
723 bool wxVariantDataChar::Read(wxString& str)
725 m_value = str[size_t(0)];
791 virtual bool Write(wxSTD ostream& str) const;
793 virtual bool Read(wxString& str);
794 virtual bool Write(wxString& str) const;
796 virtual bool Read(wxSTD istream& WXUNUSED(str)) { return false; }
799 virtual bool Read(wxInputStream& str);
800 virtual bool Write(wxOutputStream& str) const;
818 bool wxVariantDataString::Write(wxSTD ostream& str) const
820 str << (const char*) m_value.mb_str();
825 bool wxVariantDataString::Write(wxString& str) const
827 str = m_value;
832 bool wxVariantDataString::Write(wxOutputStream& str) const
835 wxTextOutputStream s(str);
840 bool wxVariantDataString::Read(wxInputStream& str)
842 wxTextInputStream s(str);
849 bool wxVariantDataString::Read(wxString& str)
851 m_value = str;
940 virtual bool Write(wxSTD ostream& str) const;
942 virtual bool Write(wxString& str) const;
944 virtual bool Read(wxSTD istream& str);
946 virtual bool Read(wxString& str);
987 bool wxVariantDataWxObjectPtr::Write(wxSTD ostream& str) const
991 str << (const char*) s.mb_str();
996 bool wxVariantDataWxObjectPtr::Write(wxString& str) const
998 str.Printf(wxT("%s(%p)"), GetType().c_str(), wx_static_cast(void*, m_value));
1003 bool wxVariantDataWxObjectPtr::Read(wxSTD istream& WXUNUSED(str))
1010 bool wxVariantDataWxObjectPtr::Read(wxString& WXUNUSED(str))
1062 virtual bool Write(wxSTD ostream& str) const;
1064 virtual bool Write(wxString& str) const;
1066 virtual bool Read(wxSTD istream& str);
1068 virtual bool Read(wxString& str);
1090 bool wxVariantDataVoidPtr::Write(wxSTD ostream& str) const
1094 str << (const char*) s.mb_str();
1099 bool wxVariantDataVoidPtr::Write(wxString& str) const
1101 str.Printf(wxT("%p"), m_value);
1106 bool wxVariantDataVoidPtr::Read(wxSTD istream& WXUNUSED(str))
1113 bool wxVariantDataVoidPtr::Read(wxString& WXUNUSED(str))
1186 virtual bool Write(wxSTD ostream& str) const;
1188 virtual bool Write(wxString& str) const;
1190 virtual bool Read(wxSTD istream& str);
1192 virtual bool Read(wxString& str);
1214 bool wxVariantDataDateTime::Write(wxSTD ostream& str) const
1218 str << value.c_str();
1224 bool wxVariantDataDateTime::Write(wxString& str) const
1227 str = m_value.Format();
1229 str = wxT("Invalid");
1236 bool wxVariantDataDateTime::Read(wxSTD istream& WXUNUSED(str))
1244 bool wxVariantDataDateTime::Read(wxString& str)
1246 if ( str == wxT("Invalid") )
1252 if(! m_value.ParseDateTime(str))
1362 virtual bool Write(wxSTD ostream& str) const;
1364 virtual bool Write(wxString& str) const;
1366 virtual bool Read(wxSTD istream& str);
1368 virtual bool Read(wxString& str);
1390 bool wxVariantDataArrayString::Write(wxSTD ostream& WXUNUSED(str)) const
1397 bool wxVariantDataArrayString::Write(wxString& str) const
1403 str += _T(';');
1405 str += m_value[n];
1413 bool wxVariantDataArrayString::Read(wxSTD istream& WXUNUSED(str))
1421 bool wxVariantDataArrayString::Read(wxString& str)
1423 wxStringTokenizer tk(str, _T(";"));
1491 virtual bool Write(wxSTD ostream& str) const;
1493 virtual bool Write(wxString& str) const;
1495 virtual bool Read(wxSTD istream& str);
1497 virtual bool Read(wxString& str);
1563 bool wxVariantDataList::Write(wxSTD ostream& str) const
1567 str << (const char*) s.mb_str();
1572 bool wxVariantDataList::Write(wxString& str) const
1574 str = wxEmptyString;
1580 str += wxT(" ");
1582 str += var->MakeString();
1590 bool wxVariantDataList::Read(wxSTD istream& WXUNUSED(str))
1598 bool wxVariantDataList::Read(wxString& WXUNUSED(str))
1732 virtual bool Write(wxSTD ostream& str) const;
1734 virtual bool Write(wxString& str) const;
1736 virtual bool Read(wxSTD istream& str);
1738 virtual bool Read(wxString& str);
1773 bool wxVariantDataStringList::Write(wxSTD ostream& str) const
1777 str << (const char*) s.mb_str();
1782 bool wxVariantDataStringList::Write(wxString& str) const
1784 str.Empty();
1790 str += wxT(" ");
1791 str += s;
1799 bool wxVariantDataStringList::Read(wxSTD istream& WXUNUSED(str))
1807 bool wxVariantDataStringList::Read(wxString& WXUNUSED(str))
1886 wxString str( (const wxChar*) (data->GetValue().Item(idx)->GetData()) );
1887 wxVariant variant( str );