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

StrRfix

From Axaptapedia
Jump to: navigation, search

Syntax[edit]

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

Description[edit]

Adds the character _char before 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> strRfix('aaa', 5, '_') //returns the string '__aaa'.

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

See also[edit]