uniStrExpand()

Returns a formatted string.

Synopsis

string uniStrExpand( string s, unsigned length);

Parameters

Parameter Description
s Formatting
length Length

Return value

Formatted string

Errors

Missing/incorrect arguments

Description

Returns a string of the length " length" that is formatted according to the string in s . The following format commands are available. They may, however, not be nested:

Parameter Comment
\\fill{xy} Padding of the string with "xy"
\\left{xy} "xy" is aligned left-justified in the string
\\right{xy} "xy" is aligned right-justified in the string
\\center{xy} "xy" is aligned centered in the string

Example

main()
{
  string fs;
  string s1 = "\\fill{ Текст}";
  unsigned l = 6;
  fs = uniStrExpand(s1, l);
  DebugN("The formatted string:", fs);
}

Assignment

Strings

Availability

CTRL