| 178 | } |
| 179 | |
| 180 | string string::trim() const FL_NOEXCEPT { |
| 181 | fl::size start = 0; |
| 182 | fl::size end_pos = size(); |
| 183 | while (start < size() && fl::isspace(c_str()[start])) start++; |
| 184 | while (end_pos > start && fl::isspace(c_str()[end_pos - 1])) end_pos--; |
| 185 | return substring(start, end_pos); |
| 186 | } |
| 187 | |
| 188 | #ifdef FL_IS_WASM |
| 189 | string::string(const std::string& str) // okay std namespace |
no test coverage detected