- printf("Header: %s\n", WXSTRINGCAST line);
- tokenzr.SetString(line, " :\t\n\r");
- if (!tokenzr.HasMoreToken())
- return FALSE;
-
- wxString left_str = tokenzr.GetNextToken();
- wxString *str = new wxString(tokenzr.GetNextToken());
+ wxString left_str = line.BeforeFirst(':');
+ wxString *str = new wxString(line.AfterFirst(':').Strip(wxString::both));
+ left_str.MakeUpper();