* @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. * */
| 161 | * Return value: the trimmed string. |
| 162 | * */ |
| 163 | static void trimUTF32VectorFromIndex(std::vector<char32_t>& str, int index) |
| 164 | { |
| 165 | int size = static_cast<int>(str.size()); |
| 166 | if (index >= size || index < 0) |
| 167 | return; |
| 168 | |
| 169 | str.erase(str.begin() + index, str.begin() + size); |
| 170 | } |
| 171 | |
| 172 | /* |
| 173 | * @ch is the unicode character whitespace? |
no test coverage detected