24#ifndef _OD_UNITSFORMATTER_H_INCLUDED_
25#define _OD_UNITSFORMATTER_H_INCLUDED_
325 static int toInt(
const OdString& sValue,
int nMinValid = INT_MIN,
int nMaxValid = INT_MAX);
330 static double number(
const OdChar*& buf,
bool* pHasDot = 0,
bool* pHasExponent = 0);
335 entier = int(floor(
value));
337 while((numerator % 2) == 0 && (numerator != 0))
347 for(
int i = 0; i < prec; ++i)
359 return (c >=
'0' && c <=
'9');
369 for(
int i = prec; i >= 5; i--)
392 static void decomp(
double v,
int& degs,
int& mins,
double& secs,
int prec);
438 const OdChar *pBuffer =
string.c_str();
441 if (*pBuffer >=
'0' && *pBuffer <=
'9')
443 else if (*pBuffer ==
'+' || *pBuffer ==
'-')
449 else if (*pBuffer == delim && nDigits > 0 && nSpec <= 1)
FIRSTDLL_EXPORT void odDToStr(char *dst, double val, char fmt, int prec, int cropzeros=0)
OdString mid(int startIndex, int length) const
OdString & format(const OdChar *formatString,...)
const OdChar * c_str() const
OdString spanExcluding(const OdChar *charSet) const
static FeetInchesProcessing getFeetInchesProcessing()
static void setFeetInchesProcessing(FeetInchesProcessing type)
GLuint GLsizei GLsizei GLint GLenum * type
GLenum GLint GLint * precision
GLsizei const GLfloat * value