{"action":"opened","issue":{"url":"https://api.github.com/repos/mclow/String-Algo/issues/4","repository_url":"https://api.github.com/repos/mclow/String-Algo","labels_url":"https://api.github.com/repos/mclow/String-Algo/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mclow/String-Algo/issues/4/comments","events_url":"https://api.github.com/repos/mclow/String-Algo/issues/4/events","html_url":"https://github.com/mclow/String-Algo/issues/4","id":205419319,"number":4,"title":"string_view read_until(string_view&, sep)","user":{"login":"OlafvdSpek","id":2218936,"avatar_url":"https://avatars.githubusercontent.com/u/2218936?v=3","gravatar_id":"","url":"https://api.github.com/users/OlafvdSpek","html_url":"https://github.com/OlafvdSpek","followers_url":"https://api.github.com/users/OlafvdSpek/followers","following_url":"https://api.github.com/users/OlafvdSpek/following{/other_user}","gists_url":"https://api.github.com/users/OlafvdSpek/gists{/gist_id}","starred_url":"https://api.github.com/users/OlafvdSpek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlafvdSpek/subscriptions","organizations_url":"https://api.github.com/users/OlafvdSpek/orgs","repos_url":"https://api.github.com/users/OlafvdSpek/repos","events_url":"https://api.github.com/users/OlafvdSpek/events{/privacy}","received_events_url":"https://api.github.com/users/OlafvdSpek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-05T11:29:13Z","updated_at":"2017-02-05T11:29:13Z","closed_at":null,"body":"```\r\ninline std::string_view read_until(std::string_view& v, char sep)\r\n{\r\n\tsize_t i = v.find(sep);\r\n\tstd::string_view ret = v.substr(0, i);\r\n\tv.remove_prefix(i == std::string_view::npos ? i : i + 1);\r\n\treturn ret;\r\n}\r\n```\r\n\r\nI find it quite useful, perhaps it could be added to the library."}}
{"actor":{"display_login":"OlafvdSpek"}}