| 3610 | } |
| 3611 | |
| 3612 | const char* find_char(const substr& s, char c) |
| 3613 | { |
| 3614 | if (!s.text) |
| 3615 | { |
| 3616 | return NULL; |
| 3617 | } |
| 3618 | |
| 3619 | const char* text = s.text; |
| 3620 | S32 size = s.size; |
| 3621 | |
| 3622 | while (size > 0 && *text != '\0') |
| 3623 | { |
| 3624 | if (*text == c) |
| 3625 | { |
| 3626 | return text; |
| 3627 | } |
| 3628 | |
| 3629 | size--; |
| 3630 | text++; |
| 3631 | } |
| 3632 | |
| 3633 | return NULL; |
| 3634 | } |
| 3635 | |
| 3636 | const char* skip_ws(substr& s) |
| 3637 | { |
no outgoing calls
no test coverage detected