| 4408 | } |
| 4409 | |
| 4410 | String String::rstrip(const String& p_chars) const |
| 4411 | { |
| 4412 | int len = length(); |
| 4413 | int end; |
| 4414 | |
| 4415 | for (end = len - 1; end >= 0; end--) |
| 4416 | { |
| 4417 | if (p_chars.find_char(get(end)) == -1) |
| 4418 | { |
| 4419 | break; |
| 4420 | } |
| 4421 | } |
| 4422 | |
| 4423 | if (end == len - 1) |
| 4424 | { |
| 4425 | return *this; |
| 4426 | } |
| 4427 | |
| 4428 | return substr(0, end + 1); |
| 4429 | } |
| 4430 | |
| 4431 | bool String::is_network_share_path() const |
| 4432 | { |
no test coverage detected