| 869 | } |
| 870 | |
| 871 | void String::remove(size_t index, size_t count) |
| 872 | { |
| 873 | if(count == 0) { |
| 874 | return; |
| 875 | } |
| 876 | auto len = length(); |
| 877 | if(index >= len) { |
| 878 | return; |
| 879 | } |
| 880 | if(count > len - index) { |
| 881 | count = len - index; |
| 882 | } |
| 883 | char* writeTo = buffer() + index; |
| 884 | len -= count; |
| 885 | memmove(writeTo, writeTo + count, len - index); |
| 886 | setlen(len); |
| 887 | } |
| 888 | |
| 889 | void String::toLowerCase(void) |
| 890 | { |
no outgoing calls
no test coverage detected