Go to the documentation of this file.
25 #ifndef __bTypesFunctions_hpp__
26 #define __bTypesFunctions_hpp__
230 return abs(s1 - s2) <= tol;
274 return theta / 180.0 *
Pi;
282 return phi /
Pi * 180.0;
287 #endif //__bTypesFunctions_hpp__
word tailName(const word &w, char sep='.')
Find tail name in a group separated by "." and return it.
word angleBracketsNames3(const word &base, const word &w1, const word &w2, const word &w3)
Output base<w1,sw2,w3>
bool readValue(const word &w, real &val)
word real2Fixed(const real &v, int32 numPrecision=6)
Convert floating point variable to string with fixed number of precisions.
bool readInt32(const word &w, int32 &val)
Convert word to int32.
word real2FixedStripZeros(const real &v, int32 numPrecision=6)
Convert to fixed point variable and remove zeros.
bool validWordWithQuote(char c)
Is c a valid character including quote?
bool readUint32(const word &w, uint32 &val)
Convert word to uint32.
bool readBoolian_Str(const word &w, bool &val)
Convert word to bool.
INLINE_FUNCTION_HD bool equal(const box &b1, const box &b2, real tol=smallValue)
bool readReal(const word &w, real &val)
Convert word to real.
word toUpper(const word &inStr)
convert a word to all caps
bool validWord(char c)
Is the character valid for a word name?
const word nullWord
null/empty word
bool readInt64(const word &w, int64 &val)
Convert word to int64.
word baseName(const word &w, char sep='.')
Find the base in a group separated by "." and return it.
word angleBracketsNames2(const word &base, const word &w1, const word &w2)
Output base<w1,w2>
const int32 zero32
zero int32 variable
const int32 one32
one int32 variable
word angleBracketsNames(const word &w1, const word &w2)
Output <w1,w2>
bool isNo(const word &str)
Check if str equals "No", "N", "False", or "Off".
Vector< T, Allocator > abs(const Vector< T, Allocator > &v)
const word whiteSpace(" \t\n\v\f\r")
white space
word removeDecimalZeros(const word &str)
Remove zeros from decimal part of a string number.
bool readInt8(const word &w, int8 &val)
Convert word to int8.
word real2Word(const real &v, int32 numPrecision=6)
Convert floating point variable to string with general format.
const real zero
Zero real variable.
INLINE_FUNCTION_HD real radian2Degree(const real &phi)
Convert radians to degree.
word groupNames(const word &bw, const word &tw, char sep='.')
Group words and output bw.tw.
word firstCapital(const word &inStr)
word int322Word(const int32 &v)
Convert int32 to word.
bool isYes(const word &str)
Check if str equals "Yes", "Y", "True", "Ok", "ON", or "T".
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_HD real degree2Radian(const real &theta)
Convert degree to radians.
int32 countChar(const word &s, const char c)
Count numer of chars c in a word.
const real one
one real variable