Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > utils > dize > commonWordSuffix
utils.string.commonWordSuffix() işlevi
Bir dize dizisi verildiğinde ortak son ekin uzunluğunu döndürür. Kelimeler bölünemez. Kelimeden sonraki herhangi bir boşluk uzunluka dahil edilir.
İmza:
export declare function commonWordSuffix(array: string[], opt_shortest?: number): number;
Parametreler
Parametre |
Tür |
Açıklama |
dizi |
dize[] |
Dize dizisi. |
opt_shortest |
sayı |
(İsteğe bağlı) En kısa dizenin uzunluğu. |
Şunu döndürür:
sayı
Ortak sonekin uzunluğu.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-12 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-09-12 UTC."],[[["The `commonWordSuffix` function calculates the length of the common suffix shared by an array of strings."],["It considers spaces after words as part of the suffix length and doesn't split words."],["An optional parameter allows specifying the length of the shortest string for optimization."],["The function returns a number representing the length of the shared suffix."]]],[]]