Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31125,7 +31125,7 @@ private void YyBegin(int newState)
private int YyLength => zzMarkedPos - zzStartRead;

/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ public char YyCharAt(int pos)
public int YyLength => zzMarkedPos - zzStartRead;

/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3456,7 +3456,7 @@ public char YyCharAt(int pos)
public int YyLength => zzMarkedPos - zzStartRead;

/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
///
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ public char YyCharAt(int pos)
public int YyLength => zzMarkedPos - zzStartRead;

/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3570,7 +3570,7 @@ public char YyCharAt(int pos)
public int YyLength => zzMarkedPos - zzStartRead;

/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4007,7 +4007,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4225,7 +4225,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9332,7 +9332,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public char YyCharAt(int pos)


/// <summary>
/// Reports an error that occured while scanning.
/// Reports an error that occurred while scanning.
/// <para/>
/// In a wellformed scanner (no or only correct usage of
/// YyPushBack(int) and a match-all fallback rule) this method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ internal virtual TSTNode Root
/// <param name="file">
/// The <see cref="FileInfo"/> with the data to load into the Trie. </param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
public JaspellTernarySearchTrie(FileInfo file)
: this(file.FullName, false, CultureInfo.CurrentCulture)
{
Expand All @@ -235,7 +235,7 @@ public JaspellTernarySearchTrie(FileInfo file)
/// <param name="fileName">
/// The file name with the data to load into the Trie. The path is not normalized by this method. </param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
/// <remarks>
/// LUCENENET: This constructor overload takes a string <paramref name="fileName"/> to avoid having to allocate a <see cref="FileInfo"/> object.
/// </remarks>
Expand All @@ -255,7 +255,7 @@ public JaspellTernarySearchTrie(string fileName)
/// The <see cref="FileInfo"/> with the data to load into the Trie. </param>
/// <param name="culture">The culture used for lowercasing.</param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
public JaspellTernarySearchTrie(FileInfo file, CultureInfo culture)
: this(file.FullName, false, culture)
{ }
Expand All @@ -271,7 +271,7 @@ public JaspellTernarySearchTrie(FileInfo file, CultureInfo culture)
/// The file name with the data to load into the Trie. The path is not normalized by this method. </param>
/// <param name="culture">The culture used for lowercasing.</param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
/// <remarks>
/// LUCENENET: This constructor overload takes a string <paramref name="fileName"/> to avoid having to allocate a <see cref="FileInfo"/> object.
/// </remarks>
Expand All @@ -292,7 +292,7 @@ public JaspellTernarySearchTrie(string fileName, CultureInfo culture)
/// If true, the file is compressed with the GZIP algorithm, and if
/// false, the file is a normal text document. </param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
public JaspellTernarySearchTrie(FileInfo file, bool compression)
: this(file.FullName, compression, CultureInfo.CurrentCulture)
{ }
Expand All @@ -310,7 +310,7 @@ public JaspellTernarySearchTrie(FileInfo file, bool compression)
/// If true, the file is compressed with the GZIP algorithm, and if
/// false, the file is a normal text document. </param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
/// <remarks>
/// LUCENENET: This constructor overload takes a string <paramref name="fileName"/> to avoid having to allocate a <see cref="FileInfo"/> object.
/// </remarks>
Expand All @@ -337,7 +337,7 @@ public JaspellTernarySearchTrie(string fileName, bool compression)
/// false, the file is a normal text document. </param>
/// <param name="culture">The culture used for lowercasing.</param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
public JaspellTernarySearchTrie(FileInfo file, bool compression, CultureInfo culture)
: this(file.FullName, compression, culture)
{
Expand All @@ -362,7 +362,7 @@ public JaspellTernarySearchTrie(FileInfo file, bool compression, CultureInfo cul
/// false, the file is a normal text document. </param>
/// <param name="culture">The culture used for lowercasing.</param>
/// <exception cref="IOException">
/// A problem occured while reading the data. </exception>
/// A problem occurred while reading the data. </exception>
/// <remarks>
/// LUCENENET: This constructor overload takes a string <paramref name="fileName"/> to avoid having to allocate a <see cref="FileInfo"/> object.
/// </remarks>
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Index/DocFieldProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public override void Abort()
}
}

// If any errors occured, throw it.
// If any errors occurred, throw it.
if (th != null)
{
if (th.IsRuntimeException()) ExceptionDispatchInfo.Capture(th).Throw(); // LUCENENET: Rethrow to preserve stack details from the original throw
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Index/IndexWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5387,7 +5387,7 @@ private void CloseMergeReaders(MergePolicy.OneMerge merge, bool suppressExceptio
}
}

// If any error occured, throw it.
// If any error occurred, throw it.
if (!suppressExceptions)
{
IOUtils.ReThrow(th);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/SearcherManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected override int GetRefCount(IndexSearcher reference)
}

/// <summary>
/// Returns <c>true</c> if no changes have occured since this searcher
/// Returns <c>true</c> if no changes have occurred since this searcher
/// ie. reader was opened, otherwise <c>false</c>. </summary>
/// <seealso cref="DirectoryReader.IsCurrent()"/>
public bool IsSearcherCurrent()
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/Automaton/RegExp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ internal RegExp()
/// <c>RegExp(s, RegExpSyntax.ALL)</c>.
/// </summary>
/// <param name="s"> Regexp string. </param>
/// <exception cref="ArgumentException"> If an error occured while parsing the
/// <exception cref="ArgumentException"> If an error occurred while parsing the
/// regular expression. </exception>
public RegExp(string s)
: this(s, RegExpSyntax.ALL)
Expand All @@ -428,7 +428,7 @@ public RegExp(string s)
/// <param name="s"> Regexp string. </param>
/// <param name="syntax_flags"> Boolean 'or' of optional <see cref="RegExpSyntax"/> constructs to be
/// enabled. </param>
/// <exception cref="ArgumentException"> If an error occured while parsing the
/// <exception cref="ArgumentException"> If an error occurred while parsing the
/// regular expression </exception>
public RegExp(string s, RegExpSyntax syntax_flags)
{
Expand Down