mi32/mistring.h File Reference

<mi32/mistring.h> More...

#include <mi32/charencoding.h>
Include dependency graph for mistring.h:

Go to the source code of this file.

Classes

class  MISTRING
 General string class. More...

Defines

#define CLASSLIBEXPORT   MI_DLLCLASSIMPORT

Enumerations

enum  STR_OP {
  STR_Clear = 0, STR_BoolL = 1, STR_BoolM = 2, STR_BoolU = 3,
  STR_FillA = 4, STR_FillB = 5, STR_FillD = 6, STR_Sep000 = 7,
  STR_SepNone = 8, STR_Strip0 = 9, STR_FillSubs = 10, STR_FltE = 11,
  STR_FltF = 12, STR_FltG = 13, STR_FltM = 60, STR_Bin = 14,
  STR_Dec = 15, STR_Hex = 16, STR_FillSp = 17, STR_Fill0 = 18,
  STR_PrecA = 19, STR_Prec0 = 20, STR_Prec1 = 21, STR_Prec2 = 22,
  STR_Prec3 = 23, STR_Prec4 = 24, STR_Prec5 = 25, STR_Prec6 = 26,
  STR_Prec7 = 27, STR_Prec8 = 28, STR_Prec9 = 29, STR_Prec10 = 30,
  STR_Prec11 = 31, STR_Prec12 = 32, STR_Prec13 = 33, STR_Prec14 = 34,
  STR_Prec15 = 35, STR_Prec16 = 36, STR_Width0 = 40, STR_Width1 = 41,
  STR_Width2 = 42, STR_Width3 = 43, STR_Width4 = 44, STR_Width5 = 45,
  STR_Width6 = 46, STR_Width7 = 47, STR_Width8 = 48, STR_Width9 = 49,
  STR_Width10 = 50, STR_Width11 = 51, STR_Width12 = 52, STR_Width13 = 53,
  STR_Width14 = 54, STR_Width15 = 55
}

Functions

bool operator!= (const MISTRING &lhs, const MISTRING &rhs)
MISTRING operator+ (const MISTRING &lhs, const MISTRING &rhs)
bool operator< (const MISTRING &lhs, const MISTRING &rhs)
bool operator<= (const MISTRING &lhs, const MISTRING &rhs)
bool operator== (const MISTRING &lhs, const MISTRING &rhs)
bool operator> (const MISTRING &lhs, const MISTRING &rhs)
bool operator>= (const MISTRING &lhs, const MISTRING &rhs)
STR_FILL STR_Fill (MIUNICODE fill)
STR_PAD STR_Pad (MIUNICODE c, int numchars)
STR_PREC STR_Prec (int precision)
STR_WIDTH STR_Width (int width)

Detailed Description

<mi32/mistring.h>

MISTRING class definition


Define Documentation

#define CLASSLIBEXPORT   MI_DLLCLASSIMPORT

Enumeration Type Documentation

enum STR_OP

Convenience MISTRING operation and formatting enumerations for use with << operator.

Enumerator:
STR_Clear 

Clear the string.

STR_BoolL 

Format bool as localized no/yes (default).

STR_BoolM 

Format bool as localized No/Yes.

STR_BoolU 

Format bool as localized NO/YES.

STR_FillA 

Fill/pad AFTER value if width more than needed.

STR_FillB 

Fill/pad BEFORE value if width more than needed.

STR_FillD 

Fill/pad default (after strings, before numerics) (default).

STR_Sep000 

Include thousands separator when formatting numbers.

STR_SepNone 

No thousands separator for numbers (default).

STR_Strip0 

Strip trailing 0's after decimal point for next formatted value ('fixed' and 'general').

STR_FillSubs 

Fill substitution placeholders with '???' to avoid unwanted formatting.

STR_FltE 

Set floating format to 'exponential'.

STR_FltF 

Set floating format to 'fixed'.

STR_FltG 

Set floating format to 'general'.

STR_FltM 

Set floating format to 'max precision'.

STR_Bin 

Set integer base to 'binary' (2).

STR_Dec 

Set integer base to 'decimal' (10).

STR_Hex 

Set integer base to 'hexadecimal' (16).

STR_FillSp 

Set fill character to ' ' (space).

STR_Fill0 

Set fill character to '0'.

STR_PrecA 

Set floating precision to 'automatic'.

STR_Prec0 

Set floating precision to 0.

STR_Prec1 

Set floating precision to 1.

STR_Prec2 
STR_Prec3 
STR_Prec4 
STR_Prec5 
STR_Prec6 
STR_Prec7 
STR_Prec8 
STR_Prec9 
STR_Prec10 
STR_Prec11 
STR_Prec12 
STR_Prec13 
STR_Prec14 
STR_Prec15 
STR_Prec16 

Set floating precision to 16.

STR_Width0 

Set width to minimum.

STR_Width1 

Set minimum width to 1 for next formatted value only.

STR_Width2 

Set minimum width to 2 for next formatted value only.

STR_Width3 
STR_Width4 
STR_Width5 
STR_Width6 
STR_Width7 
STR_Width8 
STR_Width9 
STR_Width10 
STR_Width11 
STR_Width12 
STR_Width13 
STR_Width14 
STR_Width15 

Function Documentation

bool operator!= ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Inequality.

MISTRING operator+ ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Concatenation of MISTRINGs.

bool operator< ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Less than.

bool operator<= ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Less than or equal.

bool operator== ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Equality.

bool operator> ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Greater than.

bool operator>= ( const MISTRING lhs,
const MISTRING rhs 
) [inline]

Greater than or equal.

STR_FILL STR_Fill ( MIUNICODE  fill  )  [inline]

String formatting helper to set fill character via << operator.

Use as str << STR_Fill(fill).

STR_PAD STR_Pad ( MIUNICODE  c,
int  numchars 
) [inline]

String formatting helper to pad specified number of characters.

Use as str << STR_Pad(c,numchars).

Parameters:
c Character to pad with
numchars Number of characters to pad
STR_PREC STR_Prec ( int  precision  )  [inline]

String formatting helper to set precision via << operator.

Use as str << STR_Prec(precision).

STR_WIDTH STR_Width ( int  width  )  [inline]

String formatting helper to set width via << operator.

Use as str << STR_Width(width).


Generated on Sun Oct 7 21:27:28 2012 for TNTsdk 2012 by  doxygen 1.6.1