1#ifndef Cpl_Text_atob_h_
2#define Cpl_Text_atob_h_
21#include "colony_map.h"
39bool a2i(
int& convertedValue,
const char*
string,
int base=10,
const char* validStopChars=0,
const char** endptr=0 );
43bool a2ui(
unsigned& convertedValue,
const char*
string,
int base=10,
const char* validStopChars=0,
const char** endptr=0 );
47bool a2l(
long& convertedValue,
const char*
string,
int base=10,
const char* validStopChars=0,
const char** endptr=0 );
52bool a2ul(
unsigned long& convertedValue,
const char*
string,
int base=10,
const char* validStopChars=0,
const char** endptr=0 );
58bool a2ll(
long long& convertedValue,
const char*
string,
int base=10,
const char* validStopChars=0,
const char** endptr=0 );
63bool a2ull(
unsigned long long& convertedValue,
const char*
string,
int base=10,
const char* validStopChars=0,
const char** endptr=0 );
73bool a2d(
double& convertedValue,
const char*
string,
const char* validStopChars=0,
const char** endptr=0 );
84bool a2b(
bool& convertedValue,
const char*
string,
const char* trueToken=
"T",
const char* falseToken=
"F",
const char** endptr=0 );
long asciiBinaryToBuffer(void *dstBinary, const char *srcString, size_t dstMaxLen, bool reverse=false)
This method will convert an 'ASCII BINARY' string to an equivalent binary buffer, i....
long asciiHexToBuffer(void *dstBinary, const char *srcString, size_t dstMaxLen)
This method will convert an 'ASCII HEX' string to an equivalent binary buffer, i.e.
bool a2ul(unsigned long &convertedValue, const char *string, int base=10, const char *validStopChars=0, const char **endptr=0)
This method is the same as a2i() except that it converts unsigned long integer.
bool a2ull(unsigned long long &convertedValue, const char *string, int base=10, const char *validStopChars=0, const char **endptr=0)
This method is the same as a2i() except that it converts unsigned long long integer.
bool parsePrecisionTimeStamp(const char *timeStampToParse, Cpl::System::ElapsedTime::Precision_T &convertedValue)
This method parses a 'timestamp' with the following format: [DD ]HH:MM:SS[.sss] The method returns tr...
bool a2ll(long long &convertedValue, const char *string, int base=10, const char *validStopChars=0, const char **endptr=0)
This method is the same as a2i() except that it converts long long integer.
bool a2ui(unsigned &convertedValue, const char *string, int base=10, const char *validStopChars=0, const char **endptr=0)
This method is the same as a2i() except that it converts unsigned integer.
bool a2i(int &convertedValue, const char *string, int base=10, const char *validStopChars=0, const char **endptr=0)
This method converts the specified string to an integer.
bool a2d(double &convertedValue, const char *string, const char *validStopChars=0, const char **endptr=0)
This method converts the specified string to an double.
bool a2b(bool &convertedValue, const char *string, const char *trueToken="T", const char *falseToken="F", const char **endptr=0)
This method convert the specified string to an boolean.
bool a2l(long &convertedValue, const char *string, int base=10, const char *validStopChars=0, const char **endptr=0)
This method is the same as a2i() except that it converts long integer.
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20
Data type for time in seconds with a 'fractional' millisecond precision.
Definition ElapsedTime.h:35