#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 ETL_STRPRINTF_MAX_LENGTH (800) |
#define ETL_NO_THROW throw() |
Definition at line 48 of file _stringf.h.
#define ETL_NO_VSTRSCANF |
Definition at line 64 of file _stringf.h.
#define ETL_UNSAFE_STRPRINTF (true) |
#define stratof | ( | X | ) | (atof((X).c_str())) |
Definition at line 144 of file _stringf.h.
#define stratoi | ( | X | ) | (atoi((X).c_str())) |
Definition at line 145 of file _stringf.h.
_ETL_END_CDECLS _ETL_BEGIN_NAMESPACE std::string vstrprintf | ( | const char * | format, | |
va_list | args | |||
) | [inline] |
Definition at line 79 of file _stringf.h.
References ETL_STRPRINTF_MAX_LENGTH.
Referenced by strprintf().
std::string strprintf | ( | const char * | format, | |
... | ||||
) | [inline] |
std::string basename | ( | const std::string & | str | ) | [inline] |
Definition at line 148 of file _stringf.h.
References ETL_DIRECTORY_SEPERATOR.
Referenced by cleanup_path(), and relative_path().
std::string dirname | ( | const std::string & | str | ) | [inline] |
Definition at line 173 of file _stringf.h.
References ETL_DIRECTORY_SEPERATOR.
Referenced by cleanup_path(), and relative_path().
bool is_absolute_path | ( | const std::string & | path | ) | [inline] |
Definition at line 193 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] |
std::string current_working_directory | ( | ) | [inline] |
std::string get_root_from_path | ( | std::string | path | ) | [inline] |
Definition at line 234 of file _stringf.h.
References ETL_DIRECTORY_SEPERATOR.
Referenced by cleanup_path(), and relative_path().
std::string remove_root_from_path | ( | std::string | path | ) | [inline] |
Definition at line 251 of file _stringf.h.
References ETL_DIRECTORY_SEPERATOR.
Referenced by cleanup_path(), and relative_path().
std::string cleanup_path | ( | std::string | path | ) | [inline] |
Definition at line 266 of file _stringf.h.
References basename(), dirname(), ETL_DIRECTORY_SEPERATOR, get_root_from_path(), and remove_root_from_path().
Referenced by absolute_path(), and relative_path().
std::string absolute_path | ( | std::string | path | ) | [inline] |
Definition at line 295 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 308 of file _stringf.h.
References absolute_path(), basename(), cleanup_path(), dirname(), ETL_DIRECTORY_SEPERATOR, get_root_from_path(), is_absolute_path(), and remove_root_from_path().