![]() ![]() ![]() By default, the string is left-padded, resulting in a right-aligned string. If not, the inserted string will be padded with spaces. Width the inserted string must have at least Width characters. This can only take effect if the Width element is also specified. The default behaviour is to right-align inserted text. '-' tells Format to left-align the inserted text. If index is omitted, then the zeroth argument is taken. Index ':' takes the Index-th element in the argument array as the element to insert. ![]() If you want to insert a literal % character, then you must insert two of them : %%. The meaning of the different elements are shown below: '%' starts the placeholder. A placeholder looks as follows: '%' ':' ] ArgTypeĮlements between single quotes must be typed as shown without the quotes, and elements between square brackets are optional. Declarationįormat replaces all placeholders in Fmt with the arguments passed in Args and returns the resulting string. Format įormat a string with given arguments. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |