Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

TextLayout.d File Reference

Go to the source code of this file.

Functions

struct TextLayoutTemplate (T)
typedef TextLayoutTemplate (char) TextLayout

Variables

module mango io TextLayout


Detailed Description

Copyright (c) 2004 Kris Bell

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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Version:
Initial version, March 2004
Author:
Kris Anders F Bjorklund (Darwin patches)

Definition in file TextLayout.d.


Function Documentation

struct TextLayoutTemplate  ) 
 

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().

typedef TextLayoutTemplate char   ) 
 


Variable Documentation

module mango io TextLayout
 

Definition at line 40 of file TextLayout.d.


Generated on Sat Dec 24 17:28:36 2005 for Mango by  doxygen 1.4.0