stringutils.cpp File Reference

#include <prefix/dtutilprefix-src.h>
#include <dtUtil/stringutils.h>
#include <dtUtil/macros.h>
#include <cstdio>
#include <sstream>
#include <iomanip>
#include <cmath>

Namespaces

namespace  dtUtil

Functions

static bool dtUtil::Scan (char *&wildCards, char *&str)
static bool dtUtil::WildMatch (char *wildCards, char *str)
bool DT_UTIL_EXPORT dtUtil::Match (char *wildCards, char *str)
float DT_UTIL_EXPORT dtUtil::ToFloat (const std::string &d)
 Converts a string to a 'float'.
double DT_UTIL_EXPORT dtUtil::ToDouble (const std::string &str)
 converts a std::string to a 'double'
unsigned int DT_UTIL_EXPORT dtUtil::ToUnsignedInt (const std::string &u)
 converts a std::string to an 'unsigned int'
long DT_UTIL_EXPORT dtUtil::GetTimeZone (tm &timeParts)
const std::string DT_UTIL_EXPORT dtUtil::TimeAsUTC (time_t time)
 
Parameters:
time the time in seconds since the epoch to convert.

void DT_UTIL_EXPORT dtUtil::MakeIndexString (unsigned index, std::string &toFill, unsigned paddedLength=4)
 
Returns:
a string with text as an int value padded to the size specified.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008