{"action":"created","issue":{"url":"https://api.github.com/repos/danielstjules/Stringy/issues/87","labels_url":"https://api.github.com/repos/danielstjules/Stringy/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/danielstjules/Stringy/issues/87/comments","events_url":"https://api.github.com/repos/danielstjules/Stringy/issues/87/events","html_url":"https://github.com/danielstjules/Stringy/pull/87","id":67463184,"number":87,"title":"Methods to work with SubStrings, find Offsets and Evaluate String Contents","user":{"login":"TCB13","id":6315832,"avatar_url":"https://avatars.githubusercontent.com/u/6315832?v=3","gravatar_id":"","url":"https://api.github.com/users/TCB13","html_url":"https://github.com/TCB13","followers_url":"https://api.github.com/users/TCB13/followers","following_url":"https://api.github.com/users/TCB13/following{/other_user}","gists_url":"https://api.github.com/users/TCB13/gists{/gist_id}","starred_url":"https://api.github.com/users/TCB13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TCB13/subscriptions","organizations_url":"https://api.github.com/users/TCB13/orgs","repos_url":"https://api.github.com/users/TCB13/repos","events_url":"https://api.github.com/users/TCB13/events{/privacy}","received_events_url":"https://api.github.com/users/TCB13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-09T22:22:23Z","updated_at":"2015-05-10T18:50:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/danielstjules/Stringy/pulls/87","html_url":"https://github.com/danielstjules/Stringy/pull/87","diff_url":"https://github.com/danielstjules/Stringy/pull/87.diff","patch_url":"https://github.com/danielstjules/Stringy/pull/87.patch"},"body":"Added multiple methods to work with substrings, find offsets and evaluate string contents. fixes #86\r\n\r\n`````\r\n/**\r\n* Returns the offset/index of the last occurance of $substr in the string.\r\n* In case $substr is not a substring of the string, returns false.\r\n*\r\n* @param string $substr substring\r\n* @param int $offset\r\n* @return int|bool\r\n*/\r\npublic function offsetOfSubstr($substr, $offset = 0);\r\n\r\n/**\r\n * Returns the offset/index of the last occurance of $substr in the string.\r\n * In case $substr is not a substring of the string, returns false.\r\n *\r\n * @param string $substr substring\r\n * @param int $offset\r\n * @return int|bool\r\n */\r\npublic function offsetOfLastSubstr($substr, $offset = 0);\r\n\r\n/**\r\n* Returns true if the string is empty (doesn't contain any char),\r\n* false otherwise.\r\n*\r\n* @return bool Whether or not $str is empty (no chars)\r\n*/\r\npublic function isEmpty();\r\n\r\n/**\r\n * Returns true if the string contains an integer value, false\r\n * otherwise.\r\n *\r\n * @return bool Whether or not $str contains an integer value\r\n */\r\npublic static function containsInt();\r\n\r\n/**\r\n * Returns true if the string contains an float value, false\r\n * otherwise.\r\n *\r\n * @return bool Whether or not $str contains an float value\r\n */\r\npublic static function constainsFloat();\r\n\r\n /**\r\n * Gets the substring after the first occurrence of a separator.\r\n * If no match is found returns false.\r\n * \r\n * @param string $separator\r\n * @return string|bool\r\n */\r\npublic function substringAfterFirst($separator);\r\n\r\n/**\r\n * Gets the substring after the last occurrence of a separator.\r\n * If no match is found returns false.\r\n * \r\n * @param string $separator\r\n * @return string|bool\r\n */\r\npublic function substringAfterLast($separator);\r\n\r\n/**\r\n * Gets the substring before the first occurrence of a separator.\r\n * If no match is found returns false.\r\n * \r\n * @param string $separator\r\n * @return string|bool\r\n */\r\npublic function substringBeforeFirst($separator);\r\n\r\n/**\r\n * Gets the substring before the last occurrence of a separator.\r\n * If no match is found returns false.\r\n * \r\n * @param string $separator\r\n * @return string|bool\r\n */\r\npublic function substringBeforeLast($separator);\r\n``````"},"comment":{"url":"https://api.github.com/repos/danielstjules/Stringy/issues/comments/100680015","html_url":"https://github.com/danielstjules/Stringy/pull/87#issuecomment-100680015","issue_url":"https://api.github.com/repos/danielstjules/Stringy/issues/87","id":100680015,"user":{"login":"TCB13","id":6315832,"avatar_url":"https://avatars.githubusercontent.com/u/6315832?v=3","gravatar_id":"","url":"https://api.github.com/users/TCB13","html_url":"https://github.com/TCB13","followers_url":"https://api.github.com/users/TCB13/followers","following_url":"https://api.github.com/users/TCB13/following{/other_user}","gists_url":"https://api.github.com/users/TCB13/gists{/gist_id}","starred_url":"https://api.github.com/users/TCB13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TCB13/subscriptions","organizations_url":"https://api.github.com/users/TCB13/orgs","repos_url":"https://api.github.com/users/TCB13/repos","events_url":"https://api.github.com/users/TCB13/events{/privacy}","received_events_url":"https://api.github.com/users/TCB13/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T18:50:07Z","updated_at":"2015-05-10T18:50:07Z","body":"@danielstjules I really would like some feedback on the last message to decide what to do. Thanks."}}