| 98 | } |
| 99 | |
| 100 | void StringHelper::copy(char* target, int targetSize, std::string const& source) |
| 101 | { |
| 102 | auto sourceSize = source.size(); |
| 103 | if (sourceSize >= targetSize) { |
| 104 | sourceSize = targetSize - 1; |
| 105 | } |
| 106 | source.copy(target, sourceSize); |
| 107 | target[sourceSize] = 0; |
| 108 | } |
| 109 | |
| 110 | bool StringHelper::containsCaseInsensitive(std::string const& str, std::string const& toMatch) |
| 111 | { |
no test coverage detected