Skip to content

Commit

Permalink
Generate (1c76dbb)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 17, 2024
1 parent a301d97 commit 993da55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions REXML/Parsers/BaseParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,13 @@ <h3>Public Instance Methods</h3>
<div class="method-source-code" id="entity-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 523</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">entity</span>( <span class="ruby-identifier">reference</span>, <span class="ruby-identifier">entities</span> )
<span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">entities</span>[ <span class="ruby-identifier">reference</span> ] <span class="ruby-keyword">if</span> <span class="ruby-identifier">entities</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>
<span class="ruby-identifier">record_entity_expansion</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">value</span> = <span class="ruby-constant">DEFAULT_ENTITIES</span>[ <span class="ruby-identifier">reference</span> ]
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">value</span>[<span class="ruby-value">2</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">unnormalize</span>( <span class="ruby-identifier">value</span>, <span class="ruby-identifier">entities</span> ) <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>
<span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">entities</span>

<span class="ruby-identifier">value</span> = <span class="ruby-identifier">entities</span>[ <span class="ruby-identifier">reference</span> ]
<span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>

<span class="ruby-identifier">record_entity_expansion</span>
<span class="ruby-identifier">unnormalize</span>( <span class="ruby-identifier">value</span>, <span class="ruby-identifier">entities</span> )
<span class="ruby-keyword">end</span></pre>
</div>
</div>
Expand Down Expand Up @@ -441,7 +439,7 @@ <h3>Public Instance Methods</h3>
<p>Escapes all possible entities</p>

<div class="method-source-code" id="normalize-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 536</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 534</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">normalize</span>( <span class="ruby-identifier">input</span>, <span class="ruby-identifier">entities</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">entity_filter</span>=<span class="ruby-keyword">nil</span> )
<span class="ruby-identifier">copy</span> = <span class="ruby-identifier">input</span>.<span class="ruby-identifier">clone</span>
<span class="ruby-comment"># Doing it like this rather than in a loop improves the speed</span>
Expand Down Expand Up @@ -595,7 +593,7 @@ <h3>Public Instance Methods</h3>
<p>Unescapes all possible entities</p>

<div class="method-source-code" id="unnormalize-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 552</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 550</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">unnormalize</span>( <span class="ruby-identifier">string</span>, <span class="ruby-identifier">entities</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">filter</span>=<span class="ruby-keyword">nil</span> )
<span class="ruby-keyword">if</span> <span class="ruby-identifier">string</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;\r&quot;</span>)
<span class="ruby-identifier">rv</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-constant">Private</span><span class="ruby-operator">::</span><span class="ruby-constant">CARRIAGE_RETURN_NEWLINE_PATTERN</span>, <span class="ruby-string">&quot;\n&quot;</span> )
Expand Down
Binary file modified js/search_index.js.gz
Binary file not shown.

0 comments on commit 993da55

Please sign in to comment.