Axaptapedia is now maintained by AgileCadence For more information please click here.

StrLfix

From Axaptapedia
Jump to: navigation, search

Syntax[edit]

<xpp> str strLfix(str _str, int _length [, char _char]) </xpp>

Description[edit]

Adds the character _char after string _str to obtain a string with a length of _length.

Default filler character is ' '.

If _str is longer than _length, this returns the first _length characters of _str.

Example[edit]

<xpp> strLfix('aaa', 5, '_') //returns the string 'aaa__'.

strLfix('12345', 3) //returns the string '123'. </xpp>

See also[edit]