| 702 | } |
| 703 | |
| 704 | void lString16::resize(size_type n, lChar16 e) |
| 705 | { |
| 706 | lock( n ); |
| 707 | if (n>=pchunk->size) |
| 708 | { |
| 709 | pchunk->buf16 = (lChar16*) ::realloc( pchunk->buf16, sizeof(lChar16)*(n+1) ); |
| 710 | pchunk->size = n; |
| 711 | } |
| 712 | // fill with data if expanded |
| 713 | for (size_type i=pchunk->len; i<n; i++) |
| 714 | pchunk->buf16[i] = e; |
| 715 | pchunk->buf16[pchunk->len] = 0; |
| 716 | } |
| 717 | |
| 718 | lString16 & lString16::append(const lChar16 * str) |
| 719 | { |
no outgoing calls
no test coverage detected