_stringf.h File Reference

#include <string>
#include <cstdarg>
#include <unistd.h>

Go to the source code of this file.

Defines

#define ETL_STRPRINTF_MAX_LENGTH   (800)
#define ETL_NO_THROW   throw()
#define ETL_NO_VSTRSCANF
#define ETL_UNSAFE_STRPRINTF   (true)
#define stratof(X)   (atof((X).c_str()))
#define stratoi(X)   (atoi((X).c_str()))

Functions

_ETL_END_CDECLS _ETL_BEGIN_NAMESPACE
std::string 
vstrprintf (const char *format, va_list args)
std::string strprintf (const char *format,...)
std::string basename (const std::string &str)
std::string dirname (const std::string &str)
bool is_absolute_path (const std::string &path)
std::string unix_to_local_path (const std::string &path)
std::string current_working_directory ()
std::string get_root_from_path (std::string path)
std::string remove_root_from_path (std::string path)
std::string cleanup_path (std::string path)
std::string absolute_path (std::string path)
std::string relative_path (std::string curr_path, std::string dest_path)


Define Documentation

#define ETL_STRPRINTF_MAX_LENGTH   (800)
 

Definition at line 38 of file _stringf.h.

Referenced by vstrprintf().

#define ETL_NO_THROW   throw()
 

Definition at line 48 of file _stringf.h.

#define ETL_NO_VSTRSCANF
 

Definition at line 68 of file _stringf.h.

#define ETL_UNSAFE_STRPRINTF   (true)
 

#define stratof  )     (atof((X).c_str()))
 

Definition at line 148 of file _stringf.h.

#define stratoi  )     (atoi((X).c_str()))
 

Definition at line 149 of file _stringf.h.


Function Documentation

_ETL_END_CDECLS _ETL_BEGIN_NAMESPACE std::string vstrprintf const char *  format,
va_list  args
[inline]
 

Definition at line 83 of file _stringf.h.

References ETL_STRPRINTF_MAX_LENGTH.

Referenced by strprintf().

std::string strprintf const char *  format,
  ...
[inline]
 

Definition at line 119 of file _stringf.h.

References vstrprintf().

std::string basename const std::string &  str  )  [inline]
 

Definition at line 152 of file _stringf.h.

References ETL_DIRECTORY_SEPERATOR.

Referenced by cleanup_path().

std::string dirname const std::string &  str  )  [inline]
 

Definition at line 177 of file _stringf.h.

References ETL_DIRECTORY_SEPERATOR.

Referenced by cleanup_path().

bool is_absolute_path const std::string &  path  )  [inline]
 

Definition at line 197 of file _stringf.h.

References ETL_DIRECTORY_SEPERATOR.

Referenced by absolute_path(), and relative_path().

std::string unix_to_local_path const std::string &  path  )  [inline]
 

Definition at line 209 of file _stringf.h.

References ETL_DIRECTORY_SEPERATOR.

std::string current_working_directory  )  [inline]
 

Definition at line 230 of file _stringf.h.

Referenced by absolute_path().

std::string get_root_from_path std::string  path  )  [inline]
 

Definition at line 238 of file _stringf.h.

References ETL_DIRECTORY_SEPERATOR.

Referenced by cleanup_path().

std::string remove_root_from_path std::string  path  )  [inline]
 

Definition at line 255 of file _stringf.h.

References ETL_DIRECTORY_SEPERATOR.

std::string cleanup_path std::string  path  )  [inline]
 

Definition at line 270 of file _stringf.h.

References basename(), dirname(), ETL_DIRECTORY_SEPERATOR, and get_root_from_path().

Referenced by absolute_path(), and relative_path().

std::string absolute_path std::string  path  )  [inline]
 

Definition at line 299 of file _stringf.h.

References cleanup_path(), current_working_directory(), ETL_DIRECTORY_SEPERATOR, and is_absolute_path().

Referenced by relative_path().

std::string relative_path std::string  curr_path,
std::string  dest_path
[inline]
 

Definition at line 312 of file _stringf.h.

References absolute_path(), cleanup_path(), and is_absolute_path().


Generated on Thu Jan 12 22:17:46 2006 for ETL by  doxygen 1.4.6