Skip to content

Commit

Permalink
Use ReSpec for RFC 2119 keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Nov 30, 2024
1 parent 2efdcc7 commit e884490
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@
div.exampleHeader { font-weight: bold;
margin: 4px}

em.rfc2119 { text-transform: lowercase;
font-variant: small-caps;
font-style: normal; }
@media (max-width: 850px) {
table th, table td { font-size: 12px; padding: 3px 4px;}
.result table tr td:nth-child(2n), .result table tr th:nth-child(2n) { overflow-wrap: anywhere; min-width: 90px; }
Expand Down Expand Up @@ -6308,8 +6305,7 @@ <h5>IRI</h5>
<p>If the function is passed an IRI, it returns the IRI unchanged.</p>
<p>Passing any RDF term other than a literal with datatype <code>xsd:string</code> or an IRI is an
error.</p>
<p>An implementation <em class="rfc2119" title="Keyword in RFC 2119 context">MAY</em>
normalize the IRI.</p>
<p>An implementation MAY normalize the IRI.</p>
<p>Examples:</p>
<div class="result">
<table>
Expand Down Expand Up @@ -7521,9 +7517,7 @@ <h4>Hash Functions</h4>
<section id="func-md5">
<h5>MD5</h5>
<pre class="prototype nohighlight"> <span class="return">xsd:string</span> <span class="operator">MD5</span> (<span class="type"><span class="type">xsd:string</span></span> <span class="name">arg</span>)</pre>
<p>Returns the MD5 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex
digits <em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em> be in lower
case.</p>
<p>Returns the MD5 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex digits SHOULD be in lower case.</p>
<div class="result">
<table>
<tbody>
Expand All @@ -7538,9 +7532,7 @@ <h5>MD5</h5>
<section id="func-sha1">
<h5>SHA1</h5>
<pre class="prototype nohighlight"> <span class="return">xsd:string</span> <span class="operator">SHA1</span> (<span class="type"><span class="type">xsd:string</span></span> <span class="name">arg</span>)</pre>
<p>Returns the SHA1 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex
digits <em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em> be in lower
case.</p>
<p>Returns the SHA1 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex digits SHOULD be in lower case.</p>
<div class="result">
<table>
<tbody>
Expand All @@ -7555,9 +7547,7 @@ <h5>SHA1</h5>
<section id="func-sha256">
<h5>SHA256</h5>
<pre class="prototype nohighlight"> <span class="return">xsd:string</span> <span class="operator">SHA256</span> (<span class="type"><span class="type">xsd:string</span></span> <span class="name">arg</span>)</pre>
<p>Returns the SHA256 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex
digits <em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em> be in lower
case.</p>
<p>Returns the SHA256 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex digits SHOULD be in lower case.</p>
<div class="result">
<table>
<tbody>
Expand All @@ -7573,9 +7563,7 @@ <h5>SHA256</h5>
<section id="func-sha384">
<h5>SHA384</h5>
<pre class="prototype nohighlight"> <span class="return">xsd:string</span> <span class="operator">SHA384</span> (<span class="type"><span class="type">xsd:string</span></span> <span class="name">arg</span>)</pre>
<p>Returns the SHA384 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex
digits <em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em> be in lower
case.</p>
<p>Returns the SHA384 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex digits SHOULD be in lower case.</p>
<div class="result">
<table>
<tbody>
Expand All @@ -7591,9 +7579,7 @@ <h5>SHA384</h5>
<section id="func-sha512">
<h5>SHA512</h5>
<pre class="prototype nohighlight"> <span class="return">xsd:string</span> <span class="operator">SHA512</span> (<span class="type"><span class="type">xsd:string</span></span> <span class="name">arg</span>)</pre>
<p>Returns the SHA512 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex
digits <em class="rfc2119" title="Keyword in RFC 2119 context">SHOULD</em> be in lower
case.</p>
<p>Returns the SHA512 checksum, as a hex digit string, calculated on the lexical form of the <code>xsd:string</code>. Hex digits SHOULD be in lower case.</p>
<div class="result">
<table>
<tbody>
Expand Down

0 comments on commit e884490

Please sign in to comment.