Skip to content

Commit

Permalink
Generate (7712855)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 21, 2024
1 parent 27271c1 commit b14b071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions REXML/IOSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="current_line-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 189</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 185</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">current_line</span>
<span class="ruby-keyword">begin</span>
<span class="ruby-identifier">pos</span> = <span class="ruby-ivar">@er_source</span>.<span class="ruby-identifier">pos</span> <span class="ruby-comment"># The byte position in the source</span>
Expand Down Expand Up @@ -256,7 +256,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="empty-3F-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 184</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 180</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">empty?</span>
<span class="ruby-keyword">super</span> <span class="ruby-keyword">and</span> ( <span class="ruby-ivar">@source</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@source</span>.<span class="ruby-identifier">eof?</span> )
<span class="ruby-keyword">end</span></pre>
Expand Down Expand Up @@ -289,7 +289,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="match-source">
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 162</span>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 158</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">match</span>( <span class="ruby-identifier">pattern</span>, <span class="ruby-identifier">cons</span>=<span class="ruby-keyword">false</span> )
<span class="ruby-keyword">if</span> <span class="ruby-identifier">cons</span>
<span class="ruby-identifier">md</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">pattern</span>)
Expand Down Expand Up @@ -343,11 +343,7 @@ <h3>Public Instance Methods</h3>
<pre><span class="ruby-comment"># File lib/rexml/source.rb, line 150</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">read</span>
<span class="ruby-keyword">begin</span>
<span class="ruby-comment"># NOTE: `@scanner &lt;&lt; readline` does not free memory, so when parsing huge XML in JRuby&#39;s DOM,</span>
<span class="ruby-comment"># out-of-memory error `Java::JavaLang::OutOfMemoryError: Java heap space` occurs.</span>
<span class="ruby-comment"># `@scanner.string = @scanner.rest + readline` frees memory that is already consumed</span>
<span class="ruby-comment"># and avoids this problem.</span>
<span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">string</span> = <span class="ruby-ivar">@scanner</span>.<span class="ruby-identifier">rest</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">readline</span>
<span class="ruby-ivar">@scanner</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">readline</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span>, <span class="ruby-constant">NameError</span>
<span class="ruby-ivar">@source</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">end</span>
Expand Down
Binary file modified js/search_index.js.gz
Binary file not shown.

0 comments on commit b14b071

Please sign in to comment.