31 const auto aIter = ::std::lower_bound(
maVec.begin(),
maVec.end(),
nPos );
33 if (aIter !=
maVec.end() && *aIter ==
nPos)
37 "sc.ui",
"ScCsvSplits::Insert: too many elements in vector");
73 auto aIter = ::std::lower_bound(
maVec.cbegin(),
maVec.cend(),
nPos );
bool Remove(sal_Int32 nPos)
Removes a split by position.
sal_uInt32 Count() const
Returns the number of splits.
ScSplitVector::const_iterator const_iterator
sal_uInt32 GetIndex(sal_Int32 nPos) const
Searches for a split at position nPos.
bool Insert(sal_Int32 nPos)
The split container.
sal_uInt32 LowerBound(sal_Int32 nPos) const
Returns index of the first split greater than or equal to nPos.
sal_Int32 GetPos(sal_uInt32 nIndex) const
Returns the position of the specified split.
void RemoveRange(sal_Int32 nPosStart, sal_Int32 nPosEnd)
Removes a range of splits in the given position range.
void Clear()
Removes all elements from the vector.
sal_uInt32 GetIterIndex(const_iterator const &aIter) const
Returns the vector index of an iterator.
sal_uInt32 UpperBound(sal_Int32 nPos) const
Returns index of the last split less than or equal to nPos.
bool HasSplit(sal_Int32 nPos) const
Returns true if at position nPos is a split.
const sal_uInt32 CSV_VEC_NOTFOUND
Constant for an invalid vector index.
const sal_Int32 CSV_POS_INVALID
Constant for an invalid ruler position.
#define SAL_WARN_IF(condition, area, stream)