Kaydet (Commit) 40da065f authored tarafından Noel Grandin's avatar Noel Grandin

fix spelling delimeter -> delimiter

Change-Id: I12a330e922f8f6ffe9c746a26e5b32c0bbae626a
üst c5ee4105
...@@ -99,18 +99,18 @@ void TypeDetectionImporter::fillFilterVector( XMLFilterVector& rFilters ) ...@@ -99,18 +99,18 @@ void TypeDetectionImporter::fillFilterVector( XMLFilterVector& rFilters )
delete (*aIter++); delete (*aIter++);
} }
static OUString getSubdata( int index, sal_Unicode delimeter, const OUString& rData ) static OUString getSubdata( int index, sal_Unicode delimiter, const OUString& rData )
{ {
sal_Int32 nLastIndex = 0; sal_Int32 nLastIndex = 0;
sal_Int32 nNextIndex = rData.indexOf( delimeter ); sal_Int32 nNextIndex = rData.indexOf( delimiter );
OUString aSubdata; OUString aSubdata;
while( index ) while( index )
{ {
nLastIndex = nNextIndex + 1; nLastIndex = nNextIndex + 1;
nNextIndex = rData.indexOf( delimeter, nLastIndex ); nNextIndex = rData.indexOf( delimiter, nLastIndex );
index--; index--;
......
...@@ -280,7 +280,7 @@ static Sequence< OUString > createExtensionsSequence( const OUString& rExtension ...@@ -280,7 +280,7 @@ static Sequence< OUString > createExtensionsSequence( const OUString& rExtension
// a non empty string has at least one extension // a non empty string has at least one extension
nExtensions++; nExtensions++;
// now count the delimeters ';' // now count the delimiters ';'
const sal_Unicode * pString = rExtensions.getStr(); const sal_Unicode * pString = rExtensions.getStr();
int i; int i;
for( i = 0; i < nLength; i++, pString++ ) for( i = 0; i < nLength; i++, pString++ )
......
...@@ -802,11 +802,11 @@ static sal_Int32 lcl_GetToken( OUString &rToken, ...@@ -802,11 +802,11 @@ static sal_Int32 lcl_GetToken( OUString &rToken,
break; break;
} }
if (i >= rText.getLength()) // delimeter not found if (i >= rText.getLength()) // delimiter not found
rToken = rText.copy( nPos ); rToken = rText.copy( nPos );
else else
rToken = rText.copy( nPos, i - nPos ); rToken = rText.copy( nPos, i - nPos );
nRes = i + 1; // continue after found delimeter nRes = i + 1; // continue after found delimiter
} }
return nRes; return nRes;
......
...@@ -326,7 +326,7 @@ static const sal_Unicode aDelimiterTable[] = ...@@ -326,7 +326,7 @@ static const sal_Unicode aDelimiterTable[] =
}; };
bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos )
// returns 'true' iff cChar is '\0' or a delimeter // returns 'true' iff cChar is '\0' or a delimiter
{ {
OSL_ENSURE( nPos <= rTxt.getLength(), "index out of range" ); OSL_ENSURE( nPos <= rTxt.getLength(), "index out of range" );
...@@ -334,7 +334,7 @@ bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) ...@@ -334,7 +334,7 @@ bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos )
if(!cChar) if(!cChar)
return true; return true;
// check if 'cChar' is in the delimeter table // check if 'cChar' is in the delimiter table
const sal_Unicode *pDelim = &aDelimiterTable[0]; const sal_Unicode *pDelim = &aDelimiterTable[0];
for ( ; *pDelim != 0; pDelim++) for ( ; *pDelim != 0; pDelim++)
if (*pDelim == cChar) if (*pDelim == cChar)
......
...@@ -1765,7 +1765,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeToXML( const OUString& rRange ...@@ -1765,7 +1765,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeToXML( const OUString& rRange
OUString aRes; OUString aRes;
OUString aRangeRepresentation( rRangeRepresentation ); OUString aRangeRepresentation( rRangeRepresentation );
// multiple ranges are delimeted by a ';' like in // multiple ranges are delimited by a ';' like in
// "Table1.A1:A4;Table1.C2:C5" the same table must be used in all ranges! // "Table1.A1:A4;Table1.C2:C5" the same table must be used in all ranges!
sal_Int32 nNumRanges = comphelper::string::getTokenCount(aRangeRepresentation, ';'); sal_Int32 nNumRanges = comphelper::string::getTokenCount(aRangeRepresentation, ';');
SwTable* pFirstFoundTable = 0; // to check that only one table will be used SwTable* pFirstFoundTable = 0; // to check that only one table will be used
...@@ -1815,7 +1815,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeToXML( const OUString& rRange ...@@ -1815,7 +1815,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeToXML( const OUString& rRange
aCellRange.aLowerRight.bIsEmpty = false; aCellRange.aLowerRight.bIsEmpty = false;
} }
OUString aTmp( XMLRangeHelper::getXMLStringFromCellRange( aCellRange ) ); OUString aTmp( XMLRangeHelper::getXMLStringFromCellRange( aCellRange ) );
if (!aRes.isEmpty()) // in case of multiple ranges add delimeter if (!aRes.isEmpty()) // in case of multiple ranges add delimiter
aRes += " "; aRes += " ";
aRes += aTmp; aRes += aTmp;
} }
...@@ -1833,7 +1833,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeFromXML( const OUString& rXML ...@@ -1833,7 +1833,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeFromXML( const OUString& rXML
OUString aRes; OUString aRes;
OUString aXMLRange( rXMLRange ); OUString aXMLRange( rXMLRange );
// multiple ranges are delimeted by a ' ' like in // multiple ranges are delimited by a ' ' like in
// "Table1.$A$1:.$A$4 Table1.$C$2:.$C$5" the same table must be used in all ranges! // "Table1.$A$1:.$A$4 Table1.$C$2:.$C$5" the same table must be used in all ranges!
sal_Int32 nNumRanges = comphelper::string::getTokenCount(aXMLRange, ' '); sal_Int32 nNumRanges = comphelper::string::getTokenCount(aXMLRange, ' ');
OUString aFirstFoundTable; // to check that only one table will be used OUString aFirstFoundTable; // to check that only one table will be used
...@@ -1862,7 +1862,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeFromXML( const OUString& rXML ...@@ -1862,7 +1862,7 @@ OUString SAL_CALL SwChartDataProvider::convertRangeFromXML( const OUString& rXML
aCellRange.aLowerRight.nRow ); aCellRange.aLowerRight.nRow );
} }
if (!aRes.isEmpty()) // in case of multiple ranges add delimeter if (!aRes.isEmpty()) // in case of multiple ranges add delimiter
aRes += ";"; aRes += ";";
aRes += aTmp; aRes += aTmp;
} }
......
...@@ -600,7 +600,7 @@ OUString NameFromCharSet(rtl_TextEncoding nChrSet) ...@@ -600,7 +600,7 @@ OUString NameFromCharSet(rtl_TextEncoding nChrSet)
// 2. LineEnd - as CR/LR/CRLF // 2. LineEnd - as CR/LR/CRLF
// 3. Fontname // 3. Fontname
// 4. Language // 4. Language
// the delimetercharacter is "," // the delimiter character is ","
// //
void SwAsciiOptions::ReadUserData( const OUString& rStr ) void SwAsciiOptions::ReadUserData( const OUString& rStr )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment