* @str: the string to trim * @index: the index to start trimming from. * * Trims str st str=[0, index) after the operation. * * Return value: the trimmed string. * */
| 144 | * Return value: the trimmed string. |
| 145 | * */ |
| 146 | static void trimUTF16VectorFromIndex(std::vector<char16_t>& str, int index) |
| 147 | { |
| 148 | int size = static_cast<int>(str.size()); |
| 149 | if (index >= size || index < 0) |
| 150 | return; |
| 151 | |
| 152 | str.erase(str.begin() + index, str.begin() + size); |
| 153 | } |
| 154 | |
| 155 | /* |
| 156 | * @str: the string to trim |
no test coverage detected