| 492 | } |
| 493 | |
| 494 | StringView strLTrimNonSpace(const StringView& _str) |
| 495 | { |
| 496 | for (const char* ptr = _str.getPtr(), *term = _str.getTerm(); ptr != term; ++ptr) |
| 497 | { |
| 498 | if (isSpace(*ptr) ) |
| 499 | { |
| 500 | return StringView(ptr, term); |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | return StringView(_str.getTerm(), _str.getTerm() ); |
| 505 | } |
| 506 | |
| 507 | StringView strRTrim(const StringView& _str, const StringView& _chars) |
| 508 | { |
nothing calls this directly
no test coverage detected