| 416 | } |
| 417 | |
| 418 | void Copy( const char * string ) |
| 419 | { |
| 420 | if ( string == NULL ) |
| 421 | { |
| 422 | if ( mMaxLength == 0 ) |
| 423 | { |
| 424 | Size( 0 ); |
| 425 | } |
| 426 | |
| 427 | strcpy( mpString, "" ); |
| 428 | } |
| 429 | else |
| 430 | { |
| 431 | u32 length( strlen( string ) ); |
| 432 | |
| 433 | if ( length > mMaxLength ) |
| 434 | { |
| 435 | Size( length ); |
| 436 | } |
| 437 | |
| 438 | strcpy( mpString, string ); |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | void Append( const char * string ) |
| 443 | { |
nothing calls this directly
no outgoing calls
no test coverage detected