crusade-tracker/system/caches/pluginsDslCache/doc/jetbrains.build-server.configs.kotlin.v10/kotlin.-string/to-ext-id.html
2021-01-18 15:27:50 -05:00

22 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.v10</a>&nbsp;/&nbsp;<a href="index.html">kotlin.String</a>&nbsp;/&nbsp;<a href="./to-ext-id.html">toExtId</a><br/>
<br/>
<h1>toExtId</h1>
<a name="jetbrains.buildServer.configs.kotlin.v10$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><span class="identifier">toExtId</span><span class="symbol">(</span><span class="identifier" id="jetbrains.buildServer.configs.kotlin.v10$toExtId(kotlin.String, kotlin.String)/prefix">prefix</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a>&nbsp;<span class="symbol">=</span>&nbsp;""<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 an external id in TeamCity.
Can be used to generate an external id from a name.</p>
<pre><code class="lang-kotlin">"Fast Tests".toExtId() //result: FastTests
"Fast Tests".toExtId("MainProject") //result: MainProject_FastTests</code></pre>
<h3>Parameters</h3>
<p><a name="prefix"></a>
<code>prefix</code> - an optional prefix to add to the external id</p>
</BODY>
</HTML>