core: New functions to help parsing of status lines.