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

TextLayout.d File Reference

Go to the source code of this file.

Functions

class TextLayout (Type)
typedef TextLayout (char) LayoutChar
typedef TextLayout (wchar) LayoutWChar
typedef TextLayout (dchar) LayoutDChar

Variables

module mango io TextLayout
import mango io Exception


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

class TextLayout Type   ) 
 

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.

// create a TextLayout instance TextLayout tl = new TextLayout (256); // write text to Stdout char[] arg1 = "one"; char[] arg2 = "two"; Stdout (tl.format ("%2 %1", arg1, arg2)); // or access the content, post processing ... char[] text = tl.content;

The index numbers range from one through nine. Note also that this class is stateful, and is therefore not shareable across multiple threads.

Set the maximum buffer length

Address formatted output as a char[]

layout a set of arguments

layout a set of arguments

Definition at line 69 of file TextLayout.d.

References Exception, and TextLayout.

typedef TextLayout char   ) 
 

typedef TextLayout wchar   ) 
 

typedef TextLayout dchar   ) 
 


Variable Documentation

module mango io TextLayout
 

Definition at line 40 of file TextLayout.d.

Referenced by TextLayout().

import mango io Exception
 

Definition at line 42 of file TextLayout.d.


Generated on Sun Mar 6 00:31:03 2005 for Mango by doxygen 1.3.6