الفرق بين المراجعتين ل"Kotlin/kotlin.text/MatchGroupCollection/get"
< Kotlin | kotlin.text | MatchGroupCollection
اذهب إلى التنقل
اذهب إلى البحث
(أنشأ الصفحة ب'<noinclude>{{DISPLAYTITLE: الدالة <code>MatchGroupCollection.get()</code> في لغة Kotlin}}</noinclude> تعيد الدالة<code>get()</code> كائنا...') |
|||
سطر 1: | سطر 1: | ||
<noinclude>{{DISPLAYTITLE: الدالة <code>MatchGroupCollection.get()</code> في لغة Kotlin}}</noinclude> | <noinclude>{{DISPLAYTITLE: الدالة <code>MatchGroupCollection.get()</code> في لغة Kotlin}}</noinclude> | ||
− | تعيد الدالة<code>get()</code> كائنا من النوع <code>[[Kotlin/kotlin.text/MatchResult/index|MatchGroup]]</code> إن كانت المجموعة التي تحمل الإسم المُمرّر <code>name</code>. مطابقَة، وإلا فستعيد <code>null</code>. | + | تعيد الدالة<code>get()</code> كائنا من النوع <code>[[Kotlin/kotlin.text/MatchResult/index|MatchGroup]]</code> إن كانت المجموعة التي تحمل الإسم المُمرّر <code>name</code>. مطابقَة، وإلا فستعيد <code>null</code>. المجموعات مفهرسة من <code>1</code> وحتى عدد المجموعات في [[Kotlin/kotlin.text/Regex/index|التعبير النمطي]]، المجموعة ذات الفهرس <code>0</code> تقابل المطابقة الكلية. |
==البنية العامة== | ==البنية العامة== | ||
<syntaxhighlight lang="kotlin"> | <syntaxhighlight lang="kotlin"> | ||
− | abstract operator fun get( | + | abstract operator fun get(index: Int): MatchGroup? |
</syntaxhighlight>ويُلاحظ وجود الكلمة المفتاحيّة operator للدلالة على أنّ هذا التابع مرتبطٌ بمعامل التكرار (iteration operator). | </syntaxhighlight>ويُلاحظ وجود الكلمة المفتاحيّة operator للدلالة على أنّ هذا التابع مرتبطٌ بمعامل التكرار (iteration operator). | ||
سطر 10: | سطر 10: | ||
كائنا من النوع <code>[[Kotlin/kotlin.text/MatchResult/index|MatchGroup]]</code> أو <code>null</code>. | كائنا من النوع <code>[[Kotlin/kotlin.text/MatchResult/index|MatchGroup]]</code> أو <code>null</code>. | ||
==أنظر أيضًا== | ==أنظر أيضًا== | ||
− | * صفحة <code>[[Kotlin/kotlin.text/ | + | * صفحة <code>[[Kotlin/kotlin.text/MatchGroupCollection/index|MatchGroupCollection]]</code>. |
==مصادر== | ==مصادر== | ||
− | * [http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-match | + | * [http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-match-group-collection/get.html الدالة MatchGroupCollection.get() في التوثيق الرسميّ للمكتبة القياسيّة في لغة Kotlin.] |
[[تصنيف:Kotlin]] | [[تصنيف:Kotlin]] | ||
[[تصنيف:Kotlin Methods]] | [[تصنيف:Kotlin Methods]] |
مراجعة 16:46، 6 يوليو 2018
تعيد الدالةget()
كائنا من النوع MatchGroup
إن كانت المجموعة التي تحمل الإسم المُمرّر name
. مطابقَة، وإلا فستعيد null
. المجموعات مفهرسة من 1
وحتى عدد المجموعات في التعبير النمطي، المجموعة ذات الفهرس 0
تقابل المطابقة الكلية.
البنية العامة
abstract operator fun get(index: Int): MatchGroup?
ويُلاحظ وجود الكلمة المفتاحيّة operator للدلالة على أنّ هذا التابع مرتبطٌ بمعامل التكرار (iteration operator).
القيمة المُعادة
كائنا من النوع MatchGroup
أو null
.
أنظر أيضًا
- صفحة
MatchGroupCollection
.