Go to the source code of this file.
Functions | |
struct | TextLayoutTemplate (T) |
typedef | TextLayoutTemplate (char) TextLayout |
Variables | |
module mango io | TextLayout |
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for damages of any kind arising from the use of this software.
Permission is hereby granted to anyone to use this software for any purpose, including commercial applications, and to alter it and/or redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment within documentation of said product would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any distribution of the source.
4. Derivative works are permitted, but they must carry this notice in full and credit the original source.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Definition in file TextLayout.d.
|
Arranges text strings in order, using indices to specify where each particular argument should be positioned within the text. This is handy for collating I18N components.
// write ordered text to Stdout char[64] dst; Stdout (TextLayout (dst, "%2 %1", "one", "two")); The index numbers range from one through nine. TextLayout defaults to char[], but you can instantiate the template for any other type. Definition at line 60 of file TextLayout.d. References Exception, and TextLayoutTemplate(). Referenced by TextLayoutTemplate(). |
|
|
|
Definition at line 40 of file TextLayout.d. |