Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.

Commit

Permalink
Removed pad_leading_chars() function - functional duplicate of `str…
Browse files Browse the repository at this point in the history
…ing_prefix_to_length`
  • Loading branch information
tomhaskell committed Nov 10, 2015
1 parent 59629ec commit 3fb54d7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions string.axi
Original file line number Diff line number Diff line change
Expand Up @@ -846,20 +846,4 @@ define_function char[STRING_RETURN_SIZE_LIMIT] substring(char a[],
return substr(a, start, end-start+1);
}

define_function CHAR[STRING_RETURN_SIZE_LIMIT] pad_leading_chars(char a[], char pad,
integer count)
{
stack_var char ret[STRING_RETURN_SIZE_LIMIT]

ret = a;
if (count == 0) {
return '' // Emergency Exit
}
while(length_string(ret) < count){
ret = "pad, ret"
}

return ret;
}

#end_if

0 comments on commit 3fb54d7

Please sign in to comment.