mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 00:05:42 +00:00
3022 lines
146 KiB
HTML
3022 lines
146 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE]><![endif]-->
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>Class StringExtensions
|
|
| X10D </title>
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta name="title" content="Class StringExtensions
|
|
| X10D ">
|
|
<meta name="generator" content="docfx 2.56.7.0">
|
|
|
|
<link rel="shortcut icon" href="../images/favicon.png">
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/night-owl.min.css">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="../styles/config.css">
|
|
<link rel="stylesheet" href="../styles/discord.css">
|
|
<link rel="stylesheet" href="../styles/singulink.css">
|
|
<link rel="stylesheet" href="../styles/main.css">
|
|
<meta property="docfx:navrel" content="../toc.html">
|
|
<meta property="docfx:tocrel" content="toc.html">
|
|
|
|
<meta property="docfx:rel" content="../">
|
|
<meta property="docfx:newtab" content="true">
|
|
</head>
|
|
<body>
|
|
<div class="top-navbar">
|
|
<a class="burger-icon" onclick="toggleMenu()">
|
|
<svg name="Hamburger" style="vertical-align: middle;" width="34" height="34" viewbox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
|
|
</a>
|
|
|
|
|
|
<a class="brand" href="../index.html">
|
|
<img src="../images/favicon.png" alt="X10D" class="logomark">
|
|
<span class="brand-title">X10D</span>
|
|
</a> </div>
|
|
|
|
<div class="body-content">
|
|
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
|
|
|
|
<nav id="sidebar" role="navigation">
|
|
<div class="sidebar">
|
|
|
|
<div>
|
|
<div class="mobile-hide">
|
|
|
|
<a class="brand" href="../index.html">
|
|
<img src="../images/favicon.png" alt="X10D" class="logomark">
|
|
<span class="brand-title">X10D</span>
|
|
</a> </div>
|
|
|
|
<div class="sidesearch">
|
|
<form id="search" role="search" class="search">
|
|
<i class="bi bi-search search-icon"></i>
|
|
<input type="text" id="search-query" placeholder="Search" autocomplete="off">
|
|
</form>
|
|
</div>
|
|
|
|
<div id="navbar">
|
|
</div>
|
|
</div> <div class="sidebar-item-separator"></div>
|
|
|
|
<div id="sidetoggle">
|
|
<div id="sidetoc"></div>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<strong>DocFX + Singulink = ♥</strong>
|
|
|
|
</div> </nav>
|
|
|
|
<main class="main-panel">
|
|
|
|
<div id="search-results" style="display: none;">
|
|
<h1 class="search-list">Search Results for <span></span></h1>
|
|
<div class="sr-items">
|
|
<p><i class="bi bi-hourglass-split index-loading"></i></p>
|
|
</div>
|
|
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
|
|
</div>
|
|
<div role="main" class="hide-when-search">
|
|
|
|
<div class="subnav navbar navbar-default">
|
|
<div class="container hide-when-search" id="breadcrumb">
|
|
<ul class="breadcrumb">
|
|
<li></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<article class="content wrap" id="_content" data-uid="X10D.Text.StringExtensions">
|
|
|
|
|
|
<h1 id="X10D_Text_StringExtensions" data-uid="X10D.Text.StringExtensions" class="text-break">Class StringExtensions
|
|
</h1>
|
|
<div class="markdown level0 summary"><p>Text-related extension methods for <see cref="!:System.String"></see>.</p>
|
|
</div>
|
|
<div class="markdown level0 conceptual"></div>
|
|
<div class="inheritance">
|
|
<h5>Inheritance</h5>
|
|
<div class="level0"><span class="xref">System.Object</span></div>
|
|
<div class="level1"><span class="xref">StringExtensions</span></div>
|
|
</div>
|
|
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Text.html">X10D.Text</a></h6>
|
|
<h6><strong>Assembly</strong>: X10D.dll</h6>
|
|
<h5 id="X10D_Text_StringExtensions_syntax">Syntax</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static class StringExtensions : object</code></pre>
|
|
</div>
|
|
<h3 id="methods">Methods
|
|
</h3>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_AsNullIfEmpty_System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.AsNullIfEmpty(System.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L26">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_AsNullIfEmpty_" data-uid="X10D.Text.StringExtensions.AsNullIfEmpty*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_AsNullIfEmpty_System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.AsNullIfEmpty(System.Nullable{System.String})">AsNullIfEmpty(Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Normalizes a string which may be either <span class="xref">null</span> or empty to <span class="xref">null</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? AsNullIfEmpty(this string? value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to normalize.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p><span class="xref">null</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is <span class="xref">null</span> or empty; otherwise,
|
|
<code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_AsNullIfWhiteSpace_System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.AsNullIfWhiteSpace(System.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L43">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_AsNullIfWhiteSpace_" data-uid="X10D.Text.StringExtensions.AsNullIfWhiteSpace*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_AsNullIfWhiteSpace_System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.AsNullIfWhiteSpace(System.Nullable{System.String})">AsNullIfWhiteSpace(Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Normalizes a string which may be either <span class="xref">null</span>, empty, or consisting of only whitespace, to
|
|
<span class="xref">null</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? AsNullIfWhiteSpace(this string? value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to normalize.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p><span class="xref">null</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is <span class="xref">null</span>, empty, or consists of only
|
|
whitespace; otherwise, <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Base64Decode_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Base64Decode(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L57">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Base64Decode_" data-uid="X10D.Text.StringExtensions.Base64Decode*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Base64Decode_System_String_" data-uid="X10D.Text.StringExtensions.Base64Decode(System.String)">Base64Decode(String)</h4>
|
|
<div class="markdown level1 summary"><p>Converts the specified string, which encodes binary data as base-64 digits, to an equivalent plain text string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string Base64Decode(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The base-64 string to convert.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The plain text string representation of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Base64Encode_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Base64Encode(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L75">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Base64Encode_" data-uid="X10D.Text.StringExtensions.Base64Encode*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Base64Encode_System_String_" data-uid="X10D.Text.StringExtensions.Base64Encode(System.String)">Base64Encode(String)</h4>
|
|
<div class="markdown level1 summary"><p>Converts the current string to its equivalent string representation that is encoded with base-64 digits.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string Base64Encode(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The plain text string to convert.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The string representation, in base 64, of <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ChangeEncoding_System_String_Encoding_Encoding_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ChangeEncoding(System.String%2CEncoding%2CEncoding)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L104">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ChangeEncoding_" data-uid="X10D.Text.StringExtensions.ChangeEncoding*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ChangeEncoding_System_String_Encoding_Encoding_" data-uid="X10D.Text.StringExtensions.ChangeEncoding(System.String,Encoding,Encoding)">ChangeEncoding(String, Encoding, Encoding)</h4>
|
|
<div class="markdown level1 summary"><p>Converts this string from one encoding to another.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string ChangeEncoding(this string value, Encoding sourceEncoding, Encoding destinationEncoding)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The input string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Encoding</span></td>
|
|
<td><span class="parametername">sourceEncoding</span></td>
|
|
<td><p>The input encoding.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Encoding</span></td>
|
|
<td><span class="parametername">destinationEncoding</span></td>
|
|
<td><p>The output encoding.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>Returns a new <see cref="!:System.String"></see> with its data converted to
|
|
<code data-dev-comment-type="paramref" class="paramref">destinationEncoding</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Boolean__Func_System_Nullable_System_String__System_Nullable_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CFunc%7BSystem.Boolean%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%2CSystem.Nullable%7BSystem.String%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L259">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Boolean__Func_System_Nullable_System_String__System_Nullable_System_String___" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},Func{System.Boolean},Func{System.Nullable{System.String},System.Nullable{System.String}})">ConcatIf(Nullable<String>, Func<Boolean>, Func<Nullable<String>, Nullable<String>>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, Func<bool> conditionFactory, Func<string?, string?> valueFactory)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Boolean</span>></td>
|
|
<td><span class="parametername">conditionFactory</span></td>
|
|
<td><p>The function that returns the condition to evaluate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>, <span class="xref">System.Nullable</span><<span class="xref">System.String</span>>></td>
|
|
<td><span class="parametername">valueFactory</span></td>
|
|
<td><p>The function that returns the string to append if the condition is true, with <code data-dev-comment-type="paramref" class="paramref">value</code> given as an
|
|
argument.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Boolean__Func_System_Nullable_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CFunc%7BSystem.Boolean%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L230">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Boolean__Func_System_Nullable_System_String___" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},Func{System.Boolean},Func{System.Nullable{System.String}})">ConcatIf(Nullable<String>, Func<Boolean>, Func<Nullable<String>>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, Func<bool> conditionFactory, Func<string?> valueFactory)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Boolean</span>></td>
|
|
<td><span class="parametername">conditionFactory</span></td>
|
|
<td><p>The function that returns the condition to evaluate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>></td>
|
|
<td><span class="parametername">valueFactory</span></td>
|
|
<td><p>The function that returns the string to append if the condition is true.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Boolean__System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CFunc%7BSystem.Boolean%7D%2CSystem.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L147">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Boolean__System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},Func{System.Boolean},System.Nullable{System.String})">ConcatIf(Nullable<String>, Func<Boolean>, Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, Func<bool> conditionFactory, string? appendValue)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Boolean</span>></td>
|
|
<td><span class="parametername">conditionFactory</span></td>
|
|
<td><p>The function that returns the condition to evaluate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">appendValue</span></td>
|
|
<td><p>The string to append if the condition is true.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Nullable_System_String__System_Boolean__Func_System_Nullable_System_String__System_Nullable_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%2CSystem.Boolean%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%2CSystem.Nullable%7BSystem.String%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L318">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Nullable_System_String__System_Boolean__Func_System_Nullable_System_String__System_Nullable_System_String___" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},Func{System.Nullable{System.String},System.Boolean},Func{System.Nullable{System.String},System.Nullable{System.String}})">ConcatIf(Nullable<String>, Func<Nullable<String>, Boolean>, Func<Nullable<String>, Nullable<String>>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, Func<string?, bool> conditionFactory, Func<string?, string?> valueFactory)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>, <span class="xref">System.Boolean</span>></td>
|
|
<td><span class="parametername">conditionFactory</span></td>
|
|
<td><p>The function that returns the condition to evaluate, with <code data-dev-comment-type="paramref" class="paramref">value</code> given as an argument.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>, <span class="xref">System.Nullable</span><<span class="xref">System.String</span>>></td>
|
|
<td><span class="parametername">valueFactory</span></td>
|
|
<td><p>The function that returns the string to append if the condition is true, with <code data-dev-comment-type="paramref" class="paramref">value</code> given as an
|
|
argument.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Nullable_System_String__System_Boolean__Func_System_Nullable_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%2CSystem.Boolean%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L287">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Nullable_System_String__System_Boolean__Func_System_Nullable_System_String___" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},Func{System.Nullable{System.String},System.Boolean},Func{System.Nullable{System.String}})">ConcatIf(Nullable<String>, Func<Nullable<String>, Boolean>, Func<Nullable<String>>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, Func<string?, bool> conditionFactory, Func<string?> valueFactory)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>, <span class="xref">System.Boolean</span>></td>
|
|
<td><span class="parametername">conditionFactory</span></td>
|
|
<td><p>The function that returns the condition to evaluate, with <code data-dev-comment-type="paramref" class="paramref">value</code> given as an argument.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>></td>
|
|
<td><span class="parametername">valueFactory</span></td>
|
|
<td><p>The function that returns the string to append if the condition is true.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Nullable_System_String__System_Boolean__System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CFunc%7BSystem.Nullable%7BSystem.String%7D%2CSystem.Boolean%7D%2CSystem.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L168">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__Func_System_Nullable_System_String__System_Boolean__System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},Func{System.Nullable{System.String},System.Boolean},System.Nullable{System.String})">ConcatIf(Nullable<String>, Func<Nullable<String>, Boolean>, Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, Func<string?, bool> conditionFactory, string? appendValue)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>, <span class="xref">System.Boolean</span>></td>
|
|
<td><span class="parametername">conditionFactory</span></td>
|
|
<td><p>The function that returns the condition to evaluate, with <code data-dev-comment-type="paramref" class="paramref">value</code> given as an argument.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">appendValue</span></td>
|
|
<td><p>The string to append if the condition is true.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__System_Boolean_Func_System_Nullable_System_String__System_Nullable_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CSystem.Boolean%2CFunc%7BSystem.Nullable%7BSystem.String%7D%2CSystem.Nullable%7BSystem.String%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L209">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__System_Boolean_Func_System_Nullable_System_String__System_Nullable_System_String___" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},System.Boolean,Func{System.Nullable{System.String},System.Nullable{System.String}})">ConcatIf(Nullable<String>, Boolean, Func<Nullable<String>, Nullable<String>>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, bool condition, Func<string?, string?> valueFactory)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><span class="parametername">condition</span></td>
|
|
<td><p>The condition to evaluate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>, <span class="xref">System.Nullable</span><<span class="xref">System.String</span>>></td>
|
|
<td><span class="parametername">valueFactory</span></td>
|
|
<td><p>The function that returns the string to append if the condition is true, with <code data-dev-comment-type="paramref" class="paramref">value</code> given as an
|
|
argument.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__System_Boolean_Func_System_Nullable_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CSystem.Boolean%2CFunc%7BSystem.Nullable%7BSystem.String%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L187">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__System_Boolean_Func_System_Nullable_System_String___" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},System.Boolean,Func{System.Nullable{System.String}})">ConcatIf(Nullable<String>, Boolean, Func<Nullable<String>>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, bool condition, Func<string?> valueFactory)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><span class="parametername">condition</span></td>
|
|
<td><p>The condition to evaluate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Func</span><<span class="xref">System.Nullable</span><<span class="xref">System.String</span>>></td>
|
|
<td><span class="parametername">valueFactory</span></td>
|
|
<td><p>The function that returns the string to append if the condition is true.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__System_Boolean_System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.ConcatIf(System.Nullable%7BSystem.String%7D%2CSystem.Boolean%2CSystem.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L133">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_ConcatIf_" data-uid="X10D.Text.StringExtensions.ConcatIf*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_ConcatIf_System_Nullable_System_String__System_Boolean_System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.ConcatIf(System.Nullable{System.String},System.Boolean,System.Nullable{System.String})">ConcatIf(Nullable<String>, Boolean, Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Appends a string to the current string if the specified condition evaluates to <span class="xref">true</span>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? ConcatIf(this string? value, bool condition, string? appendValue)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The current string.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><span class="parametername">condition</span></td>
|
|
<td><p>The condition to evaluate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">appendValue</span></td>
|
|
<td><p>The string to append if the condition is true.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>The concatenated string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_CountSubstring_ReadOnlySpan_System_Char__System_Char_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.CountSubstring(ReadOnlySpan%7BSystem.Char%7D%2CSystem.Char)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L351">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_CountSubstring_" data-uid="X10D.Text.StringExtensions.CountSubstring*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_CountSubstring_ReadOnlySpan_System_Char__System_Char_" data-uid="X10D.Text.StringExtensions.CountSubstring(ReadOnlySpan{System.Char},System.Char)">CountSubstring(ReadOnlySpan<Char>, Char)</h4>
|
|
<div class="markdown level1 summary"><p>Counts the occurrences of a character within the current character span.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int CountSubstring(this ReadOnlySpan<char> haystack, char needle)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">ReadOnlySpan</span><<span class="xref">System.Char</span>></td>
|
|
<td><span class="parametername">haystack</span></td>
|
|
<td><p>The haystack search space.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">needle</span></td>
|
|
<td><p>The character to count.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><p>An integer representing the count of <code data-dev-comment-type="paramref" class="paramref">needle</code> inside <code data-dev-comment-type="paramref" class="paramref">haystack</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_CountSubstring_Span_System_Char__System_Char_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.CountSubstring(Span%7BSystem.Char%7D%2CSystem.Char)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L340">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_CountSubstring_" data-uid="X10D.Text.StringExtensions.CountSubstring*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_CountSubstring_Span_System_Char__System_Char_" data-uid="X10D.Text.StringExtensions.CountSubstring(Span{System.Char},System.Char)">CountSubstring(Span<Char>, Char)</h4>
|
|
<div class="markdown level1 summary"><p>Counts the occurrences of a character within the current character span.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int CountSubstring(this Span<char> haystack, char needle)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">Span</span><<span class="xref">System.Char</span>></td>
|
|
<td><span class="parametername">haystack</span></td>
|
|
<td><p>The haystack search space.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">needle</span></td>
|
|
<td><p>The character to count.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><p>An integer representing the count of <code data-dev-comment-type="paramref" class="paramref">needle</code> inside <code data-dev-comment-type="paramref" class="paramref">haystack</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_CountSubstring_System_String_System_Char_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.CountSubstring(System.String%2CSystem.Char)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L372">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_CountSubstring_" data-uid="X10D.Text.StringExtensions.CountSubstring*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_CountSubstring_System_String_System_Char_" data-uid="X10D.Text.StringExtensions.CountSubstring(System.String,System.Char)">CountSubstring(String, Char)</h4>
|
|
<div class="markdown level1 summary"><p>Counts the occurrences of a character within the current string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int CountSubstring(this string haystack, char needle)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">haystack</span></td>
|
|
<td><p>The haystack search space.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">needle</span></td>
|
|
<td><p>The character to count.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><p>An integer representing the count of <code data-dev-comment-type="paramref" class="paramref">needle</code> inside <code data-dev-comment-type="paramref" class="paramref">haystack</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_CountSubstring_System_String_System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.CountSubstring(System.String%2CSystem.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L388">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_CountSubstring_" data-uid="X10D.Text.StringExtensions.CountSubstring*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_CountSubstring_System_String_System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.CountSubstring(System.String,System.Nullable{System.String})">CountSubstring(String, Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Counts the occurrences of a substring within the current string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int CountSubstring(this string haystack, string? needle)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">haystack</span></td>
|
|
<td><p>The haystack search space.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">needle</span></td>
|
|
<td><p>The substring to count.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><p>An integer representing the count of <code data-dev-comment-type="paramref" class="paramref">needle</code> inside <code data-dev-comment-type="paramref" class="paramref">haystack</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_CountSubstring_System_String_System_Nullable_System_String__StringComparison_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.CountSubstring(System.String%2CSystem.Nullable%7BSystem.String%7D%2CStringComparison)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L400">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_CountSubstring_" data-uid="X10D.Text.StringExtensions.CountSubstring*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_CountSubstring_System_String_System_Nullable_System_String__StringComparison_" data-uid="X10D.Text.StringExtensions.CountSubstring(System.String,System.Nullable{System.String},StringComparison)">CountSubstring(String, Nullable<String>, StringComparison)</h4>
|
|
<div class="markdown level1 summary"><p>Counts the occurrences of a substring within the current string, using a specified string comparison method.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int CountSubstring(this string haystack, string? needle, StringComparison comparison)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">haystack</span></td>
|
|
<td><p>The haystack search space.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">needle</span></td>
|
|
<td><p>The substring to count.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">StringComparison</span></td>
|
|
<td><span class="parametername">comparison</span></td>
|
|
<td><p>The string comparison method used for determining substring count.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><p>An integer representing the count of <code data-dev-comment-type="paramref" class="paramref">needle</code> inside <code data-dev-comment-type="paramref" class="paramref">haystack</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_Char_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable%7BSystem.String%7D%2CSystem.Char)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L421">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureEndsWith_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_Char_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable{System.String},System.Char)">EnsureEndsWith(Nullable<String>, Char)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureEndsWith(this string? value, char substring)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_Char_StringComparison_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable%7BSystem.String%7D%2CSystem.Char%2CStringComparison)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L433">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureEndsWith_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_Char_StringComparison_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable{System.String},System.Char,StringComparison)">EnsureEndsWith(Nullable<String>, Char, StringComparison)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureEndsWith(this string? value, char substring, StringComparison comparisonType)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">StringComparison</span></td>
|
|
<td><span class="parametername">comparisonType</span></td>
|
|
<td><p>One of the enumeration values that determines how the substring is compared.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable%7BSystem.String%7D%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L444">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureEndsWith_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_String_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable{System.String},System.String)">EnsureEndsWith(Nullable<String>, String)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureEndsWith(this string? value, string substring)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_String_StringComparison_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable%7BSystem.String%7D%2CSystem.String%2CStringComparison)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L456">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureEndsWith_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureEndsWith_System_Nullable_System_String__System_String_StringComparison_" data-uid="X10D.Text.StringExtensions.EnsureEndsWith(System.Nullable{System.String},System.String,StringComparison)">EnsureEndsWith(Nullable<String>, String, StringComparison)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureEndsWith(this string? value, string substring, StringComparison comparisonType)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">StringComparison</span></td>
|
|
<td><span class="parametername">comparisonType</span></td>
|
|
<td><p>One of the enumeration values that determines how the substring is compared.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_Char_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable%7BSystem.String%7D%2CSystem.Char)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L477">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureStartsWith_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_Char_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable{System.String},System.Char)">EnsureStartsWith(Nullable<String>, Char)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureStartsWith(this string? value, char substring)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_Char_StringComparison_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable%7BSystem.String%7D%2CSystem.Char%2CStringComparison)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L489">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureStartsWith_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_Char_StringComparison_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable{System.String},System.Char,StringComparison)">EnsureStartsWith(Nullable<String>, Char, StringComparison)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureStartsWith(this string? value, char substring, StringComparison comparisonType)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Char</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">StringComparison</span></td>
|
|
<td><span class="parametername">comparisonType</span></td>
|
|
<td><p>One of the enumeration values that determines how the substring is compared.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable%7BSystem.String%7D%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L500">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureStartsWith_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_String_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable{System.String},System.String)">EnsureStartsWith(Nullable<String>, String)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureStartsWith(this string? value, string substring)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_String_StringComparison_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable%7BSystem.String%7D%2CSystem.String%2CStringComparison)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L512">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnsureStartsWith_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnsureStartsWith_System_Nullable_System_String__System_String_StringComparison_" data-uid="X10D.Text.StringExtensions.EnsureStartsWith(System.Nullable{System.String},System.String,StringComparison)">EnsureStartsWith(Nullable<String>, String, StringComparison)</h4>
|
|
<div class="markdown level1 summary"><p>Ensures that the current string starts with a specified substring.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string EnsureStartsWith(this string? value, string substring, StringComparison comparisonType)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to check.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">substring</span></td>
|
|
<td><p>The substring to prepend, if the current string does not already start with it.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">StringComparison</span></td>
|
|
<td><span class="parametername">comparisonType</span></td>
|
|
<td><p>One of the enumeration values that determines how the substring is compared.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>The combined string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnumParse__1_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnumParse%60%601(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L537">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnumParse_" data-uid="X10D.Text.StringExtensions.EnumParse*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnumParse__1_System_String_" data-uid="X10D.Text.StringExtensions.EnumParse``1(System.String)">EnumParse<T>(String)</h4>
|
|
<div class="markdown level1 summary"><p>Parses a <see cref="!:System.String"></see> into an <see cref="!:Enum"></see>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static T EnumParse<T>(this string value)
|
|
where T : struct, Enum</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The <see cref="!:System.String"></see> value to parse.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">T</span></td>
|
|
<td><p>The <see cref="!:Enum"></see> value corresponding to the <see cref="!:System.String"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="typeParameters">Type Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="parametername">T</span></td>
|
|
<td><p>The type of the <see cref="!:Enum"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 id="X10D_Text_StringExtensions_EnumParse__1_System_String__remarks">Remarks</h5>
|
|
<div class="markdown level1 remarks"><p>Credit for this method goes to Scott Dorman:
|
|
(<a href="http://geekswithblogs.net/sdorman/Default.aspx">http://geekswithblogs.net/sdorman/Default.aspx</a>).</p>
|
|
</div>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_EnumParse__1_System_String_System_Boolean_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.EnumParse%60%601(System.String%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L556">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_EnumParse_" data-uid="X10D.Text.StringExtensions.EnumParse*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_EnumParse__1_System_String_System_Boolean_" data-uid="X10D.Text.StringExtensions.EnumParse``1(System.String,System.Boolean)">EnumParse<T>(String, Boolean)</h4>
|
|
<div class="markdown level1 summary"><p>Parses a <see cref="!:System.String"></see> into an <see cref="!:Enum"></see>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static T EnumParse<T>(this string value, bool ignoreCase)
|
|
where T : struct, Enum</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The <see cref="!:System.String"></see> value to parse.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><span class="parametername">ignoreCase</span></td>
|
|
<td><p>Whether or not to ignore casing.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">T</span></td>
|
|
<td><p>The <see cref="!:Enum"></see> value corresponding to the <see cref="!:System.String"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="typeParameters">Type Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="parametername">T</span></td>
|
|
<td><p>The type of the <see cref="!:Enum"></see>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 id="X10D_Text_StringExtensions_EnumParse__1_System_String_System_Boolean__remarks">Remarks</h5>
|
|
<div class="markdown level1 remarks"><p>Credit for this method goes to Scott Dorman:
|
|
(<a href="http://geekswithblogs.net/sdorman/Default.aspx">http://geekswithblogs.net/sdorman/Default.aspx</a>).</p>
|
|
</div>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_FromJson__1_System_String_System_Nullable_JsonSerializerOptions__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.FromJson%60%601(System.String%2CSystem.Nullable%7BJsonSerializerOptions%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L585">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_FromJson_" data-uid="X10D.Text.StringExtensions.FromJson*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_FromJson__1_System_String_System_Nullable_JsonSerializerOptions__" data-uid="X10D.Text.StringExtensions.FromJson``1(System.String,System.Nullable{JsonSerializerOptions})">FromJson<T>(String, Nullable<JsonSerializerOptions>)</h4>
|
|
<div class="markdown level1 summary"><p>Returns an object from the specified JSON string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static T FromJson<T>(this string value, JsonSerializerOptions? options = null)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The JSON to convert.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">JsonSerializerOptions</span>></td>
|
|
<td><span class="parametername">options</span></td>
|
|
<td><p>The JSON serialization options.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">T</span></td>
|
|
<td><p>An object constructed from the JSON string, or <span class="xref">null</span> if deserialization could not be performed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="typeParameters">Type Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="parametername">T</span></td>
|
|
<td><p>The type of the value to deserialize.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_GetBytes_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.GetBytes(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L597">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_GetBytes_" data-uid="X10D.Text.StringExtensions.GetBytes*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_GetBytes_System_String_" data-uid="X10D.Text.StringExtensions.GetBytes(System.String)">GetBytes(String)</h4>
|
|
<div class="markdown level1 summary"><p>Gets a <see cref="!:System.Byte"></see>[] representing the value the <see cref="!:System.String"></see> with
|
|
<see cref="!:Encoding.UTF8"></see> encoding.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to convert.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Byte</span>[]</td>
|
|
<td><p>Returns a <see cref="!:System.Byte"></see>[].</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_GetBytes_System_String_Encoding_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.GetBytes(System.String%2CEncoding)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L614">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_GetBytes_" data-uid="X10D.Text.StringExtensions.GetBytes*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_GetBytes_System_String_Encoding_" data-uid="X10D.Text.StringExtensions.GetBytes(System.String,Encoding)">GetBytes(String, Encoding)</h4>
|
|
<div class="markdown level1 summary"><p>Gets a <see cref="!:System.Byte"></see>[] representing the value the <see cref="!:System.String"></see> with the provided encoding.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static byte[] GetBytes(this string value, Encoding encoding)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to convert.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Encoding</span></td>
|
|
<td><span class="parametername">encoding</span></td>
|
|
<td><p>The encoding to use.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Byte</span>[]</td>
|
|
<td><p>Returns a <see cref="!:System.Byte"></see>[].</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsEmoji_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsEmoji(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L636">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsEmoji_" data-uid="X10D.Text.StringExtensions.IsEmoji*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsEmoji_System_String_" data-uid="X10D.Text.StringExtensions.IsEmoji(System.String)">IsEmoji(String)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether this string constitutes an emoji.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsEmoji(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The input string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if this string is an emoji; otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsEmpty_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsEmpty(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L656">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsEmpty_" data-uid="X10D.Text.StringExtensions.IsEmpty*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsEmpty_System_String_" data-uid="X10D.Text.StringExtensions.IsEmpty(System.String)">IsEmpty(String)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether the current string represents an empty string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsEmpty(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is empty; otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsLower_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsLower(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L676">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsLower_" data-uid="X10D.Text.StringExtensions.IsLower*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsLower_System_String_" data-uid="X10D.Text.StringExtensions.IsLower(System.String)">IsLower(String)</h4>
|
|
<div class="markdown level1 summary"><p>Determines if all alpha characters in this string are considered lowercase.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsLower(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The input string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if all alpha characters in this string are lowercase; otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsNullOrEmpty_System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsNullOrEmpty(System.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L712">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsNullOrEmpty_" data-uid="X10D.Text.StringExtensions.IsNullOrEmpty*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsNullOrEmpty_System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.IsNullOrEmpty(System.Nullable{System.String})">IsNullOrEmpty(Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether the current string is <span class="xref">null</span> (<span class="xref">langword_csharp_Nothing</span> in Visual
|
|
Basic), or represents an empty string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsNullOrEmpty(this string? value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is <span class="xref">null</span> or empty; otherwise,
|
|
<span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsNullOrWhiteSpace_System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsNullOrWhiteSpace(System.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L728">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsNullOrWhiteSpace_" data-uid="X10D.Text.StringExtensions.IsNullOrWhiteSpace*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsNullOrWhiteSpace_System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.IsNullOrWhiteSpace(System.Nullable{System.String})">IsNullOrWhiteSpace(Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether the current string is <span class="xref">null</span> (<span class="xref">langword_csharp_Nothing</span> in Visual
|
|
Basic), represents an empty string, or consists of only whitespace characters.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsNullOrWhiteSpace(this string? value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is <span class="xref">null</span>, empty, or consists of only
|
|
whitespace; otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsPalindrome_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsPalindrome(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L745">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsPalindrome_" data-uid="X10D.Text.StringExtensions.IsPalindrome*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsPalindrome_System_String_" data-uid="X10D.Text.StringExtensions.IsPalindrome(System.String)">IsPalindrome(String)</h4>
|
|
<div class="markdown level1 summary"><p>Determines whether the current string is considered palindromic; that is, the letters within the string are the
|
|
same when reversed.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsPalindrome(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is considered a palindromic string; otherwise,
|
|
<span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsUpper_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsUpper(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L793">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsUpper_" data-uid="X10D.Text.StringExtensions.IsUpper*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsUpper_System_String_" data-uid="X10D.Text.StringExtensions.IsUpper(System.String)">IsUpper(String)</h4>
|
|
<div class="markdown level1 summary"><p>Determines if all alpha characters in this string are considered uppercase.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsUpper(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The input string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if all alpha characters in this string are uppercase; otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_IsWhiteSpace_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.IsWhiteSpace(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L830">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_IsWhiteSpace_" data-uid="X10D.Text.StringExtensions.IsWhiteSpace*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_IsWhiteSpace_System_String_" data-uid="X10D.Text.StringExtensions.IsWhiteSpace(System.String)">IsWhiteSpace(String)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a value indicating whether the current string represents an empty string, or consists of only whitespace
|
|
characters.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool IsWhiteSpace(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to check.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> is empty or consists of only whitespace; otherwise,
|
|
<span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Randomize_System_String_System_Int32_System_Nullable_Random__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Randomize(System.String%2CSystem.Int32%2CSystem.Nullable%7BRandom%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L939">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Randomize_" data-uid="X10D.Text.StringExtensions.Randomize*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Randomize_System_String_System_Int32_System_Nullable_Random__" data-uid="X10D.Text.StringExtensions.Randomize(System.String,System.Int32,System.Nullable{Random})">Randomize(String, Int32, Nullable<Random>)</h4>
|
|
<div class="markdown level1 summary"><p>Returns a new string of a specified length by randomly selecting characters from the current string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string Randomize(this string source, int length, Random? random = null)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">source</span></td>
|
|
<td><p>The pool of characters to use.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><span class="parametername">length</span></td>
|
|
<td><p>The length of the new string returned.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">Random</span>></td>
|
|
<td><span class="parametername">random</span></td>
|
|
<td><p>The <see cref="!:System.Random"></see> supplier.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>A new string whose length is equal to <code data-dev-comment-type="paramref" class="paramref">length</code> which contains randomly selected characters from
|
|
<code data-dev-comment-type="paramref" class="paramref">source</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Repeat_System_String_System_Int32_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Repeat(System.String%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L862">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Repeat_" data-uid="X10D.Text.StringExtensions.Repeat*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Repeat_System_String_System_Int32_" data-uid="X10D.Text.StringExtensions.Repeat(System.String,System.Int32)">Repeat(String, Int32)</h4>
|
|
<div class="markdown level1 summary"><p>Repeats a string a specified number of times.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string Repeat(this string value, int count)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to repeat.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><span class="parametername">count</span></td>
|
|
<td><p>The repeat count.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>A string containing <code data-dev-comment-type="paramref" class="paramref">value</code> repeated <code data-dev-comment-type="paramref" class="paramref">count</code> times.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Repeat_System_String_System_Int32_Span_System_Char__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Repeat(System.String%2CSystem.Int32%2CSpan%7BSystem.Char%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L897">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Repeat_" data-uid="X10D.Text.StringExtensions.Repeat*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Repeat_System_String_System_Int32_Span_System_Char__" data-uid="X10D.Text.StringExtensions.Repeat(System.String,System.Int32,Span{System.Char})">Repeat(String, Int32, Span<Char>)</h4>
|
|
<div class="markdown level1 summary"><p>Repeats a string a specified number of times, writing the result to a span of characters.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static void Repeat(this string value, int count, Span<char> destination)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to repeat.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><span class="parametername">count</span></td>
|
|
<td><p>The repeat count.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">Span</span><<span class="xref">System.Char</span>></td>
|
|
<td><span class="parametername">destination</span></td>
|
|
<td><p>The destination span to write to.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Reverse_System_String_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Reverse(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L977">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Reverse_" data-uid="X10D.Text.StringExtensions.Reverse*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Reverse_System_String_" data-uid="X10D.Text.StringExtensions.Reverse(System.String)">Reverse(String)</h4>
|
|
<div class="markdown level1 summary"><p>Reverses the current string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string Reverse(this string value)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to reverse.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>A <see cref="!:System.String"></see> whose characters are that of <code data-dev-comment-type="paramref" class="paramref">value</code> in reverse order.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Shuffled_System_String_System_Nullable_Random__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Shuffled(System.String%2CSystem.Nullable%7BRandom%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L1011">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Shuffled_" data-uid="X10D.Text.StringExtensions.Shuffled*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Shuffled_System_String_System_Nullable_Random__" data-uid="X10D.Text.StringExtensions.Shuffled(System.String,System.Nullable{Random})">Shuffled(String, Nullable<Random>)</h4>
|
|
<div class="markdown level1 summary"><p>Shuffles the characters in the string.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string Shuffled(this string value, Random? random = null)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to shuffle.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">Random</span>></td>
|
|
<td><span class="parametername">random</span></td>
|
|
<td><p>The <see cref="!:System.Random"></see> instance to use for the shuffling. If <span class="xref">null</span> is specified, a shared
|
|
instance is used.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><p>A new <see cref="!:System.String"></see> containing the characters in <code data-dev-comment-type="paramref" class="paramref">value</code>, rearranged.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_Split_System_String_System_Int32_.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.Split(System.String%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L1037">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_Split_" data-uid="X10D.Text.StringExtensions.Split*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_Split_System_String_System_Int32_" data-uid="X10D.Text.StringExtensions.Split(System.String,System.Int32)">Split(String, Int32)</h4>
|
|
<div class="markdown level1 summary"><p>Splits the <see cref="!:System.String"></see> into chunks that are no greater than <code data-dev-comment-type="paramref" class="paramref">chunkSize</code> in length.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static IEnumerable<string> Split(this string value, int chunkSize)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.String</span></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The string to split.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Int32</span></td>
|
|
<td><span class="parametername">chunkSize</span></td>
|
|
<td><p>The maximum length of each string in the returned result.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">IEnumerable</span><<span class="xref">System.String</span>></td>
|
|
<td><p>Returns an <see cref="!:IEnumerable<T>"></see> containing <see cref="!:System.String"></see> instances which are no
|
|
greater than <code data-dev-comment-type="paramref" class="paramref">chunkSize</code> in length.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_StartsWithAny_System_Nullable_System_String__StringComparison_System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.StartsWithAny(System.Nullable%7BSystem.String%7D%2CStringComparison%2CSystem.String%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L1100">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_StartsWithAny_" data-uid="X10D.Text.StringExtensions.StartsWithAny*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_StartsWithAny_System_Nullable_System_String__StringComparison_System_String___" data-uid="X10D.Text.StringExtensions.StartsWithAny(System.Nullable{System.String},StringComparison,System.String[])">StartsWithAny(Nullable<String>, StringComparison, String[])</h4>
|
|
<div class="markdown level1 summary"><p>Determines whether the beginning of this string instance matches any of the specified strings when compared using the
|
|
specified comparison option.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool StartsWithAny(this string? value, StringComparison comparison, params string[] startValues)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to compare.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">StringComparison</span></td>
|
|
<td><span class="parametername">comparison</span></td>
|
|
<td><p>One of the enumeration values that determines how this string and value are compared.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span>[]</td>
|
|
<td><span class="parametername">startValues</span></td>
|
|
<td><p>An array of string to compare.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> starts with any of the <code data-dev-comment-type="paramref" class="paramref">startValues</code>;
|
|
otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_StartsWithAny_System_Nullable_System_String__System_String___.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.StartsWithAny(System.Nullable%7BSystem.String%7D%2CSystem.String%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L1071">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_StartsWithAny_" data-uid="X10D.Text.StringExtensions.StartsWithAny*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_StartsWithAny_System_Nullable_System_String__System_String___" data-uid="X10D.Text.StringExtensions.StartsWithAny(System.Nullable{System.String},System.String[])">StartsWithAny(Nullable<String>, String[])</h4>
|
|
<div class="markdown level1 summary"><p>Determines whether the beginning of this string instance matches any of the specified strings using the current
|
|
culture for comparison.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool StartsWithAny(this string? value, params string[] startValues)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to compare.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.String</span>[]</td>
|
|
<td><span class="parametername">startValues</span></td>
|
|
<td><p>An array of string to compare.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Boolean</span></td>
|
|
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">value</code> starts with any of the <code data-dev-comment-type="paramref" class="paramref">startValues</code>;
|
|
otherwise, <span class="xref">false</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_WithEmptyAlternative_System_Nullable_System_String__System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.WithEmptyAlternative(System.Nullable%7BSystem.String%7D%2CSystem.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L1137">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_WithEmptyAlternative_" data-uid="X10D.Text.StringExtensions.WithEmptyAlternative*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_WithEmptyAlternative_System_Nullable_System_String__System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.WithEmptyAlternative(System.Nullable{System.String},System.Nullable{System.String})">WithEmptyAlternative(Nullable<String>, Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Normalizes a string which may be either <span class="xref">null</span> or empty to a specified alternative.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? WithEmptyAlternative(this string? value, string? alternative)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to normalize.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">alternative</span></td>
|
|
<td><p>The alternative string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p><code data-dev-comment-type="paramref" class="paramref">alternative</code> if <code data-dev-comment-type="paramref" class="paramref">value</code> is <span class="xref">null</span> or empty; otherwise,
|
|
<code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<span class="small pull-right mobile-hide">
|
|
<span class="divider">|</span>
|
|
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Text_StringExtensions_WithWhiteSpaceAlternative_System_Nullable_System_String__System_Nullable_System_String__.md&value=---%0Auid%3A%20X10D.Text.StringExtensions.WithWhiteSpaceAlternative(System.Nullable%7BSystem.String%7D%2CSystem.Nullable%7BSystem.String%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
|
|
</span>
|
|
<span class="small pull-right mobile-hide">
|
|
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Text/StringExtensions.cs/#L1155">View Source</a>
|
|
</span>
|
|
<a id="X10D_Text_StringExtensions_WithWhiteSpaceAlternative_" data-uid="X10D.Text.StringExtensions.WithWhiteSpaceAlternative*"></a>
|
|
<h4 id="X10D_Text_StringExtensions_WithWhiteSpaceAlternative_System_Nullable_System_String__System_Nullable_System_String__" data-uid="X10D.Text.StringExtensions.WithWhiteSpaceAlternative(System.Nullable{System.String},System.Nullable{System.String})">WithWhiteSpaceAlternative(Nullable<String>, Nullable<String>)</h4>
|
|
<div class="markdown level1 summary"><p>Normalizes a string which may be either <span class="xref">null</span>, empty, or consisting of only whitespace, to a
|
|
specified alternative.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
<h5 class="decalaration">Declaration</h5>
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static string? WithWhiteSpaceAlternative(this string? value, string? alternative)</code></pre>
|
|
</div>
|
|
<h5 class="parameters">Parameters</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">value</span></td>
|
|
<td><p>The value to normalize.</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><span class="parametername">alternative</span></td>
|
|
<td><p>The alternative string.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5 class="returns">Returns</h5>
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="xref">System.Nullable</span><<span class="xref">System.String</span>></td>
|
|
<td><p><code data-dev-comment-type="paramref" class="paramref">alternative</code> if <code data-dev-comment-type="paramref" class="paramref">value</code> is <span class="xref">null</span>, empty, or consists of only
|
|
whitespace; otherwise, <code data-dev-comment-type="paramref" class="paramref">value</code>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="copyright-footer">
|
|
<span>© Singulink. All rights reserved.</span>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
|
|
<script type="text/javascript" src="../styles/jquery.twbsPagination.js"></script>
|
|
<script type="text/javascript" src="../styles/url.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
|
|
<script type="text/javascript" src="../styles/docfx.js"></script>
|
|
<script type="text/javascript" src="../styles/singulink.js"></script>
|
|
<script type="text/javascript" src="../styles/main.js"></script> </body>
|
|
</html>
|