Lines Matching defs:format
23 wxString format;
25 format += wxT("%");
28 format += wxT(".");
30 format += wxString::Format(wxT(".%d"), p);
33 format += str;
35 wxString reference = wxString::Format(format, value);
36 wxString actual = CFormat(format) % value;
38 ASSERT_EQUALS_M(reference, actual, format + wxT(": '") + reference + wxT("' != '") + actual + wxT("'"));
59 // Simple string with no format fields
65 // Simple string with one format field
74 CFormat format(NULL);
75 ASSERT_EQUALS(wxT(""), format.GetString());
78 format = CFormat(wxT(""));
79 ASSERT_EQUALS(wxT(""), format.GetString());
81 // Simple string with no format fields
82 format = CFormat(wxT("a b c"));
83 ASSERT_EQUALS(wxT("a b c"), format.GetString());
85 // Simple string with one format field
86 format = CFormat(wxT("a %i c"));
87 ASSERT_EQUALS(wxT("a %i c"), format.GetString());
103 //! Test the two boundaries and a middle value of the specificed format
219 wxString format = wxT("%");
222 format += wxT(".");
224 format += wxString::Format(wxT(".%d"), p);
227 format += wxT("s");
229 wxString actual = CFormat(format) % (const wxChar*)NULL;
293 // Incomplete format string
302 // Partially valid format strings
319 // Partially valid format strings