/trunk/main/i18npool/source/breakiterator/ |
H A D | breakiteratorImpl.cxx | 228 if (nStartPos < 0 || nStartPos > Text.getLength()) in beginOfSentence() 237 if (nStartPos < 0 || nStartPos > Text.getLength()) in endOfSentence() 263 if (nStartPos + inc < 0 || nStartPos + inc >= nLen) { in iterateCodePoints() 265 nStartPos = nStartPos + inc < 0 ? -1 : nLen; in iterateCodePoints() 281 return nStartPos; in iterateCodePoints() 288 if (nStartPos < 0 || nStartPos >= Text.getLength()) in beginOfScript() 306 if (nStartPos < 0 || nStartPos >= Text.getLength()) in endOfScript() 374 if (nStartPos < 0 || nStartPos >= Text.getLength()) return -1; in beginOfCharBlock() 388 if (nStartPos < 0 || nStartPos >= strLen) return -1; in endOfCharBlock() 400 if (nStartPos < 0 || nStartPos >= Text.getLength()) return -1; in nextCharBlock() [all …]
|
H A D | breakiterator_unicode.cxx | 211 nStartPos = character.aBreakIterator->following(nStartPos); in nextCharacters() 219 return nStartPos; in nextCharacters() 230 nStartPos = character.aBreakIterator->preceding(nStartPos); in previousCharacters() 238 return nStartPos; in previousCharacters() 328 nStartPos = sentence.aBreakIterator->preceding(nStartPos); in beginOfSentence() 332 while (nStartPos < len && u_isWhitespace(ch)) ch = Text.iterateCodePoints(&nStartPos, 1); in beginOfSentence() 335 return nStartPos; in beginOfSentence() 346 nStartPos = sentence.aBreakIterator->following(nStartPos); in endOfSentence() 348 sal_Int32 nPos=nStartPos; in endOfSentence() 351 return nStartPos; in endOfSentence() [all …]
|
H A D | breakiterator_ctl.cxx | 78 nStartPos = previousCellIndex[nStartPos - 1]; in previousCharacters() 81 nStartPos = 0; in previousCharacters() 83 nDone = (nStartPos > nCount) ? nCount : nStartPos; in previousCharacters() 84 nStartPos -= nDone; in previousCharacters() 87 return nStartPos; in previousCharacters() 98 if (nStartPos < len) { in nextCharacters() 106 nStartPos = nextCellIndex[nStartPos]; in nextCharacters() 109 nStartPos = len; in nextCharacters() 111 nDone = (len - nStartPos > nCount) ? nCount : len - nStartPos; in nextCharacters() 112 nStartPos += nDone; in nextCharacters() [all …]
|
H A D | breakiterator_cjk.cxx | 99 const OUString& Text, sal_Int32 nStartPos, in getLineBreak() argument 107 hangingCharacters.indexOf(Text[nStartPos]) != -1 && in getLineBreak() 108 (Text.iterateCodePoints( &nStartPos, 1), nStartPos == Text.getLength())) { in getLineBreak() 110 } else if (bOptions.applyForbiddenRules && 0 < nStartPos && nStartPos < Text.getLength()) { in getLineBreak() 111 while (nStartPos > 0 && in getLineBreak() 112 (bOptions.forbiddenBeginCharacters.indexOf(Text[nStartPos]) != -1 || in getLineBreak() 113 bOptions.forbiddenEndCharacters.indexOf(Text[nStartPos-1]) != -1)) in getLineBreak() 114 Text.iterateCodePoints( &nStartPos, -1); in getLineBreak() 117 lbr.breakIndex = nStartPos; in getLineBreak()
|
/trunk/main/i18npool/source/inputchecker/ |
H A D | inputsequencechecker_th.cxx | 90 return check(Text[nStartPos], inputChar, inputCheckMode); in checkInputSequence() 121 if (check(Text[nStartPos], inputChar, inputCheckMode)) in correctInputSequence() 122 Text = Text.replaceAt(++nStartPos, 0, OUString(inputChar)); in correctInputSequence() 123 else if (nStartPos > 0 && getCharType(Text[nStartPos-1]) == CT_CONS) { in correctInputSequence() 130 (Text[nStartPos]==0x0E4C && CT_ABV1(t2)) ) // 8. in correctInputSequence() 133 nStartPos=Text.getLength(); in correctInputSequence() 134 } else if (nStartPos > 1 && getCharType(Text[nStartPos-2]) == CT_CONS) { in correctInputSequence() 135 …sal_uInt16 t1=getCharType(Text[nStartPos-1]), t2=getCharType(Text[nStartPos]), t3=getCharType(inpu… in correctInputSequence() 143 nStartPos=Text.getLength(); in correctInputSequence() 145 nStartPos=Text.getLength(); in correctInputSequence() [all …]
|
/trunk/main/linguistic/source/ |
H A D | gciterator.cxx | 156 if (nStartPos < 0) in lcl_SkipWhiteSpaces() 159 nStartPos = 0; in lcl_SkipWhiteSpaces() 161 if (nStartPos > nLen) in lcl_SkipWhiteSpaces() 164 nStartPos = nLen; in lcl_SkipWhiteSpaces() 171 sal_Int32 nRes = nStartPos; in lcl_SkipWhiteSpaces() 172 if (0 <= nStartPos && nStartPos < nLen) in lcl_SkipWhiteSpaces() 191 if (nStartPos < 0) in lcl_BacktraceWhiteSpaces() 194 nStartPos = 0; in lcl_BacktraceWhiteSpaces() 196 if (nStartPos > nLen) in lcl_BacktraceWhiteSpaces() 199 nStartPos = nLen; in lcl_BacktraceWhiteSpaces() [all …]
|
/trunk/main/i18npool/source/textconversion/ |
H A D | textconversion_ko.cxx | 133 ch = aText[nStartPos]; in getCharConversions() 160 ch = aText[nStartPos + count]; in getCharConversions() 214 sal_Int32 start, end, length = aText.getLength() - nStartPos; in getConversions() 216 if (length < 0 || nStartPos < 0) in getConversions() 233 scriptType = checkScriptType(aText[nStartPos + start]); in getConversions() 282 result.Boundary.startPos = start + nStartPos;; in getConversions() 283 result.Boundary.endPos = start + len + nStartPos; in getConversions() 297 sal_Int32 length = aText.getLength() - nStartPos; in getConversion() 299 if (length <= 0 || nStartPos < 0) in getConversion() 308 for (sal_Int32 start = nStartPos; length + nStartPos > start; start = result.Boundary.endPos) { in getConversion() [all …]
|
H A D | textconversion_zh.cxx | 86 getOneCharConversion(aText[nStartPos+i], Data, Index); in getCharConversion() 120 return getCharConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions); in getWordConversion() 130 OUString word = aText.copy(nStartPos + currPos, len); in getWordConversion() 156 offset[count] = nStartPos + currPos + (current * in getWordConversion() 192 offset[count]=nStartPos + currPos + ((current-start) * in getWordConversion() 209 offset[count]=nStartPos+currPos; in getWordConversion() 211 getOneCharConversion(aText[nStartPos+currPos], charData, charIndex); in getWordConversion() 223 TextConversion_zh::getConversions( const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, in getConversions() argument 231 result.Boundary.startPos = nStartPos; in getConversions() 232 result.Boundary.endPos = nStartPos + nLength; in getConversions() [all …]
|
H A D | textconversionImpl.cxx | 37 TextConversionImpl::getConversions( const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, in getConversions() argument 43 sal_Int32 len = aText.getLength() - nStartPos; in getConversions() 46 …return xTC->getConversions(aText, nStartPos, nLength, rLocale, nConversionType, nConversionOptions… in getConversions() 50 TextConversionImpl::getConversion( const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, in getConversion() argument 56 sal_Int32 len = aText.getLength() - nStartPos; in getConversion() 59 …return xTC->getConversion(aText, nStartPos, nLength, rLocale, nConversionType, nConversionOptions); in getConversion() 63 TextConversionImpl::getConversionWithOffset( const OUString& aText, sal_Int32 nStartPos, sal_Int32 … in getConversionWithOffset() argument 69 sal_Int32 len = aText.getLength() - nStartPos; in getConversionWithOffset() 72 …return xTC->getConversionWithOffset(aText, nStartPos, nLength, rLocale, nConversionType, nConversi… in getConversionWithOffset()
|
/trunk/main/offapi/com/sun/star/i18n/ |
H A D | XBreakIterator.idl | 63 <em>nStartPos</em> forwards. 72 long nextCharacters( [in] string aText, [in] long nStartPos, 79 <em>nStartPos</em> backwards. 104 Boundary nextWord( [in] string aText, [in] long nStartPos, 219 long endOfSentence( [in] string aText, [in] long nStartPos, 224 <em>nStartPos</em>. 260 long beginOfScript( [in] string aText, [in] long nStartPos, 273 long endOfScript( [in] string aText, [in] long nStartPos, 286 long nextScript( [in] string aText, [in] long nStartPos, 299 long previousScript( [in] string aText, [in] long nStartPos, [all …]
|
/trunk/main/chart2/source/tools/ |
H A D | XMLRangeHelper.cxx | 124 sal_Int32 nStartPos, sal_Int32 nEndPos, in lcl_getSingleCellAddressFromXMLString() argument 131 …::rtl::OUString aCellStr = rXMLString.copy( nStartPos, nEndPos - nStartPos + 1 ).toAsciiUpperCase(… in lcl_getSingleCellAddressFromXMLString() 168 sal_Int32 nStartPos, sal_Int32 nEndPos, in lcl_getCellAddressFromXMLString() argument 178 sal_Int32 nDelimiterPos = nStartPos; in lcl_getCellAddressFromXMLString() 221 nDelimiterPos = nStartPos; in lcl_getCellAddressFromXMLString() 243 sal_Int32 nStartPos, sal_Int32 nEndPos, in lcl_getCellRangeAddressFromXMLString() argument 251 sal_Int32 nDelimiterPos = nStartPos; in lcl_getCellRangeAddressFromXMLString() 318 sal_Int32 nStartPos = 0; in getCellRangeFromXMLString() local 319 sal_Int32 nEndPos = nStartPos; in getCellRangeFromXMLString() 328 nStartPos = ++nEndPos, i++ ) in getCellRangeFromXMLString() [all …]
|
/trunk/main/sd/source/ui/unoidl/ |
H A D | unosrch.cxx | 532 …if( (aStartSel.nStartPos == aEndSel.nStartPos) || ( (aStartSel.nStartPos == (aEndSel.nStartPos - 1… in Search() 538 *pPos++ = aStartSel.nStartPos; in Search() 550 nLastPos = aStartSel.nStartPos; in Search() 572 DBG_ASSERT( aEndSel.nStartPos == aStartSel.nStartPos, "Search is not working" ); in Search() 602 sal_Int32 nStartPos; in Search() local 604 for( nStartPos = 0; nStartPos < nTextLen; nStartPos++ ) in Search() 606 if( pConvertPara[nStartPos] == aSel.nStartPara && pConvertPos[nStartPos] == aSel.nStartPos ) in Search() 614 ESelection aSelection( (sal_uInt32)pConvertPara[nStartPos], (sal_uInt16)pConvertPos[nStartPos], in Search() 655 nStartPos = nFound; in Search() 660 if( (nStartPos > 0 && aText.getStr()[nStartPos-1] > ' ') || in Search() [all …]
|
/trunk/main/svtools/source/contnr/ |
H A D | svtreebx.cxx | 231 long nStartPos = TAB_STARTPOS; in SetTabs() local 267 AddTab( nStartPos, TABFLAGS_TEXT ); in SetTabs() 274 nStartPos += nContextWidthDIV2; in SetTabs() 280 AddTab( nStartPos, TABFLAGS_TEXT ); in SetTabs() 287 nStartPos += nCheckWidthDIV2; in SetTabs() 297 AddTab( nStartPos, TABFLAGS_TEXT ); in SetTabs() 301 nStartPos += nCheckWidthDIV2; in SetTabs() 2491 long nStartPos = TAB_STARTPOS; in GetTextOffset() local 2539 nStartPos += nCheckWidthDIV2; in GetTextOffset() 2550 nStartPos += nCheckWidthDIV2; in GetTextOffset() [all …]
|
/trunk/main/sw/source/core/unocore/ |
H A D | XMLRangeHelper.cxx | 124 sal_Int32 nStartPos, sal_Int32 nEndPos, in lcl_getSingleCellAddressFromXMLString() argument 131 …::rtl::OUString aCellStr = rXMLString.copy( nStartPos, nEndPos - nStartPos + 1 ).toAsciiUpperCase(… in lcl_getSingleCellAddressFromXMLString() 168 sal_Int32 nStartPos, sal_Int32 nEndPos, in lcl_getCellAddressFromXMLString() argument 178 sal_Int32 nDelimiterPos = nStartPos; in lcl_getCellAddressFromXMLString() 199 if( nDelimiterPos > nStartPos ) in lcl_getCellAddressFromXMLString() 243 sal_Int32 nStartPos, sal_Int32 nEndPos, in lcl_getCellRangeAddressFromXMLString() argument 251 sal_Int32 nDelimiterPos = nStartPos; in lcl_getCellRangeAddressFromXMLString() 312 sal_Int32 nStartPos = 0; in getCellRangeFromXMLString() local 313 sal_Int32 nEndPos = nStartPos; in getCellRangeFromXMLString() 322 nStartPos = ++nEndPos, i++ ) in getCellRangeFromXMLString() [all …]
|
/trunk/main/i18npool/inc/ |
H A D | breakiteratorImpl.hxx | 57 virtual sal_Int32 SAL_CALL nextCharacters( const rtl::OUString& Text, sal_Int32 nStartPos, 64 virtual Boundary SAL_CALL previousWord( const rtl::OUString& Text, sal_Int32 nStartPos, 66 virtual Boundary SAL_CALL nextWord( const rtl::OUString& Text, sal_Int32 nStartPos, 79 virtual sal_Int32 SAL_CALL beginOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos, 81 virtual sal_Int32 SAL_CALL endOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos, 91 virtual sal_Int32 SAL_CALL beginOfScript( const rtl::OUString& Text, sal_Int32 nStartPos, 93 virtual sal_Int32 SAL_CALL endOfScript( const rtl::OUString& Text, sal_Int32 nStartPos, 95 virtual sal_Int32 SAL_CALL previousScript( const rtl::OUString& Text, sal_Int32 nStartPos, 97 virtual sal_Int32 SAL_CALL nextScript( const rtl::OUString& Text, sal_Int32 nStartPos, 106 virtual sal_Int32 SAL_CALL nextCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos, [all …]
|
H A D | textconversion.hxx | 50 getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 57 getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 64 … getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 110 getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 117 getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 124 … getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 146 …getCharConversions(const rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool to… 166 getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 173 getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, 180 … getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, [all …]
|
/trunk/main/cppcanvas/source/mtfrenderer/ |
H A D | textaction.cxx | 630 sal_Int32 nStartPos, 637 sal_Int32 nStartPos, 859 maStringContext( rText, nStartPos, nLen ), in EffectTextAction() 899 maStringContext( rText, nStartPos, nLen ), in EffectTextAction() 1081 nStartPos, in TextArrayAction() 1104 nStartPos, in TextArrayAction() 1313 nStartPos, in EffectTextArrayAction() 1354 nStartPos, in EffectTextArrayAction() 2059 nStartPos, in createOutline() 2148 nStartPos, in createTextAction() [all …]
|
/trunk/main/sw/source/filter/ww8/dump/ |
H A D | ww8scan.cxx | 2049 if( nStartPos >= 0 ) in WW8PLCFspecial() 2158 if( nStartPos >= 0 ) in WW8PLCF() 2177 if( nStartPos >= 0 ) in WW8PLCF() 2322 if( nStartPos >= 0 ) in WW8PLCFpcd_Iter() 3173 p->nStartPos = rSBase.WW8Fc2Cp( p->nStartPos ); in GetSprms() 3861 WW8_CP nStartPos; in GetLen() local 3869 nNum -= nStartPos; in GetLen() 4033 ASSERT((LONG_MAX == nStartPos) || (nStartPos <= nEndPos), in ReduceByOffset() 4045 nStartPos = 0; in ReduceByOffset() 4564 if (pPcd && ((p->nStartPos > pPcd->nStartPos) || in AdvSprm() [all …]
|
/trunk/main/editeng/inc/editeng/ |
H A D | editdata.hxx | 129 xub_StrLen nStartPos; member 133 ESelection() : nStartPara( 0 ), nStartPos( 0 ), nEndPara( 0 ), nEndPos( 0 ) {} in ESelection() 137 nStartPos( nStPos ), in ESelection() 145 nStartPos( nPos ), in ESelection() 161 return ( nStartPara != nEndPara ) || ( nStartPos != nEndPos ); in HasRange() 166 return ( ( nStartPara == 0 ) && ( nStartPos == 0 ) && in IsZero() 172 return ( ( nStartPara == rS.nStartPara ) && ( nStartPos == rS.nStartPos ) && in IsEqual() 182 ( ( nEndPara == rS.nStartPara ) && ( nEndPos < rS.nStartPos ) && !IsEqual( rS ) ) ) in IsLess() 207 else if ( ( nStartPara == nEndPara ) && ( nStartPos > nEndPos ) ) in Adjust() 212 sal_uInt32 nSPar = nStartPara; sal_uInt16 nSPos = nStartPos; in Adjust() [all …]
|
/trunk/main/sc/source/core/tool/ |
H A D | reffind.cxx | 88 void ScRefFinder::ToggleRel( xub_StrLen nStartPos, xub_StrLen nEndPos ) in ToggleRel() argument 97 if ( nEndPos < nStartPos ) in ToggleRel() 99 xub_StrLen nTemp = nStartPos; nStartPos = nEndPos; nEndPos = nTemp; in ToggleRel() 101 while (nStartPos > 0 && IsText(pSource[nStartPos - 1]) ) in ToggleRel() 102 --nStartPos; in ToggleRel() 114 xub_StrLen nLoopStart = nStartPos; in ToggleRel() 139 xub_StrLen nAbsStart = nStartPos+aResult.Len()+aSep.Len(); in ToggleRel() 155 String aTotal = aFormula.Copy( 0, nStartPos ); in ToggleRel()
|
/trunk/main/sc/source/core/data/ |
H A D | olinetab.cxx | 332 void ScOutlineArray::RemoveSub( SCCOLROW nStartPos, SCCOLROW nEndPos, sal_uInt16 nLevel ) in RemoveSub() argument 346 if ( nStart>=nStartPos && nEnd<=nEndPos ) in RemoveSub() 376 if ( nStart>=nStartPos && nEnd<=nEndPos ) in PromoteSub() 572 void ScOutlineArray::InsertSpace( SCCOLROW nStartPos, SCSIZE nSize ) in InsertSpace() argument 578 if ( pEntry->GetStart() >= nStartPos ) in InsertSpace() 585 if ( nEnd >= nStartPos || ( nEnd+1 >= nStartPos && !pEntry->IsHidden() ) ) in InsertSpace() 595 sal_Bool ScOutlineArray::DeleteSpace( SCCOLROW nStartPos, SCSIZE nSize ) in DeleteSpace() argument 597 SCCOLROW nEndPos = nStartPos + nSize - 1; in DeleteSpace() 609 if ( nEntryEnd >= nStartPos ) in DeleteSpace() 626 pEntry->SetSize( static_cast<SCSIZE>(nStartPos-nEntryStart) ); in DeleteSpace() [all …]
|
/trunk/main/sw/source/filter/ww8/ |
H A D | ww8scan.cxx | 2228 if( nStartPos >= 0 ) in WW8PLCFspecial() 2338 WW8_CP nStartPos ) in WW8PLCF() argument 2351 if( nStartPos >= 0 ) in WW8PLCF() 2371 if( nStartPos >= 0 ) in WW8PLCF() 3513 p->nStartPos = rSBase.WW8Fc2Cp( p->nStartPos ); in GetSprms() 3976 p->nStartPos = nP; in GetSprms() 4286 WW8_CP nStartPos; in GetLen() local 4294 nNum -= nStartPos; in GetLen() 4479 ASSERT((WW8_CP_MAX == nStartPos) || (nStartPos <= nEndPos), in ReduceByOffset() 5011 if (pPcd && ((p->nStartPos > pPcd->nStartPos) || in AdvSprm() [all …]
|
/trunk/main/svl/source/filerec/ |
H A D | filerec.cxx | 56 #define SFX_REC_MINI_HEADER(nPreTag,nStartPos,nEndPos) \ argument 58 sal_uInt32(nEndPos-nStartPos-SFX_REC_HEADERSIZE_MINI) << 8 ) 312 DBG( DbgOutf( "SfxFileRec: reading record at %ul", nStartPos ) ); in SfxMiniRecordReader() 325 pStream->Seek( nStartPos ); in SfxMiniRecordReader() 383 sal_uInt32 nStartPos = pStream->Tell(); in SfxMiniRecordReader() local 413 pStream->Seek( nStartPos ); in SfxMiniRecordReader() 525 sal_uInt32 nStartPos = pStream->Tell(); in SfxSingleRecordReader() local 546 sal_uInt32 nStartPos = pStream->Tell(); in SfxSingleRecordReader() local 553 pStream->Seek( nStartPos ); in SfxSingleRecordReader() 578 sal_uInt32 nStartPos = _pStream->Tell(); in FindHeader_Impl() local [all …]
|
/trunk/main/oox/source/core/ |
H A D | relations.cxx | 112 sal_Int32 nStartPos = 0; in getFragmentPathFromRelation() local 113 while( nStartPos < rRelation.maTarget.getLength() ) in getFragmentPathFromRelation() 115 sal_Int32 nSepPos = rRelation.maTarget.indexOf( '/', nStartPos ); in getFragmentPathFromRelation() 118 …if( (nStartPos + 2 == nSepPos) && (rRelation.maTarget[ nStartPos ] == '.') && (rRelation.maTarget[… in getFragmentPathFromRelation() 121 … aPath = lclAppendFileName( aPath, rRelation.maTarget.copy( nStartPos, nSepPos - nStartPos ) ); in getFragmentPathFromRelation() 123 nStartPos = nSepPos + 1; in getFragmentPathFromRelation()
|
/trunk/main/editeng/source/editeng/ |
H A D | impedit4.cxx | 282 sal_uInt16 nStartPos = 0; in WriteText() local 287 nStartPos = aSel.Min().GetIndex(); in WriteText() 627 sal_uInt16 nStartPos = 0; in WriteRTF() local 636 nStartPos = aSel.Min().GetIndex(); in WriteRTF() 638 if ( nStartPos != 0 ) in WriteRTF() 699 nS = nStartPos; in WriteRTF() 1088 sal_uInt16 nStartPos = 0; in CreateBinTextObject() local 1112 pC->GetText() = pNode->Copy( nStartPos, nEndPos-nStartPos ); in CreateBinTextObject() 1127 pX->GetStart() = ( pX->GetStart() > nStartPos ) ? pX->GetStart()-nStartPos : 0; in CreateBinTextObject() 2749 sal_uInt16 nStartPos = 0; in ImpSearch() local [all …]
|