Go to the documentation of this file.
46 const wordRe& val = input[i];
48 const label next = input.
find(val, i+1);
52 duplicate[next] =
true;
88 const label next = input.find(val, i+1);
92 duplicate[next] =
true;
97 output[
count] = std::move(val);
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
#define forAll(list, i)
Loop across all elements in list.
void resize(const label newSize)
Adjust allocated size of list.
void uniq()
Filter out duplicate entries (inplace).
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A List of wordRe with additional matching capabilities.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
label find(const T &val, label pos=0) const
Find index of the first occurrence of the value.