/aoo42x/main/comphelper/source/misc/ |
H A D | accessibletexthelper.cxx | 146 rBoundary.startPos = nIndex; in implGetGlyphBoundary() 177 rBoundary.startPos = nIndex; in implGetWordBoundary() 202 rBoundary.startPos = nIndex; in implGetSentenceBoundary() 215 rBoundary.startPos = 0; in implGetParagraphBoundary() 228 rBoundary.startPos = nIndex; in implGetParagraphBoundary() 242 rBoundary.startPos = 0; in implGetLineBoundary() 247 rBoundary.startPos = nIndex; in implGetLineBoundary() 475 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex() 508 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex() 525 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex() [all …]
|
/aoo42x/main/qadevOOo/tests/java/ifc/i18n/ |
H A D | _XBreakIterator.java | 224 i = bounds.startPos; in _previousWord() 247 + iBounds.startPos; in _getWordBoundary() 256 bRes = bRes && iBounds.startPos == bounds.startPos; in _getWordBoundary() 278 + iBounds.startPos; in _getWordType() 588 int startPos = ((Boundary)vCharBlockBounds.get(i + 1)).startPos; in _beginOfCharBlock() local 589 bCharBlockRes &= endPos == startPos; in _beginOfCharBlock() 593 int startPos = ((Boundary)vCharBlockBounds.get(0)).startPos; in _beginOfCharBlock() local 594 bCharBlockRes &= startPos == 0; in _beginOfCharBlock() 631 if (bounds.startPos - 1 < 0) continue; in _nextCharBlock() 634 if (iPos != bounds.startPos) { in _nextCharBlock() [all …]
|
/aoo42x/main/i18npool/source/search/ |
H A D | textsearch.cxx | 222 sal_Int32 newStartPos = startPos; in searchForward() 234 if( startPos ) in searchForward() 278 if( startPos ) in searchForward() 279 startPos = FindPosInSeq_Impl( offset, startPos ); in searchForward() 376 startPos = FindPosInSeq_Impl( offset, startPos ); in searchBackward() 795 if( ++startPos >= endPos) in RESrchFrwrd() 825 startPos = searchStr.getLength(); in RESrchBkwrd() 842 if( nFoundEnd >= startPos) in RESrchBkwrd() 892 nStt = aWBnd.startPos < startPos ? startPos : aWBnd.startPos; in ApproxSrchFrwrd() 939 nStt = aWBnd.startPos < endPos ? endPos : aWBnd.startPos; in ApproxSrchBkwrd() [all …]
|
H A D | textsearch.hxx | 70 sal_Int32 startPos, sal_Int32 endPos ); 87 sal_Int32 startPos, sal_Int32 endPos ) 91 sal_Int32 startPos, sal_Int32 endPos ) 98 sal_Int32 startPos, sal_Int32 endPos ) 102 sal_Int32 startPos, sal_Int32 endPos ) 112 sal_Int32 startPos, sal_Int32 endPos ) 116 sal_Int32 startPos, sal_Int32 endPos ) 137 sal_Int32 startPos, sal_Int32 endPos ) 141 sal_Int32 startPos, sal_Int32 endPos )
|
/aoo42x/main/i18npool/source/breakiterator/ |
H A D | breakiterator_unicode.cxx | 248 if( result.startPos >= Text.getLength() || result.startPos == BreakIterator::DONE ) in nextWord() 249 result.endPos = result.startPos; in nextWord() 254 result.startPos = word.aBreakIterator->following(result.startPos); in nextWord() 258 result.endPos = result.startPos; in nextWord() 270 if( result.startPos < 0 || result.startPos == BreakIterator::DONE) in previousWord() 271 result.endPos = result.startPos; in previousWord() 276 result.startPos = word.aBreakIterator->preceding(result.startPos); in previousWord() 280 result.endPos = result.startPos; in previousWord() 300 result.startPos = 0; in getWordBoundary() 311 result.startPos = result.endPos; in getWordBoundary() [all …]
|
H A D | xdictionary.cxx | 180 if (length != boundary.endPos - boundary.startPos) return sal_False; in equals() 183 if (contents[i] != str[i + boundary.startPos]) return sal_False; in equals() 198 segBoundary.endPos = segBoundary.startPos = pos; in seekSegment() 205 segBoundary.startPos = indexUtf16; in seekSegment() 220 indexUtf16 = segBoundary.startPos; in seekSegment() 246 sal_Int32 len = wordBoundary.endPos - wordBoundary.startPos; in getCache() 351 boundary.startPos = boundary.endPos = anyPos < 0 ? 0 : len; in getWordBoundary() 358 sal_Int32 startPos = aCache.wordboundary[i - 1]; in getWordBoundary() local 360 if (!bDirection && startPos > 0 && startPos == (anyPos - boundary.startPos)) in getWordBoundary() 367 boundary.endPos = boundary.startPos; in getWordBoundary() [all …]
|
H A D | breakiteratorImpl.cxx | 109 result.endPos = result.startPos = 0; in nextWord() 111 result.endPos = result.startPos = len; in nextWord() 117 if ( nStartPos != result.startPos) { in nextWord() 123 if (result.startPos < nStartPos) result.startPos = nStartPos; in nextWord() 139 result.endPos = result.startPos = 0; in previousWord() 142 result.endPos = result.startPos = len; in previousWord() 150 result.startPos = nPos; in previousWord() 165 result.endPos = result.startPos = 0; in getWordBoundary() 167 result.endPos = result.startPos = len; in getWordBoundary() 175 result.endPos = result.startPos = 0; in getWordBoundary() [all …]
|
H A D | breakiterator_cjk.cxx | 56 if (result.endPos - result.startPos != 1 || in previousWord() 57 getScriptType(text, result.startPos) == ScriptType::ASIAN) in previousWord() 59 … result = BreakIterator_Unicode::getWordBoundary(text, result.startPos, nLocale, wordType, true); in previousWord() 73 if (result.endPos - result.startPos != 1 || in nextWord() 74 getScriptType(text, result.startPos) == ScriptType::ASIAN) in nextWord() 76 … result = BreakIterator_Unicode::getWordBoundary(text, result.startPos, nLocale, wordType, true); in nextWord() 77 if (result.startPos > anyPos) in nextWord() 91 if (result.endPos - result.startPos != 1 || in getWordBoundary() 92 getScriptType(text, result.startPos) == ScriptType::ASIAN) in getWordBoundary()
|
H A D | breakiterator_th.cxx | 132 sal_Int32 len = cachedText.getLength(), startPos, endPos; in makeIndex() local 134 startPos = nStartPos; in makeIndex() 135 while (startPos > 0 && is_Thai(str[startPos-1])) startPos--; in makeIndex() 140 pos = start = end = startPos; in makeIndex()
|
/aoo42x/main/i18npool/source/nativenumber/ |
H A D | nativenumbersupplier.cxx | 75 const sal_Unicode *src = inStr.getStr() + startPos; in AsciiToNativeChar() 94 offset[i] = startPos + i; in AsciiToNativeChar() 120 offset[count] = begin + startPos; in AsciiToNative_numberMaker() 128 offset[count] = begin + startPos; in AsciiToNative_numberMaker() 134 offset[count] = begin + startPos; in AsciiToNative_numberMaker() 140 offset[count] = begin + startPos; in AsciiToNative_numberMaker() 163 offset[count] = begin + startPos; in AsciiToNative_numberMaker() 174 sal_Int32 strLen = inStr.getLength() - startPos; in AsciiToNative() 195 offset[count] = i + startPos; in AsciiToNative() 308 sal_Int32 strLen = inStr.getLength() - startPos; in NativeToAscii() [all …]
|
/aoo42x/main/sw/source/core/txtnode/ |
H A D | txtedt.cxx | 705 if (aBndry.startPos == aBndry.endPos) in GetCurWord() 713 if (aBndry.endPos != aBndry.startPos && IsSymbol( (xub_StrLen)aBndry.startPos )) in GetCurWord() 714 aBndry.endPos = aBndry.startPos; in GetCurWord() 785 if(aBound.endPos == aBound.startPos) in NextWord() 808 if ( aBound.startPos <= nBegin ) in NextWord() 821 if ( aBound.startPos < nBegin ) in NextWord() 826 nScriptBegin = aBound.startPos + in NextWord() 850 aBound.startPos = Max( (xub_StrLen)aBound.startPos, nStartPos ); in NextWord() 852 nBegin = (xub_StrLen)aBound.startPos; in NextWord() 1709 if (aEndBndry.startPos >= nEnd) in TransliterateText() [all …]
|
/aoo42x/main/i18npool/source/transliteration/ |
H A D | transliteration_Numeric.cxx | 67 transliteration_Numeric::transliterateBullet( const OUString& inStr, sal_Int32 startPos, sal_Int32 … in transliterateBullet() argument 70 sal_Int32 number = -1, j = 0, endPos = startPos + nCount; in transliterateBullet() 81 for (sal_Int32 i = startPos; i < endPos; i++) { in transliterateBullet() 84 startPos = i; in transliterateBullet() 92 offset[j] = startPos; in transliterateBullet() 95 for (sal_Int32 k = startPos; k < i; k++) { in transliterateBullet() 102 offset[j] = startPos; in transliterateBullet() 121 transliteration_Numeric::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, in transliterate() argument 125 return transliterateBullet( inStr, startPos, nCount, offset); in transliterate() 127 …return NativeNumberSupplier(useOffset).getNativeNumberString( inStr.copy(startPos, nCount), aLocal… in transliterate()
|
H A D | transliteration_body.cxx | 107 const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, in transliterate() argument 143 const sal_Unicode *in = inStr.getStr() + startPos; in transliterate() 155 offset[j] = i + startPos; in transliterate() 169 const sal_Unicode *in = inStr.getStr() + startPos; in transliterate() 204 pArr[j] = i + startPos; in transliterate() 281 return this->transliterate(inStr, startPos, nCount, offset); in folding() 386 const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, in transliterate_titlecase_Impl() argument 391 const OUString aText( inStr.copy( startPos, nCount ) ); in transliterate_titlecase_Impl() 441 const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, in transliterate() argument 445 return transliterate_titlecase_Impl( inStr, startPos, nCount, aLocale, offset ); in transliterate() [all …]
|
H A D | transliterationImpl.cxx | 301 if ( startPos == 0 && nCount == inStr.getLength() ) in transliterate() 305 OUString tmpStr = inStr.copy(startPos, nCount); in transliterate() 307 if ( startPos ) in transliterate() 312 pArr[j] += startPos; in transliterate() 319 OUString tmpStr = inStr.copy(startPos, nCount); in transliterate() 322 pArr[j] = startPos + j; in transliterate() 356 if ( startPos == 0 && nCount == inStr.getLength() ) in folding() 362 if ( startPos ) in folding() 367 pArr[j] += startPos; in folding() 374 OUString tmpStr = inStr.copy(startPos, nCount); in folding() [all …]
|
H A D | halfwidthToFullwidth.cxx | 51 halfwidthToFullwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, S… in transliterate() argument 57 …const OUString& newStr = transliteration_OneToOne::transliterate( inStr, startPos, nCount, offset); in transliterate() 81 halfwidthKatakanaToFullwidthKatakana::transliterate( const OUString& inStr, sal_Int32 startPos, sal… in transliterate() argument 87 …const OUString& newStr = transliteration_OneToOne::transliterate( inStr, startPos, nCount, offset); in transliterate() 111 halfwidthToFullwidthLikeJIS::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nC… in transliterate() argument 117 …const OUString& newStr = transliteration_OneToOne::transliterate( inStr, startPos, nCount, offset); in transliterate()
|
H A D | fullwidthToHalfwidth.cxx | 56 fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, S… in transliterate() argument 60 …const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, o… in transliterate() 91 fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_Int32 startPos, sal… in transliterate() argument 95 …const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, o… in transliterate() 126 fullwidthToHalfwidthLikeASC::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nC… in transliterate() argument 130 …const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, o… in transliterate()
|
H A D | textToPronounce_zh.cxx | 58 TextToPronounce_zh::folding(const OUString & inStr, sal_Int32 startPos, in folding() argument 62 const sal_Unicode * chArr = inStr.getStr() + startPos; in folding() 64 if (startPos < 0) in folding() 67 if (startPos + nCount > inStr.getLength()) in folding() 68 nCount = inStr.getLength() - startPos; in folding()
|
H A D | transliteration_Ignore.cxx | 94 transliteration_Ignore::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, in transliterate() argument 98 return this->folding( inStr, startPos, nCount, offset); in transliterate() 130 transliteration_Ignore::folding( const OUString& inStr, sal_Int32 startPos, in folding() argument 138 const sal_Unicode * src = inStr.getStr() + startPos; in folding() 146 position = startPos; in folding()
|
/aoo42x/main/soltools/support/ |
H A D | simstr.cxx | 228 Simstr::get(int startPos, int anzahl) const in get() argument 230 if (startPos >= len || startPos < 0 || anzahl < 1) in get() 233 int anz = len - startPos < anzahl ? len - startPos : anzahl; in get() 236 memcpy(ret.sz, sz+startPos, anz); in get() 669 Simstr::replace(int startPos, int anzahl, const Simstr & S) in replace() argument 671 if (startPos >= len || startPos < 0 || anzahl < 1) in replace() 674 int anz = len - startPos < anzahl ? len - startPos : anzahl; in replace() 678 memcpy(result,sz,startPos); in replace() 679 memcpy(result+startPos, S.sz, S.len); in replace() 680 memcpy(result+startPos+S.len, sz+startPos+anz, len-startPos-anz+1); in replace()
|
/aoo42x/main/sw/source/core/access/ |
H A D | accpara.cxx | 799 rBound.startPos = nPos; in GetCharBoundary() 874 rBound.startPos = nPos; in GetWordBoundary() 913 rBound.startPos = 0; in GetParagraphBoundary() 960 rBound.startPos = nPos; in GetGlyphBoundary() 1052 rBound.startPos = max(nNext,(xub_StrLen)rBound.startPos); in GetTextBoundary() 1063 rBound.startPos = max(nLast,(xub_StrLen)rBound.startPos); in GetTextBoundary() 1067 rBound.startPos = max(nLast,(xub_StrLen)rBound.startPos); in GetTextBoundary() 2928 aResult.SegmentText = rText.copy( aBound.startPos, aBound.endPos - aBound.startPos ); in getTextAtIndex() 2968 while(preBound.startPos==aBound.startPos && nIndex > 0) in getTextBeforeIndex() 2999 aResult.SegmentText = rText.copy( aBound.startPos, aBound.endPos - aBound.startPos ); in getTextBeforeIndex() [all …]
|
/aoo42x/main/editeng/source/misc/ |
H A D | hangulhanja.cxx | 405 sal_Bool bFoundPrimary = aResult.Boundary.startPos < aResult.Boundary.endPos; in implUpdateSuggestions() 418 if ( aSecondResult.Boundary.startPos < aSecondResult.Boundary.endPos ) in implUpdateSuggestions() 425 || ( aSecondResult.Boundary.startPos < aResult.Boundary.startPos ) in implUpdateSuggestions() 443 m_nCurrentStartIndex = aResult.Boundary.startPos; in implUpdateSuggestions() 449 if( m_nCurrentStartIndex == aResult.Boundary.startPos in implUpdateSuggestions() 450 && aResult.Boundary.endPos != aResult.Boundary.startPos ) in implUpdateSuggestions() 1026 bool bHaveToHanja = ( aToHanja.Boundary.startPos < aToHanja.Boundary.endPos ); in IMPL_LINK() 1027 bool bHaveToHangul = ( aToHangul.Boundary.startPos < aToHangul.Boundary.endPos ); in IMPL_LINK() 1032 if ( aToHangul.Boundary.startPos < aToHanja.Boundary.startPos ) in IMPL_LINK()
|
/aoo42x/main/sc/source/core/tool/ |
H A D | rangeutl.cxx | 66 ScRefAddress startPos; in MakeArea() local 76 nSuccess = ConvertDoubleRef( pDoc, aStrArea, nTab, startPos, endPos, rDetails ); in MakeArea() 79 rArea = ScArea( startPos.Tab(), in MakeArea() 80 startPos.Col(), startPos.Row(), in MakeArea() 207 ScRefAddress startPos; in IsAbsArea() local 210 bIsAbsArea = ConvertDoubleRef( pDoc, rAreaStr, nTab, startPos, endPos, rDetails ); in IsAbsArea() 214 startPos.SetRelCol( sal_False ); in IsAbsArea() 215 startPos.SetRelRow( sal_False ); in IsAbsArea() 216 startPos.SetRelTab( sal_False ); in IsAbsArea() 223 *pCompleteStr = startPos.GetRefString( pDoc, MAXTAB+1, rDetails ); in IsAbsArea() [all …]
|
/aoo42x/main/i18nutil/source/utility/ |
H A D | widthfolding.cxx | 48 OUString widthfolding::decompose_ja_voiced_sound_marks (const OUString& inStr, sal_Int32 startPos, … in decompose_ja_voiced_sound_marks() argument 60 position = startPos; in decompose_ja_voiced_sound_marks() 64 const sal_Unicode* src = inStr.getStr() + startPos; in decompose_ja_voiced_sound_marks() 109 OUString widthfolding::compose_ja_voiced_sound_marks (const OUString& inStr, sal_Int32 startPos, sa… in compose_ja_voiced_sound_marks() argument 116 const sal_Unicode* src = inStr.getStr() + startPos; in compose_ja_voiced_sound_marks() 137 position = startPos; in compose_ja_voiced_sound_marks()
|
/aoo42x/main/offapi/com/sun/star/util/ |
H A D | XTextSearch.idl | 49 /** search forward in the searchStr, starts at startPos and ends by endPos. 53 SearchResult searchForward ([in] string searchStr, [in] long startPos, [in] long endPos ); 55 /** search backward in the searchStr, starts at startPos and ends by endPos. 56 The endPos must be lower then the startPos, because the function searches backward! 60 SearchResult searchBackward ([in] string searchStr, [in] long startPos, [in] long endPos );
|
/aoo42x/main/sdext/source/presenter/ |
H A D | PresenterTextView.cxx | 790 AddWord(nWidth, aCurrentLine, aWordBoundary.startPos, rpFont); in Format() 794 if (aWordBoundary.startPos > maWordBoundaries.back()) in Format() 795 maWordBoundaries.push_back(aWordBoundary.startPos); in Format() 797 if (aWordBoundary.endPos>aWordBoundary.startPos) in Format() 800 if (aWordBoundary.startPos<0 || aWordBoundary.endPos<0) in Format() 807 if (aCurrentLine.endPos>aCurrentLine.startPos) in Format() 917 nLineStart = rCurrentLine.startPos; in AddWord() 945 Line aLine (rCurrentLine.startPos, rCurrentLine.endPos); in AddLine() 972 rCurrentLine.startPos = rCurrentLine.endPos; in AddLine() 1135 nCurrentIndex = aWordBoundary.startPos; in GetWordTextSegment() [all …]
|