| 4390 | } |
| 4391 | |
| 4392 | String String::rstrip(const String &p_chars) const { |
| 4393 | int len = length(); |
| 4394 | int end; |
| 4395 | |
| 4396 | for (end = len - 1; end >= 0; end--) { |
| 4397 | if (p_chars.find_char(get(end)) == -1) { |
| 4398 | break; |
| 4399 | } |
| 4400 | } |
| 4401 | |
| 4402 | if (end == len - 1) { |
| 4403 | return *this; |
| 4404 | } |
| 4405 | |
| 4406 | return substr(0, end + 1); |
| 4407 | } |
| 4408 | |
| 4409 | bool String::is_network_share_path() const { |
| 4410 | return begins_with("//") || begins_with("\\\\"); |
no test coverage detected