forked from mirrors/jj
Deployed 82b3017
to prerelease with MkDocs 1.5.3 and mike 2.0.0
This commit is contained in:
parent
19365a4df5
commit
49ab6de154
3 changed files with 6 additions and 2 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1791,6 +1791,7 @@ type</a> are available as keywords. For example,
|
||||||
<p>A list can be implicitly converted to <code>Boolean</code>. The following methods are
|
<p>A list can be implicitly converted to <code>Boolean</code>. The following methods are
|
||||||
defined.</p>
|
defined.</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><code>.len() -> Integer</code>: Number of elements in the list.</li>
|
||||||
<li><code>.join(separator: Template) -> Template</code>: Concatenate elements with
|
<li><code>.join(separator: Template) -> Template</code>: Concatenate elements with
|
||||||
the given <code>separator</code>.</li>
|
the given <code>separator</code>.</li>
|
||||||
<li><code>.map(|item| expression) -> ListTemplate</code>: Apply template <code>expression</code>
|
<li><code>.map(|item| expression) -> ListTemplate</code>: Apply template <code>expression</code>
|
||||||
|
@ -1843,6 +1844,7 @@ defined.</p>
|
||||||
<p>A string can be implicitly converted to <code>Boolean</code>. The following methods are
|
<p>A string can be implicitly converted to <code>Boolean</code>. The following methods are
|
||||||
defined.</p>
|
defined.</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><code>.len() -> Integer</code>: Length in UTF-8 bytes.</li>
|
||||||
<li><code>.contains(needle: Template) -> Boolean</code></li>
|
<li><code>.contains(needle: Template) -> Boolean</code></li>
|
||||||
<li><code>.first_line() -> String</code></li>
|
<li><code>.first_line() -> String</code></li>
|
||||||
<li><code>.lines() -> List<String></code>: Split into lines excluding newline characters.</li>
|
<li><code>.lines() -> List<String></code>: Split into lines excluding newline characters.</li>
|
||||||
|
@ -1852,7 +1854,9 @@ defined.</p>
|
||||||
<li><code>.ends_with(needle: Template) -> Boolean</code></li>
|
<li><code>.ends_with(needle: Template) -> Boolean</code></li>
|
||||||
<li><code>.remove_prefix(needle: Template) -> String</code>: Removes the passed prefix, if present</li>
|
<li><code>.remove_prefix(needle: Template) -> String</code>: Removes the passed prefix, if present</li>
|
||||||
<li><code>.remove_suffix(needle: Template) -> String</code>: Removes the passed suffix, if present</li>
|
<li><code>.remove_suffix(needle: Template) -> String</code>: Removes the passed suffix, if present</li>
|
||||||
<li><code>.substr(start: Integer, end: Integer) -> String</code>: Extract substring. Negative values count from the end.</li>
|
<li><code>.substr(start: Integer, end: Integer) -> String</code>: Extract substring. The
|
||||||
|
<code>start</code>/<code>end</code> indices should be specified in UTF-8 bytes. Negative values
|
||||||
|
count from the end of the string.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4 id="string-literals">String literals<a class="headerlink" href="#string-literals" title="Permanent link">¶</a></h4>
|
<h4 id="string-literals">String literals<a class="headerlink" href="#string-literals" title="Permanent link">¶</a></h4>
|
||||||
<p>String literals must be surrounded by double quotes (<code>"</code>). The following escape
|
<p>String literals must be surrounded by double quotes (<code>"</code>). The following escape
|
||||||
|
|
Loading…
Reference in a new issue