diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 09:33:23 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:48:10 -0400 |
commit | 83998b79f694fc513cb8e6d01f2e40afeb39d17b (patch) | |
tree | 2a0b5e7bc5216daef2ed5338e4f084a546713574 /sc | |
parent | 148ee8f8dfeaf5e84c36017f25e78f59b662bbe6 (diff) |
Get the string ID's for case insensitive comparisons.
If we ever need to use this for case sensitive comparisons, we'll have to
find a way to conditionalize it.
Change-Id: Ibb862c4700d2fb660570fc80a80a03eed1d556c3
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column2.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 21ef99fc71e5..392a8512bbe6 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -2183,7 +2183,7 @@ bool appendStrings( getBlockIterators<sc::string_block>(it, nLenRemain, itData, itDataEnd); for (; itData != itDataEnd; ++itData) - rArray.push_back(itData->getData()); + rArray.push_back(itData->getDataIgnoreCase()); } break; case sc::element_type_edittext: @@ -2194,7 +2194,7 @@ bool appendStrings( for (; itData != itDataEnd; ++itData) { OUString aStr = ScEditUtil::GetString(**itData, pDoc); - rArray.push_back(rPool.intern(aStr).getData()); + rArray.push_back(rPool.intern(aStr).getDataIgnoreCase()); } } break; @@ -2219,7 +2219,7 @@ bool appendStrings( return false; } - rArray.push_back(rPool.intern(aStr).getData()); + rArray.push_back(rPool.intern(aStr).getDataIgnoreCase()); } } break; @@ -2250,7 +2250,7 @@ bool appendStrings( return false; } -void copyFirstBlock( sc::FormulaGroupContext& rCxt, size_t nLen, const sc::CellStoreType::position_type& rPos ) +void copyFirstStringBlock( sc::FormulaGroupContext& rCxt, size_t nLen, const sc::CellStoreType::position_type& rPos ) { rCxt.maStrArrays.push_back(new sc::FormulaGroupContext::StrArrayType); sc::FormulaGroupContext::StrArrayType& rArray = rCxt.maStrArrays.back(); @@ -2259,7 +2259,7 @@ void copyFirstBlock( sc::FormulaGroupContext& rCxt, size_t nLen, const sc::CellS svl::SharedString* p = &sc::string_block::at(*rPos.first->data, rPos.second); svl::SharedString* pEnd = p + nLen; for (; p != pEnd; ++p) - rArray.push_back(p->getData()); + rArray.push_back(p->getDataIgnoreCase()); } } @@ -2370,12 +2370,12 @@ formula::VectorRefArray ScColumn::FetchVectorRefArray( sc::FormulaGroupContext& if (nLenRequested <= nLen) { // Requested length fits a single block. - copyFirstBlock(rCxt, nLenRequested, aPos); + copyFirstStringBlock(rCxt, nLenRequested, aPos); sc::FormulaGroupContext::StrArrayType& rArray = rCxt.maStrArrays.back(); return formula::VectorRefArray(&rArray[0]); } - copyFirstBlock(rCxt, nLen, aPos); + copyFirstStringBlock(rCxt, nLen, aPos); sc::FormulaGroupContext::StrArrayType& rArray = rCxt.maStrArrays.back(); // Fill the remaining array with values from the following blocks. |