Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/magnus/back_end/general/include/Chars.h File Reference

#include <string.h>
#include "RefCounter.h"
#include "ObjectOf.h"

Go to the source code of this file.

Compounds

class  CharsRep
 Representation class for Chars. More...

class  Chars
 Chars is a char* which knows its length, wrapped up as a user class. More...


Functions

Chars ordinalPostfix (int num)
 returns ordinal postfix for given number, i.e. "st", "nd", "rd" or "th".

Chars encodeSpaces (const Chars &s)
 Encodes all spaces with escape char. More...

Chars decodeSpaces (const Chars &s)
 Decodes string restoring spaces.


Function Documentation

Chars ordinalPostfix ( int num )
 

returns ordinal postfix for given number, i.e. "st", "nd", "rd" or "th".

Chars encodeSpaces ( const Chars & s )
 

Encodes all spaces with escape char.

The original escape char is encoded with double escape.

Chars decodeSpaces ( const Chars & s )
 

Decodes string restoring spaces.


Generated at Tue Jun 19 09:49:44 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001