util.h File Reference


Detailed Description

Utility functions.

#include "String.h"

Namespaces

namespace  MAUtil

Functions

double MAUtil::clamp (double v, double a, double b)
int MAUtil::clamp (int v, int a, int b)
unsigned int MAUtil::clamp (unsigned int f, unsigned int a, unsigned int b)
double MAUtil::wrapInRange (double v, double a, double b)
bool MAUtil::inside (double a, double f, double b)
bool MAUtil::inside (int a, int b, int c)
bool MAUtil::inside (unsigned int a, unsigned int b, unsigned int c)
String MAUtil::doubleToString (double f, int decimals=5)
String MAUtil::integerToString (int i, int base=10)
String MAUtil::lowerString (const String &s)
String MAUtil::upperString (const String &s)
void MAUtil::stringSplit (const String &str, const String &delim, MAUtil::Vector< String > &output)
int MAUtil::stringToInteger (const String &s, int base=10)
double MAUtil::stringToDouble (const String &s)


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO