~kb/ncl

3fb54d75627c3021b6eeca494e06aa780eecd711 — Tom Haskell 8 years ago 59629ec
Removed `pad_leading_chars()` function - functional duplicate of `string_prefix_to_length`
1 files changed, 0 insertions(+), 16 deletions(-)

M string.axi
M string.axi => string.axi +0 -16
@@ 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