Go to the documentation of this file.
61 return ((3 < size()) && (
operator[](1) ==
':' ||
62 (
operator[](0) ==
'\\' &&
operator[](1) ==
'\\')));
64 return !empty() && operator[](0) ==
'/';
103 if (top == string::npos)
120 char c = operator[](src++);
141 char c1 = operator[](src);
151 if (
c1 ==
'.' && (src+1 >= maxLen ||
operator[](src+1) ==
'/'))
161 && (parent = this->rfind(
'/', nChar-2)) != string::npos
177 operator[](nChar++) = prev =
c;
181 if (nChar > 1 &&
operator[](nChar-1) ==
'/')
188 return (nChar != maxLen);
222 return substr(i+1, npos);
229 string cName = *
this;
231 const string caseStr(
getEnv(
"FOAM_CASE"));
241 return cName.
replace(i, caseStr.size(),
string(
"$FOAM_CASE"));
261 if (
dot != npos &&
dot <= beg)
268 return substr(beg, npos);
272 return substr(beg,
dot - beg);
317 if (i == npos || i == 0 ||
operator[](i) ==
'/')
333 if (i == npos || i == 0 ||
operator[](i) ==
'/')
339 return substr(i+1, npos);
363 while ((end = find(delimiter, beg)) != npos)
368 wrdList.
append(substr(beg, end-beg));
376 wrdList.
append(substr(beg, npos));
391 return components(delimiter)[cmpt];
399 string::operator=(str);
406 string::operator=(str);
413 string::operator=(str);
421 string::operator=(str);
429 string::operator=(str);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Xfer< List< T > > xfer()
Transfer contents to the Xfer container as a plain List.
A class for handling words, derived from string.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
triSurfaceToAgglom resize(surfacesMesh.size())
wordList components(const char delimiter='/') const
Return path components as wordList.
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
fileName path() const
Return directory path name (part before last /)
bool isAbsolute() const
Return true if file name is absolute.
Type
Enumerations to handle file types and modes.
fileName lessExt() const
Return file name without extension (part before last .)
A class for handling character strings derived from std::string.
fileName()
Construct null.
fileName & toAbsolute()
Convert from relative to absolute.
word name() const
Return file name (part beyond last /)
word component(const size_type, const char delimiter='/') const
Return a single component of the path.
List< word > wordList
A List of words.
Type type() const
Return the file type: FILE, DIRECTORY or UNDEFINED.
const dimensionedScalar c1
First radiation constant: default SI units: [W/m2].
static const char *const typeName
string getEnv(const word &)
Return environment variable of given name.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
const fileName & operator=(const fileName &)
graph_traits< Graph >::vertices_size_type size_type
word ext() const
Return file name extension (part after last .)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
static const fileName null
An empty fileName.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
string & replace(const string &oldStr, const string &newStr, size_type start=0)
Replace first occurence of sub-string oldStr with newStr.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const word null
An empty word.
string caseName() const
Return file name (part beyond last /), subsitute for FOAM_CASE.
const dimensionedScalar c
Speed of light in a vacuum.
fileName cwd()
Return current working directory path name.
bool clean()
Cleanup file name.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
word name(const complex &)
Return a string representation of a complex.