| 416 | |
| 417 | |
| 418 | wxString InitialCaps( const wxString& aString ) |
| 419 | { |
| 420 | wxArrayString words; |
| 421 | wxString result; |
| 422 | |
| 423 | wxStringSplit( aString, words, ' ' ); |
| 424 | |
| 425 | result.reserve( aString.length() ); |
| 426 | |
| 427 | for( const wxString& word : words ) |
| 428 | { |
| 429 | if( result.IsEmpty() ) |
| 430 | result += word.Capitalize(); |
| 431 | else |
| 432 | result += wxT( " " ) + word.Lower(); |
| 433 | } |
| 434 | |
| 435 | return result; |
| 436 | } |
| 437 | |
| 438 | |
| 439 | int ReadDelimitedText( wxString* aDest, const char* aSource ) |
no test coverage detected