{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/43513649","id":43513649,"diff_hunk":"@@ -2638,6 +2638,18 @@ auto lineSplitter(KeepTerminator keepTerm = KeepTerminator.no, Range)(Range r)\n     return LineSplitter!(keepTerm, Range)(r);\n }\n \n+///\n+@safe pure unittest\n+{\n+    string s = \"Hello\\nmy\\rname\\nis\";\n+    string[] split = splitLines(s);\n+\n+    int idx = 0;\n+    foreach(it; lineSplitter(s)) {","path":"std/string.d","position":11,"original_position":11,"commit_id":"863e89621057d3634a10e6da4e1cb580f4ad8baa","original_commit_id":"863e89621057d3634a10e6da4e1cb580f4ad8baa","user":{"login":"JackStouffer","id":680068,"avatar_url":"https://avatars.githubusercontent.com/u/680068?v=3","gravatar_id":"","url":"https://api.github.com/users/JackStouffer","html_url":"https://github.com/JackStouffer","followers_url":"https://api.github.com/users/JackStouffer/followers","following_url":"https://api.github.com/users/JackStouffer/following{/other_user}","gists_url":"https://api.github.com/users/JackStouffer/gists{/gist_id}","starred_url":"https://api.github.com/users/JackStouffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackStouffer/subscriptions","organizations_url":"https://api.github.com/users/JackStouffer/orgs","repos_url":"https://api.github.com/users/JackStouffer/repos","events_url":"https://api.github.com/users/JackStouffer/events{/privacy}","received_events_url":"https://api.github.com/users/JackStouffer/received_events","type":"User","site_admin":false},"body":"It compiles just fine and passes the tests, as `enumerate` takes any input range.","created_at":"2015-10-30T15:19:13Z","updated_at":"2015-10-30T15:19:13Z","html_url":"https://github.com/D-Programming-Language/phobos/pull/3780#discussion_r43513649","pull_request_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/43513649"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3780#discussion_r43513649"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780","id":49007405,"html_url":"https://github.com/D-Programming-Language/phobos/pull/3780","diff_url":"https://github.com/D-Programming-Language/phobos/pull/3780.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/3780.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3780","number":3780,"state":"open","locked":false,"title":"std.string.lineSplitter_unittest_example","user":{"login":"burner","id":13327,"avatar_url":"https://avatars.githubusercontent.com/u/13327?v=3","gravatar_id":"","url":"https://api.github.com/users/burner","html_url":"https://github.com/burner","followers_url":"https://api.github.com/users/burner/followers","following_url":"https://api.github.com/users/burner/following{/other_user}","gists_url":"https://api.github.com/users/burner/gists{/gist_id}","starred_url":"https://api.github.com/users/burner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burner/subscriptions","organizations_url":"https://api.github.com/users/burner/orgs","repos_url":"https://api.github.com/users/burner/repos","events_url":"https://api.github.com/users/burner/events{/privacy}","received_events_url":"https://api.github.com/users/burner/received_events","type":"User","site_admin":false},"body":"* added unittest doc examples for indexOf lastIndexOf","created_at":"2015-10-28T13:47:18Z","updated_at":"2015-10-30T15:19:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85ba683e7b4d0c1cf64cddd6ee88c2f416d7df9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3780/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/863e89621057d3634a10e6da4e1cb580f4ad8baa","head":{"label":"burner:std.string.lineSplitter_unittest_example","ref":"std.string.lineSplitter_unittest_example","sha":"863e89621057d3634a10e6da4e1cb580f4ad8baa","user":{"login":"burner","id":13327,"avatar_url":"https://avatars.githubusercontent.com/u/13327?v=3","gravatar_id":"","url":"https://api.github.com/users/burner","html_url":"https://github.com/burner","followers_url":"https://api.github.com/users/burner/followers","following_url":"https://api.github.com/users/burner/following{/other_user}","gists_url":"https://api.github.com/users/burner/gists{/gist_id}","starred_url":"https://api.github.com/users/burner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burner/subscriptions","organizations_url":"https://api.github.com/users/burner/orgs","repos_url":"https://api.github.com/users/burner/repos","events_url":"https://api.github.com/users/burner/events{/privacy}","received_events_url":"https://api.github.com/users/burner/received_events","type":"User","site_admin":false},"repo":{"id":7882025,"name":"phobos","full_name":"burner/phobos","owner":{"login":"burner","id":13327,"avatar_url":"https://avatars.githubusercontent.com/u/13327?v=3","gravatar_id":"","url":"https://api.github.com/users/burner","html_url":"https://github.com/burner","followers_url":"https://api.github.com/users/burner/followers","following_url":"https://api.github.com/users/burner/following{/other_user}","gists_url":"https://api.github.com/users/burner/gists{/gist_id}","starred_url":"https://api.github.com/users/burner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burner/subscriptions","organizations_url":"https://api.github.com/users/burner/orgs","repos_url":"https://api.github.com/users/burner/repos","events_url":"https://api.github.com/users/burner/events{/privacy}","received_events_url":"https://api.github.com/users/burner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/burner/phobos","description":"The standard library of the D programming language","fork":true,"url":"https://api.github.com/repos/burner/phobos","forks_url":"https://api.github.com/repos/burner/phobos/forks","keys_url":"https://api.github.com/repos/burner/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/burner/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/burner/phobos/teams","hooks_url":"https://api.github.com/repos/burner/phobos/hooks","issue_events_url":"https://api.github.com/repos/burner/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/burner/phobos/events","assignees_url":"https://api.github.com/repos/burner/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/burner/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/burner/phobos/tags","blobs_url":"https://api.github.com/repos/burner/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/burner/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/burner/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/burner/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/burner/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/burner/phobos/languages","stargazers_url":"https://api.github.com/repos/burner/phobos/stargazers","contributors_url":"https://api.github.com/repos/burner/phobos/contributors","subscribers_url":"https://api.github.com/repos/burner/phobos/subscribers","subscription_url":"https://api.github.com/repos/burner/phobos/subscription","commits_url":"https://api.github.com/repos/burner/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/burner/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/burner/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/burner/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/burner/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/burner/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/burner/phobos/merges","archive_url":"https://api.github.com/repos/burner/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/burner/phobos/downloads","issues_url":"https://api.github.com/repos/burner/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/burner/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/burner/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/burner/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/burner/phobos/labels{/name}","releases_url":"https://api.github.com/repos/burner/phobos/releases{/id}","created_at":"2013-01-29T00:26:08Z","updated_at":"2015-03-18T19:53:04Z","pushed_at":"2015-10-29T14:45:56Z","git_url":"git://github.com/burner/phobos.git","ssh_url":"git@github.com:burner/phobos.git","clone_url":"https://github.com/burner/phobos.git","svn_url":"https://github.com/burner/phobos","homepage":"dlang.org/phobos","size":48256,"stargazers_count":0,"watchers_count":0,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"68f724020d28bd44ae8ffef858d37c8b9e2b7afe","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257084,"name":"phobos","full_name":"D-Programming-Language/phobos","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/phobos","description":"The standard library of the D programming language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/phobos","forks_url":"https://api.github.com/repos/D-Programming-Language/phobos/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/phobos/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/phobos/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/phobos/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/phobos/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/phobos/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/phobos/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/phobos/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/phobos/releases{/id}","created_at":"2011-01-15T07:00:06Z","updated_at":"2015-10-27T11:04:28Z","pushed_at":"2015-10-30T14:53:51Z","git_url":"git://github.com/D-Programming-Language/phobos.git","ssh_url":"git@github.com:D-Programming-Language/phobos.git","clone_url":"https://github.com/D-Programming-Language/phobos.git","svn_url":"https://github.com/D-Programming-Language/phobos","homepage":"dlang.org/phobos","size":93576,"stargazers_count":638,"watchers_count":638,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":426,"mirror_url":null,"open_issues_count":70,"forks":426,"open_issues":70,"watchers":638,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3780"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3780"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3780/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3780/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/863e89621057d3634a10e6da4e1cb580f4ad8baa"}}}}