| 395 | |
| 396 | |
| 397 | wxString TitleCaps( const wxString& aString ) |
| 398 | { |
| 399 | wxArrayString words; |
| 400 | wxString result; |
| 401 | |
| 402 | wxStringSplit( aString, words, ' ' ); |
| 403 | |
| 404 | result.reserve( aString.length() ); |
| 405 | |
| 406 | for( const wxString& word : words ) |
| 407 | { |
| 408 | if( !result.IsEmpty() ) |
| 409 | result += wxT( " " ); |
| 410 | |
| 411 | result += word.Capitalize(); |
| 412 | } |
| 413 | |
| 414 | return result; |
| 415 | } |
| 416 | |
| 417 | |
| 418 | wxString InitialCaps( const wxString& aString ) |
no test coverage detected