- printf("Header: %s\n", WXSTRINGCAST line);
- int pos = line.Find(':');
- if (pos == -1)
- return FALSE;
-
- wxString left_str = line(0, pos);
- wxString right_str = line(pos+1, line.Length());
-
- right_str = right_str.Strip(wxString::leading);
-
- wxString *str = new wxString(right_str);
+ wxString left_str = line.BeforeFirst(':');
+ wxString *str = new wxString(line.AfterFirst(':').Strip(wxString::both));
+ left_str.MakeUpper();