crusade-tracker/system/caches/pluginsDslCache/doc/jetbrains.build-server.configs.kotlin.v2017_2/kotlin.-string/to-ext-id.html

24 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2021-01-18 20:27:50 +00:00
<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>&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.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>&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><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>