Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

MakeUtilities Class Reference

Contains only static methods for string manipulation. More...

#include <makeutilities.h>

List of all members.

Public Methods

 MakeUtilities ()
 Does nothing.

 ~MakeUtilities ()
 Does nothing.


Static Public Methods

char* strchrReverse (const char *buf, char c)
 Searches backwards from the end of the string after the first occurence of c. More...

char* getStrCopy (const char *buf, int extraBytes=0)
 Allocates a copy of buf with new. More...

char* changeExtension (const char *fileName, const char *ext)
 Changes the extension of a filename. More...


Detailed Description

Contains only static methods for string manipulation.

Author(s):
Philip Bergen
Version:
1.0

Definition at line 17 of file makeutilities.h.


Constructor & Destructor Documentation

MakeUtilities::MakeUtilities ( ) [inline]
 

Does nothing.

Definition at line 23 of file makeutilities.h.

MakeUtilities::~MakeUtilities ( ) [inline]
 

Does nothing.

Definition at line 30 of file makeutilities.h.


Member Function Documentation

char* MakeUtilities::changeExtension ( const char * fileName,
const char * ext ) [inline, static]
 

Changes the extension of a filename.

Parameters:
fileName   Any filename with or without the dot.
ext   Any extension without the dot.
Returns:
A string with an extension-altered filename and path. CALLER MUST DELETE!

Definition at line 84 of file makeutilities.h.

Referenced by OptionReader::defaults(), File::writeCompilation(), File::writeDot(), and File::writeObjects().

char* MakeUtilities::getStrCopy ( const char * buf,
int extraBytes = 0 ) [inline, static]
 

Allocates a copy of buf with new.

Caller must delete [] it!

Parameters:
buf   Any string.
extraBytes   Amount of extra bytes to allocate.
Returns:
A pointer to acopy or NULL if buf is NULL.

Definition at line 66 of file makeutilities.h.

Referenced by File::File(), changeExtension(), OptionReader::defaults(), File::disectFilename(), OptionReader::expandMacros(), File::findFile(), File::getIncludePath(), and OptionReader::graphExclude().

char* MakeUtilities::strchrReverse ( const char * buf,
char c ) [inline, static]
 

Searches backwards from the end of the string after the first occurence of c.

Parameters:
buf   Any string.
c   Any character.
Returns:
NULL if there was no instance of c in buf, else a pointer to a 'c' in buf.

Definition at line 42 of file makeutilities.h.

Referenced by changeExtension(), OptionReader::defaults(), File::disectFilename(), File::findFile(), File::stripPath(), and File::warpPath().


The documentation for this class was generated from the following file:
Generated at Mon May 14 00:45:45 2001 for Maker by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001