When looking to see if there is a starts_with in the Drupal-7.x-1.2 build, I couldn't find it. Then I decided to compare what functions were in which version. Found some differences. Would make the documentation simpler to keep track of this should they both have the same functions. And this would help expediate moving code which are dependant on this to the next version of Drupal, which is a goal for any API module, in my mind.

Below are my command line executions to see what functions exist. Comments have been manually removed from the 6.x one.

$ grep function parsing_api-6.x-1.9/parsing_api.module
function starts_with($haystack, $needle)
function ends_with($haystack, $needle)
function surround($surround_this, $withthis = '', $andthis = '', $when_empty = '', $surround_when_empty_as_well = FALSE, $check_plain = TRUE)
function multi_between($this, $that, $inthat, $check_plain = TRUE)
function after($this, $inthat, $check_plain = TRUE)
function after_last($this, $inthat, $check_plain = TRUE)
function after_pattern($this_pattern, $inthat, $check_plain = TRUE)
function after_last_pattern($this_pattern, $inthat, $check_plain = TRUE)
function before($this, $inthat, $check_plain = TRUE)
function before_last($this, $inthat, $check_plain = TRUE)
function before_pattern($this_pattern, $inthat, $check_plain = TRUE)
function before_last_pattern($this_pattern, $inthat, $check_plain = TRUE)
function between($this, $that, $inthat, $check_plain = TRUE)
function between_last($this, $that, $inthat, $check_plain = TRUE)
function between_pattern($this_pattern, $that_pattern, $inthat, $check_plain = TRUE)
function between_last_pattern($this_pattern, $that_pattern, $inthat, $check_plain = TRUE)
function strrevpos($haystack, $needle)
if (!function_exists('printr'))
function printr($arr)

$ grep function parsing_api-7.x-1.2/parsing_api.module
function multi_between($this, $that, $inthat, $check_plain = TRUE)
function after($this, $inthat, $check_plain = TRUE)
function after_last($this, $inthat, $check_plain = TRUE)
function before($this, $inthat, $check_plain = TRUE)
function before_last($this, $inthat, $check_plain = TRUE)
function between($this, $that, $inthat, $check_plain = TRUE)
function between_last($this, $that, $inthat, $check_plain = TRUE)
function strrevpos($instr, $needle)
if (!function_exists('printr'))
function printr($arr)

Comments

crystaldawn’s picture

Title: Consistency between versions » Missing a lot of the functions from D6 version!
Assigned: Unassigned » crystaldawn
Category: task » bug
Priority: Normal » Critical

Errrrrrrrrrrrrrm. what the heck lol. I totally intended for ALL the functions in the D6 version to be in the D7 version. I took the git version right off the site myself. Git must have an old version of D6 in the HEAD if it's missing those! I'll have to get that all straightened out somehow. These extra functions are so totally suppose to be in D7 and I didnt even notice they were missing. I'm goin to upload a new one now to GIT that has all of these and publish it as a new release.

Thanx for noticing these missing functions. It'll be fixed in a bit.

crystaldawn’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.