24 lines
1.6 KiB
HTML
24 lines
1.6 KiB
HTML
|
<HTML>
|
||
|
<HEAD>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>toExtId - </title>
|
||
|
<link rel="stylesheet" href="../../style.css">
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<a href="../index.html">jetbrains.buildServer.configs.kotlin.v2017_2</a> / <a href="index.html">kotlin.String</a> / <a href="./to-ext-id.html">toExtId</a><br/>
|
||
|
<br/>
|
||
|
<h1>toExtId</h1>
|
||
|
<a name="jetbrains.buildServer.configs.kotlin.v2017_2$toExtId(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><s><span class="identifier">toExtId</span></s><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v2017_2$toExtId(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><br/>
|
||
|
<strong>Deprecated:</strong> Please use 'toId' instead<br/>
|
||
|
<br/>
|
||
|
<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>
|