{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/comments/76919916","id":76919916,"diff_hunk":"@@ -220,6 +230,64 @@ public bool EndsWith(string text)\n             return true;\n         }\n \n+        public StringBuffer Substring(int startIndex, int maxCount)\n+        {\n+            if (startIndex < 0)\n+            {\n+                throw new ArgumentOutOfRangeException(nameof(startIndex));\n+            }\n+            if (maxCount < 0)\n+            {\n+                throw new ArgumentOutOfRangeException(nameof(maxCount));\n+            }\n+            if (maxCount == 0)\n+            {\n+                return Empty;\n+            }\n+            var result = new StringBuffer(_buffer.Length);\n+            int skipCount = startIndex;\n+            int copyCount = maxCount;\n+            for (int i = 0; i < _index; i++)\n+            {\n+                if (skipCount > 0)\n+                {\n+                    skipCount -= _buffer[i].Length;\n+                    if (skipCount < 0)\n+                    {\n+                        result._index = 1;\n+                        if (_buffer[i].Length + skipCount > copyCount)\n+                        {\n+                            result._buffer[0] = _buffer[i].Substring(-skipCount, copyCount);","path":"src/Microsoft.DocAsCode.MarkdownLite/StringBuffer.cs","position":55,"original_position":55,"commit_id":"99269dd40ce742b6d0c38e4b6e74be3419f15b71","original_commit_id":"99269dd40ce742b6d0c38e4b6e74be3419f15b71","user":{"login":"superyyrrzz","id":3831744,"avatar_url":"https://avatars.githubusercontent.com/u/3831744?v=3","gravatar_id":"","url":"https://api.github.com/users/superyyrrzz","html_url":"https://github.com/superyyrrzz","followers_url":"https://api.github.com/users/superyyrrzz/followers","following_url":"https://api.github.com/users/superyyrrzz/following{/other_user}","gists_url":"https://api.github.com/users/superyyrrzz/gists{/gist_id}","starred_url":"https://api.github.com/users/superyyrrzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superyyrrzz/subscriptions","organizations_url":"https://api.github.com/users/superyyrrzz/orgs","repos_url":"https://api.github.com/users/superyyrrzz/repos","events_url":"https://api.github.com/users/superyyrrzz/events{/privacy}","received_events_url":"https://api.github.com/users/superyyrrzz/received_events","type":"User","site_admin":false},"body":">-skipCount [](start = 69, length = 10)\r\n\r\nseems wrong? skipCount already -= _buffer[i].Length","created_at":"2016-08-31T03:39:22Z","updated_at":"2016-08-31T03:39:22Z","html_url":"https://github.com/dotnet/docfx/pull/647#discussion_r76919916","pull_request_url":"https://api.github.com/repos/dotnet/docfx/pulls/647","_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments/76919916"},"html":{"href":"https://github.com/dotnet/docfx/pull/647#discussion_r76919916"},"pull_request":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/647"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/647","id":83218221,"html_url":"https://github.com/dotnet/docfx/pull/647","diff_url":"https://github.com/dotnet/docfx/pull/647.diff","patch_url":"https://github.com/dotnet/docfx/pull/647.patch","issue_url":"https://api.github.com/repos/dotnet/docfx/issues/647","number":647,"state":"open","locked":false,"title":"add substring for string buffer.","user":{"login":"vwxyzh","id":2705828,"avatar_url":"https://avatars.githubusercontent.com/u/2705828?v=3","gravatar_id":"","url":"https://api.github.com/users/vwxyzh","html_url":"https://github.com/vwxyzh","followers_url":"https://api.github.com/users/vwxyzh/followers","following_url":"https://api.github.com/users/vwxyzh/following{/other_user}","gists_url":"https://api.github.com/users/vwxyzh/gists{/gist_id}","starred_url":"https://api.github.com/users/vwxyzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vwxyzh/subscriptions","organizations_url":"https://api.github.com/users/vwxyzh/orgs","repos_url":"https://api.github.com/users/vwxyzh/repos","events_url":"https://api.github.com/users/vwxyzh/events{/privacy}","received_events_url":"https://api.github.com/users/vwxyzh/received_events","type":"User","site_admin":false},"body":"@chenkennt @hellosnow @ansyral @qinezh @superyyrrzz @928PJY ","created_at":"2016-08-30T07:04:25Z","updated_at":"2016-08-31T03:39:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54219b62266407740cd88b3427bdbe3a26addb3d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/docfx/pulls/647/commits","review_comments_url":"https://api.github.com/repos/dotnet/docfx/pulls/647/comments","review_comment_url":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/docfx/issues/647/comments","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/99269dd40ce742b6d0c38e4b6e74be3419f15b71","head":{"label":"dotnet:md2","ref":"md2","sha":"99269dd40ce742b6d0c38e4b6e74be3419f15b71","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38007053,"name":"docfx","full_name":"dotnet/docfx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":false,"url":"https://api.github.com/repos/dotnet/docfx","forks_url":"https://api.github.com/repos/dotnet/docfx/forks","keys_url":"https://api.github.com/repos/dotnet/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docfx/teams","hooks_url":"https://api.github.com/repos/dotnet/docfx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docfx/events","assignees_url":"https://api.github.com/repos/dotnet/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docfx/tags","blobs_url":"https://api.github.com/repos/dotnet/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docfx/languages","stargazers_url":"https://api.github.com/repos/dotnet/docfx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docfx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docfx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docfx/subscription","commits_url":"https://api.github.com/repos/dotnet/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docfx/merges","archive_url":"https://api.github.com/repos/dotnet/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docfx/downloads","issues_url":"https://api.github.com/repos/dotnet/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docfx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docfx/deployments","created_at":"2015-06-24T19:43:53Z","updated_at":"2016-08-30T11:29:16Z","pushed_at":"2016-08-31T02:29:06Z","git_url":"git://github.com/dotnet/docfx.git","ssh_url":"git@github.com:dotnet/docfx.git","clone_url":"https://github.com/dotnet/docfx.git","svn_url":"https://github.com/dotnet/docfx","homepage":"http://dotnet.github.io/docfx/","size":125868,"stargazers_count":422,"watchers_count":422,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":115,"mirror_url":null,"open_issues_count":64,"forks":115,"open_issues":64,"watchers":422,"default_branch":"dev"}},"base":{"label":"dotnet:dev","ref":"dev","sha":"93eb8cb48678c9b4f4c08af6e98692d52781b366","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38007053,"name":"docfx","full_name":"dotnet/docfx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":false,"url":"https://api.github.com/repos/dotnet/docfx","forks_url":"https://api.github.com/repos/dotnet/docfx/forks","keys_url":"https://api.github.com/repos/dotnet/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docfx/teams","hooks_url":"https://api.github.com/repos/dotnet/docfx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docfx/events","assignees_url":"https://api.github.com/repos/dotnet/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docfx/tags","blobs_url":"https://api.github.com/repos/dotnet/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docfx/languages","stargazers_url":"https://api.github.com/repos/dotnet/docfx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docfx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docfx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docfx/subscription","commits_url":"https://api.github.com/repos/dotnet/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docfx/merges","archive_url":"https://api.github.com/repos/dotnet/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docfx/downloads","issues_url":"https://api.github.com/repos/dotnet/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docfx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docfx/deployments","created_at":"2015-06-24T19:43:53Z","updated_at":"2016-08-30T11:29:16Z","pushed_at":"2016-08-31T02:29:06Z","git_url":"git://github.com/dotnet/docfx.git","ssh_url":"git@github.com:dotnet/docfx.git","clone_url":"https://github.com/dotnet/docfx.git","svn_url":"https://github.com/dotnet/docfx","homepage":"http://dotnet.github.io/docfx/","size":125868,"stargazers_count":422,"watchers_count":422,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":115,"mirror_url":null,"open_issues_count":64,"forks":115,"open_issues":64,"watchers":422,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/647"},"html":{"href":"https://github.com/dotnet/docfx/pull/647"},"issue":{"href":"https://api.github.com/repos/dotnet/docfx/issues/647"},"comments":{"href":"https://api.github.com/repos/dotnet/docfx/issues/647/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/647/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/647/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/docfx/statuses/99269dd40ce742b6d0c38e4b6e74be3419f15b71"}}}}
{"actor":{"display_login":"superyyrrzz"}}