{"action":"created","issue":{"url":"https://api.github.com/repos/cinder/Cinder/issues/1495","repository_url":"https://api.github.com/repos/cinder/Cinder","labels_url":"https://api.github.com/repos/cinder/Cinder/issues/1495/labels{/name}","comments_url":"https://api.github.com/repos/cinder/Cinder/issues/1495/comments","events_url":"https://api.github.com/repos/cinder/Cinder/issues/1495/events","html_url":"https://github.com/cinder/Cinder/issues/1495","id":164728696,"number":1495,"title":"split string, strange behaviour when separator is a string","user":{"login":"dimitre","id":58289,"avatar_url":"https://avatars.githubusercontent.com/u/58289?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitre","html_url":"https://github.com/dimitre","followers_url":"https://api.github.com/users/dimitre/followers","following_url":"https://api.github.com/users/dimitre/following{/other_user}","gists_url":"https://api.github.com/users/dimitre/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitre/subscriptions","organizations_url":"https://api.github.com/users/dimitre/orgs","repos_url":"https://api.github.com/users/dimitre/repos","events_url":"https://api.github.com/users/dimitre/events{/privacy}","received_events_url":"https://api.github.com/users/dimitre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-10T18:52:00Z","updated_at":"2016-07-10T18:58:22Z","closed_at":null,"body":"I'm trying to use a string as a separator, but it seems to be behaving as an array of chars\r\nand it is actually splitting even if the second string isn't contained in the first.\r\nLet me know if I'm missing something\r\nThank you!\r\n\r\n```c++\r\nvector<string> spacers = split( \"primeira\", \"spacer\" );\r\nfor (auto & s : spacers) {\r\n\tcout << s << endl;\r\n}\r\n```\r\nresult:\r\n```\r\n\r\n\r\nim\r\ni\r\n\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/cinder/Cinder/issues/comments/231604852","html_url":"https://github.com/cinder/Cinder/issues/1495#issuecomment-231604852","issue_url":"https://api.github.com/repos/cinder/Cinder/issues/1495","id":231604852,"user":{"login":"gaborpapp","id":203532,"avatar_url":"https://avatars.githubusercontent.com/u/203532?v=3","gravatar_id":"","url":"https://api.github.com/users/gaborpapp","html_url":"https://github.com/gaborpapp","followers_url":"https://api.github.com/users/gaborpapp/followers","following_url":"https://api.github.com/users/gaborpapp/following{/other_user}","gists_url":"https://api.github.com/users/gaborpapp/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborpapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborpapp/subscriptions","organizations_url":"https://api.github.com/users/gaborpapp/orgs","repos_url":"https://api.github.com/users/gaborpapp/repos","events_url":"https://api.github.com/users/gaborpapp/events{/privacy}","received_events_url":"https://api.github.com/users/gaborpapp/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T18:58:22Z","updated_at":"2016-07-10T18:58:22Z","body":"This is normal behaviour, since each character in the second string is a separator."}}
{"actor":{"display_login":"gaborpapp"}}