22 lines
1.5 KiB
HTML
22 lines
1.5 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<meta charset="UTF-8">
|
|
<title>toId - </title>
|
|
<link rel="stylesheet" href="../../style.css">
|
|
</HEAD>
|
|
<BODY>
|
|
<a href="../index.html">jetbrains.buildServer.configs.kotlin.v2018_1</a> / <a href="index.html">kotlin.String</a> / <a href="./to-id.html">toId</a><br/>
|
|
<br/>
|
|
<h1>toId</h1>
|
|
<a name="jetbrains.buildServer.configs.kotlin.v2018_1$toId(kotlin.String, kotlin.String)"></a>
|
|
<code><span class="keyword">fun </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">.</span><span class="identifier">toId</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2018_1$toId(kotlin.String, kotlin.String)/prefix">prefix</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a> <span class="symbol">=</span> ""<span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
|
|
<p>Creates a string satisfying requirements for entity id in TeamCity.
|
|
Can be used to generate an id from a name.</p>
|
|
<pre><code class="lang-kotlin">"Fast Tests".toId() //result: FastTests
|
|
"Fast Tests".toId("MainProject") //result: MainProject_FastTests</code></pre>
|
|
<h3>Parameters</h3>
|
|
<p><a name="prefix"></a>
|
|
<code>prefix</code> - an optional prefix to add to the id</p>
|
|
</BODY>
|
|
</HTML>
|