// ================================================ void resultfm::OnOK() // ================================================ { char buf[1000]; char tabs[1000]; int i; if (!TestConsistency()) return; m_edit_format.GetWindowText(buf,999); for (i=0;i<(int)strlen(buf);i++) if (!strchr(" ASETIDKXY",buf[i])) ERR_MSG2_RET("E_ILLRCCIS",buf[i]); m_edit_tabs.GetWindowText(tabs,999); for (i=0;i<(int)strlen(tabs);i++) if (tabs[i]!=',' && !isdigit(tabs[i])) ERR_MSG2_RET("E_ILLRSCCIS",tabs[i]); resultdisp.RemoveAll(); resultdisp.AddTail(buf); resultdisp.AddTail(tabs); resultdisp.SaveToFile("resudisp.cfg"); KillTimer(2345); CDialog::OnOK(); }
void UnicodeTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ ) { if (exec) logln("TestSuite UnicodeTest: "); switch (index) { case 0: name = "TestAdditionalProperties"; if(exec) TestAdditionalProperties(); break; case 1: name = "TestBinaryValues"; if(exec) TestBinaryValues(); break; case 2: name = "TestConsistency"; if(exec) TestConsistency(); break; default: name = ""; break; //needed to end loop } }