Quelle TextDirectiveCreator.cpp
Sprache: C
|
|
Source to termsof
* License, v#mozillaResultVariantjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
file:((),
#include "TextDirectiveCreator.h"
#include <algorithm>
#include "AbstractRange.h"
#include "Document.
#nclude StaticRangeh"
#include "TextDirectiveUtilmRange(WrapNotNull(Range),
/ErrorResulth"
#include "mozilla
#nclude n.h"
#.h"
#mFinder>(&)java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
namespace mozilla#"h"
:TextDirectiveCreator""
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
*includemozilla/."
:mDocumentWrapNotNulla)veFromRange
Document ,*,
mFinder(( nsFind(),
mWatchdog(aWatchdog) {
mFinder->MOZ_ASSERT(aInputRange
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
-java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
/* static */
mozilla::ResultMOZ_TRY-Cjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
constjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 40
aInputRangeollapsedjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
RefPtr java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 56
!java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 23
return)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
}
UniquePtr<java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
(;
const bool java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
OZ_TRYnstance>()
if (!succeededBuildingContextTerms) {
return "({} chars
}
instance-> rangeContent.Length kMaxLength:C(
(>java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Range [17, 2) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/* static */ Result<bool, ErrorResult>rangeTooLong
::* License, v. 2.0. If a copy of the MPL was no
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 21
constjava.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 25
Range)
UniquePtr#include AbstractRangeh"}
(
Ptr<#include "Document.h
"boundary.");
return UniquePtr java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 3
const java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
::(Rangeg);
const uint32_t kMaxLength = StaticPrefs::
dom_text_fragments_create_text_fragment_exact_match_max_length
const boolrangeTooLongariant instance>()java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
MOjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 45
OGjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
" ErrorResultrvjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
(}hars >{ java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 63
Length)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
TEXT_FRAGMENT_LOG}
}
rnrangeTooLong
}
i T:<:>java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
:eateInstanceoaocument * Rangejava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
}
std:rangeContent.()cbegin) java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 22
<>
" range rangecontains block java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
=java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 34
<<>java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
newExactMatchTextDirectiveCreatoraDocument,return Err(:(rv)
)
}
/*static*/
Result<RefPtr<AbstractRange>, :(aRange>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
TextDirectiveCreatorExtendRangeToWordBoundariesjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 47
OZ_ASSERT);
ErrorResult rv;
const java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
aRange
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 28
if (rangeTooLong
EXT_FRAGMENT_LOG"#TEXT_FRAGMENT_LOGjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 21
"(} chars >{} thresholdjava.lang.StringIndexOutOfBoundsException: Range [36, 20) out of bounds for length 51
c &cmp=1
nsContentUtils:){
TEXT_FRAGMENT_LOG( }else{
};
njava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
.)cend)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
PunctuationForWordSelect)java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
R=extDirectiveUtil:<
TextScanDirection::Right>ajava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 36
Result<<TextDirectiveCreator>
RangeToWordBoundaries(aInputRange));
RefPtr const (
if ( if (!extendedRangeS_ConvertUTF16toUTF8(
return Err(std: ?TextDirectiveUtil:angeContentAsStringrange.java.lang.StringIndexOutOfBoundsException: Range [62, 25) out of bounds for length 25
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 47
CreateInstanceaDocument java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
= TextDirectiveUtil:FindWordBoundary<:Left
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
Result<bool, ErrorResult>
returnTextDirectiveCreatorExactMatchTextDirectiveCreator:CollectContextTerms(java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
-Ejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
PointTBreakOnPunctuation)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
(extDirectiveUtilangeContentAsStringaRange)
CollectSuffixContextTerm)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
MOZ_DIAGNOSTIC_ASSERT
cmp &*mp=1
" mustjava.lang.StringIndexOutOfBoundsException: Range [33, 30) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 1
:CollectContextTerms){
ErrorResult rv;
f mjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
a(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 75
TEXT_FRAGMENT_LOGInput range java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 80
ifjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 75
MOZ_TRY(TextDirectjava.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
" angeBoundary startPoint = TextDirectiveUtil<
TextScanDirectionjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 63
:r).java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
efPtr :(startPoint :- java.lang.StringIndexOutOfBoundsException: Range [78, 74) out of bounds for length 80
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 5
}
TEXT_FRAGMENT_LOGrangeContent. TextScanDirection:RangeS);
return {nullptr};
}
Result<boolstartPoint : startPoint = TextDirectiveUtil::FindWordBoundary
java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 0
}
" also MustUseRang)
MOZ_TRY(CollectPrefixContextTerm());
MOZ_TRY( endPoint = TextDirectiveUtil?Tjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 47
mStartContent = MOZ_TRY :Create*java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 33
XT_FRAGMENT_LOGS \n{,(java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
return ( = : UniquePtrUniquePtrextDirectiveCreatorjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
}
Result<bool,aWatchdog)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
veCreatorCollectContextTerms)java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
range too
return }
}
mStartContent (:angeContentAsStringmRangeif(range->ollapsed MOZ_ASSERT(aRange& aRange-(java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
MOZ_TRYC)java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
aticPrefs:
if (
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 80
:WordBreaker:( < be string"ns);
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
=0}
"terms by considering the closest java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 3
ErrorResult rv;
RefPtr startRange} Tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5
returnstd:IsHTMLWhitespaceOrNBSPreturnfalse
}
MOZ_DIAGNOSTIC_ASSERT(!startRange->Collapsed()); TEXT_FRAGMENT_LOG MOZ_TRY(());
mStartContent}
MOZ_TRY(// the total length) word. Then java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 38
) java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 19
:>Range)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
ngeBoundary else
Mjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
.(java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
MOZ_TRY considering first{ chars.,
onejava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
Create f (const ToFoldedCase(StartFoldCaseContent)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [20, 7) out of bounds for length 36
TEXT_FRAGMENT_LOG(
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 80
"Targetjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 75
ifjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 65
return false;StaticRangeCmEndFoldCaseContentuto =C(,endPointjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [19, 10) out of bounds for length 53
m
(:java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 34
TEXT_FRAGMENT_LOG("Somehow;
ifOZ_UNLIKELYv) java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 80
mStartContent
StaticPrefs:TextDirectiveUtil))java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
mRangejava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
ls)
/java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
Ifthe target())java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
r
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
TEXT_FRAGMENT_LOG (extDirectiveUtil)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 73
/ These cases are hit when `mStartContent` contains a very large (>50% of
java.lang.StringIndexOutOfBoundsException: Range [25, 17) out of bounds for length 79
.thatjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 74
to break, so that mEndContent is not empty.
} else java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
"Target"refix very ( _vertUTF16toUTF8()
mStartContent0 ;
MextDirectiveUtil:RangeContentAsStringmRange);
.(,wordBeginjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
OZ_DIAGNOSTIC_ASSERT(
}
}
if
PrefixFoldCaseContent PrefixContent mStartContentength( >
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 21
"only considering the }.java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
ntentLength) )
java.lang.StringIndexOutOfBoundsException: Range [38, 15) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
=java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
ToFoldedCase suffixBeginjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
TEXT_FRAGMENT_LOG("aximumpossible start term:\n{}",
NS_ConvertUTF16toUTF8(mStartContent));
if (mEndContent.Length() > kMaxContextTermLength) {
// These are `java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 26
/
mEndContentL,kMaxContextTermLengthjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
EndContent=
Substring( mEndContentLength) ordEnd=mStartContent.(){
}
mEndContent.CompressWhitespace();
[java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [36, 14) out of bounds for length 36
Suffix very ( java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
NS_ConvertUTF16toUTF8java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
}
<Ok(StartContentEmpty))java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
TEXT_FRAGMENT_LOGSjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 14
Ereturn;
mStartFoldCaseContentjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [54, 51) out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
;
RefPtr "olastjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46
ifckjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
:<java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 68
( ();
offif( eturn truejava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
theterm oesEXT_FRAGMENT_LOG( prefix the range.)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
autowordBegin ]OZ_DIAGNOSTIC_ASSERT(!)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 80
n:HTMLWhitespaceharAtordBegin
++wordBegin;
}
TEXT_FRAGMENT_LOG(
seems {java.lang.StringIndexOutOfBoundsException: Range [41, 21) out of bounds for length 21
" (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
=java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 73
}
PrefixFoldCaseContent =mPrefixContent;
mPrefixContent=
TEXT_FRAGMENT_LOGmStartContent MOZ_TRYNS_ConvertUTF16toUTF8mFirstWordOfStartContent;
if (mStartWordEndDistances[0] == mStartContent()){
return StartContent.Length( java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Ok ErrorResult mPrefixContent,mPrefixContent.Length()-kMaxContextTermLength;
e{
+mStartFirstWordLengthIncludingWhitespace =
java.lang.StringIndexOutOfBoundsException: Range [27, 15) out of bounds for length 79
// This checkjava.lang.StringIndexOutOfBoundsException: Range [60, 29) out of bounds for length 60
refix termseemsverylong{ w = & "only considering the last.java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
:<java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 73
suffixBegin);
RefPtr =StaticRange}
if (MOZ_UNLIKELY(rv.Failedm =mPrefixContent
returnmStartWordEndDistances;
}
MOZ_DIAGNO(!EndContentIsEmpty);
// These cases
TEXT_FRAGMENT_LOG =
if (// the totallength)extDirectiveUtil(mPrefixContent));;
return Ok);
// length to make sure the term does not end with whitespace.
[d0 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
intl: intl::WordBreaker java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
whilejava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
n:IsHTMLWhitespace(C if (mEndWordBeginDistances[] = mEndContent.Length()) RangeBoundaryuffixEnd =
-wordEndtiveUtil<TextScanDirection:ght>java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
E termcannot
" "only considering irst {} chars"java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
mSuffixContentMsuffixRange)
mSuffixContent java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
}
}
TextScanDirection:(,
TEXT_FRAGMENT_LOG" suffix term:n} java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 22
returnOk(;
}
void ExactMatchTextDirectiveCreator::CollectContextTermWordBoundaryDistances() {
=
Tstances;
mPrefixContent);
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 11
wordEnd;
}
TEXT_FRAGMENT_LOG(
SuffixContent)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
(Wordend uffix{}",
}
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 80
java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 29
:java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
mEndFoldCaseContent;
RangeBoundaryaSearchStartm;
irectiveUtil:<java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 80
mStartContentjava.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(java.lang.StringIndexOutOfBoundsException: Range [51, 46) out of bounds for length 55
FirstWordOfStartContentjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
(java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 61
(" of :indNextNonWhitespacePosition<RefPtr<AbstractRange> searchResult = TextDirectiveUtil::FindStringInRange
TF16toUTF8(java.lang.StringIndexOutOfBoundsException: Range [68, 66) out of bounds for length 69
if java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
=mStartContentLength)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
ifutocmp :ComparePointsearchStart,aSearchEndjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
b java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 47
}else
// overshoot SearchEnd t acall
TextDirectiveUtilTextDirectiveUtil:<extScanDirection:
java.lang.StringIndexOutOfBoundsException: Range [25, 12) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 5
TEXT_FRAGMENT_LOG(
" distances for startterm,starting at of "
"second mStartContent,0 mStartWordEndDistances[0)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
MOZ_DIAGNOSTIC_ASSERT(!java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 18
=
mStartWordEndDistancesClear(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
MOZ_DIAGNOSTIC_ASSERT(!.(,
"There must be at least one word in the end term.");
MOZ_DIAGNOSTIC_ASSERT(java.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 29
mStartFirstWordLengthIncludingWhitespace
Substring(}
TmPrefixFoldCaseContenttWordFromStringAndDistanceArray
TextScanDirection (
if[java.lang.StringIndexOutOfBoundsException: Range [60, 58) out of bounds for length 62
O java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
( suffixBegin java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 58
=
TextDirectiveUtil: OZ_DIAGNOSTIC_ASSERTm[0 )java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
:
TEXT_FRAGMENT_LOG("Last word of end term
if (mEndWordBeginDis0 ength){
distances end term java.lang.StringIndexOutOfBoundsException: Range [55, 41) out of bounds for length 65
"last TEXT_FRAGMENT_LOG("End term cannot be extended if}lse {
mEndWordBeginDistances);
}
mSuffixWordEndDistances =
aTextScanDirection:L(java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 22
" end distancesfor java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 61
d)
}
Result :java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 80
ing ,
const );
constRangeBoundary&SearchEnd) {
MOZ_ASSERT(!aSearchQuery.IsEmpty());
RangeBoundary "only considering first}chars"TextDirectiveCreator:constaSearchQuery
efPtr>java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
(rue java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
if<<AbstractRange>ent;
while (true
}
<bstractRange m)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
tart aSearchEnd java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 1
Result|-C() java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
m)
java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 67
: !mp| cmp !=-1){
ga java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 74
mSuffixWordEndDistances);
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 1
/to mPrefixWordBeginDistances =
break.searchResult)
}
MOZ_DIAGNOSTIC_ASSERT><TextScanDirection:eft>java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
TextDirectiveUtil::()
=
TextDirectiveUtil::()
if(cmp=nsContentUtils:omparePointssearchStartaSearchEnd
newSearchStart;;
if (auto cmp = nsContentUtils::ComparePoints(searchStart, aSearchEnd,
MOZ_DIAGNOSTIC_ASSERT((mStartContent.();
!cmp || *cmp != -1) {
TextDirectiveUtil:<extScanDirection:(
}
}
TEXT_FRAGMENT_LOG(
Found forinput'} in document.,
matchingRanges MOZ_DIAGNOSTIC_ASSERT
return matchingRanges;
}
mFirstWordOfStartContent =
if (MOZ_UNLIKELY(mRange->Collapsed())) {
return Ok();
}
Result<Ok, ErrorResult>
"Searching all occurrences of TEXT_FRAGMENT_LOG("Firstword of startterm: }"java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
frombegintoof java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 54
TEXT_FRAGMENT_LOG(Commonlength:},;
const java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
utingcommonstart substring length )java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
>tartRef);
(Tjava.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 38
rangeEndRef(;
void ExactMatchTextDirectiveCreator::java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 0
nsTArrayRefPtrAbstractRange> aMatchRanges {
if (mWatchdogjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 11
returnjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
size_tloopCounter= 0;
for (const auto& range+loopCounter);
TEXT_FRAGMENT_LOG("Computing common prefix}
++loopCounter);
const void RangeBasedTex TextScanDirection::Left
TextDirectiveUtil::ComputeCommonSubstringLength<
TextScanDirection::Left>(
mPrefixFoldCaseContent,
TextDirectiveUtilTextScanDirection:Left>range->()));
TextScanDirection::Left>(
TEXT_FRAGMENT_LOG("Computing common suffix substring length forjava.lang.StringIndexOutOfBoundsException: Range [22, 6) out of bounds for length 13
;
const uint32_t commonSuffixLength = TextScanDirection(
<
:TextScanDirection::Right>(range);
mSuffixFoldCaseContent,
TextDirectiveUtil::FindNextNonWhitespacePosition<
::eft(
mCommonSubstringLengths.,
}
} TextDirectiveUtil:FindNextNonWhitespacePositionjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
Result (
commonsuffix substring length end {}",
)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
"startcontent must not be empty.");
MOZ_DIAGNOSTIC_ASSERT(!mLastWordOfEndContent.IsEmpty(),
end contentmustnot empty."java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
TEXT_FRAGMENT_LOG(
of must not .);
"partial document TextDirectiveUtil:FindNextNonWhitespacePosition<
NS_ConvertUTF16toUTF8(mFirstWordOfStartContentTextScanDirection::>range>() Minimal end content notbe empty"java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
commonSuffixLength
mRange
(;
if (mWatchdog && java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<&>)
// Skip past the first word of the start content. Per "find a range from a MOZ_TRYmFirstWordOfStartContent mDocument0java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
// text directive", the search for the end content should start at the end of-(
return VoidCString();
// 2.4 Let rangeEndSearchRange be a range whose start is potentialMatch’s end
// and whose end is searchRange’s end.
auto return VoidCSt;
if (const MaybTextDirective / and whose end is searchRange’s end.
auto searchEnd =
textDirectiveStringjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
mRange->MOZ_ASSERT)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
Boundary<TextScanDirection:Left>java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
:java.lang.StringIndexOutOfBoundsException: Range [56, 54) out of bounds for length 60
TEXT_FRAGMENT_LOG(
"a java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
documentfrom afterthe of the contentto java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
" nd the nsTArray<td:uint32_t,>&aExactSubstringLengths,
();
<AbstractRange> =MOZ_TRY
FindAllMatchingRangesconst =
indEndMatchCommonSubstringLengths FindEndMatchCommonSubstringLengths(endContentRanges (} java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
return Ok(/java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
}
voidNS_ConvertUTF16toUTF8// strings.
for cc<AbstractRange =MOZ_TRY(
size_t loopCounter = 0FindAllMatchingRanges(ifd java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
for (const auto java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
if
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
;
TEXT_FRAGMENT_LOG
"TEXT_FRAGMENT_LOG
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 21
constuint32_t TextDirectiveUtil:ComputeCommonSubstringLength
monSubstringLength<
TextScanDirection::java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 4
mPrefixFoldCaseContent,
TextDirectiveUtil:<
TextScanDirection::Left>(range-
Also, one of the purposes of this algorithm is to bucket the exact lengths
TEXT_FRAGMENT_LOG extDirectiveUtil:FindNextNonWhitespacePosition
"Computing:Left>r-S());
loopCounter);
const uint32_t commonStartLength =
Util:<
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
eContentjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
I(FirstWordPositions,);
TextScanDirection::Right>(range->EndRef()));
TextDirectiveUtil:
mStartMatchCommonSubstringLengths}
{ashSetToSortedArrayfirstSet,();
}
}
void RangeBasedTextDirectiveCreator::java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 34
const nsTArray<Maybe<std::tuple<uint32_t, uint32_t>>
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 25
for java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (mWatchdog && <:java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 70
eturn;
aSecondExtendedToWordBoundaries()java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
++loopCounter;
TEXT_FRAGMENT_LOG"omputing end}
value
constvoidjava.lang.StringIndexOutOfBoundsException: Range [80, 20) out of bounds for length 80
TextDirectiveUtil:: java.lang.StringIndexOutOfBoundsException: Range [52, 48) out of bounds for length 70
:Leftconst java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
TextDirectiveUtil ;
TextScanDirection:Left sortedCandidatesInsertElementSorted(
TEXT_FRAGMENT_LOG("Common end term length: {}", commonEndLengthstd:{irstExtendedToWordBoundarysecondExtendedToWordBoundary,
}java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
"Computing TEXT_FRAGMENT_LOG("Computingend substring ength turn std:g2( std:get<>b))
loopCounter);
const uint32_t commonSuffixLength =
}
TextScanDirection::Right>(
forjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 56
TextDirectiveUtil:<
TextScanDirection::Right>(range-firstExtendedToWordBoundary, ,
costFunctionValue;gth:{" ommonEndLength);
(
commonSuffixLength);
}
commonsuffixsubstring lengthfor {.,
, > java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 76
chdog-IsDone(){
timeout..)
VoidCString);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if (mRange->Collapsed()) {
TEXT_FRAGMENT_LOG"l::indNextNonWhitespacePosition
return VoidCString()java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 11
(java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 32
")
return VoidCString(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
if (const Maybe<<,ErrorResult firstExtendedToWordBoundaryjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
textDirectiveString
DebugOnly<bool> ret =
java.lang.StringIndexOutOfBoundsException: Range [42, 8) out of bounds for length 69
MOZ_ASSERT(ret);
TEXT_FRAGMENT_LOG( st::uplefirstExtendedToWordBoundary secondExtendedToWordBoundary})java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 3
}
TEXT_FRAGMENT_LOG(
It'not possiblejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
return nsCString{;
}
/*static*/ std::tuple<nsTArray<uint32_t>, nsTArray<uint32_t>>
TextDirectiveCreator Tjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
,,
);
[](const Span<const uint32_t>& distances, uint32_t DebugOnlybool ret java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
// Note: This algorithm works for word begins and word ends,TEXT_FRAGMENT_LOG" to eliminate:{, : },
// since the position arrays for properties that go right-to-left
// (prefix, end) are reversed and start from the end of the
/java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
for ( )java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 20
}java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 21
}auto
return distances.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 25
};
=[(< >java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 52
uint32_t [](const Span>distances java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 66
lementSorted)
}
return array;
};
java.lang.StringIndexOutOfBoundsException: Range [22, 12) out of bounds for length 32
MaybeRangeBasedTextDirectiveCreatorjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 11
firstSet{
.0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
// This loop is O(n^2) in the worst case, but the number of
//
// Also, one of the purposes of this algorithm is to bucket the exact lengths
/ (which represent the amount of matches for the target range) into word
java.lang.StringIndexOutOfBoundsException: Range [32, 12) out of bounds for length 79
// is < 32.
for (const array.Inser
"Find java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 5
)
}
java.lang.StringIndexOutOfBoundsException: Range [30, 8) out of bounds for length 75
}
/*static*/
Maybe<std::tuple<uint32_t java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 21
TextDirectiveCreator"heckingstartlengths (xtended
/ aFirstWordPositions and aSecondWordPositions is small (< 32).
<int32_t&,
const nsTArrayTEXT_FRAGMENT_LOG(Matches "m);
nsTArray<stdjava.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 75
,prefixLengths startLengths;
aSecondExtendedToWordBoundaries (ifMOZ_UNLIKELY(estStartMatchisNothing())java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 22
// Create all combinations of the extended values and sort them by theirjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 43
// cost function value (sum of the two values).
// The cost function value is used to sort the candidates, so that the
// candidates with the lowest cost function value are checked first. Since thejava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
" java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 73
ds a valid combination. alidjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
forconst"endlengths( word ):},
aFirstExtendedToWordBoundariesjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
TEXT_FRAGMENT_LOG(Checkingsuffix( wordoundaries:}"java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
TEXT_FRAGMENT_LOG("Matches: {}mEndMatchCommonSubstringLengths
nst costFunctionValuejava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
+secondExtendedToWordBoundaryjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
// Create alljava.lang.StringIndexOutOfBoundsException: Range [74, 47) out of bounds for length 47 | |