# string.lower

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/string.lower
- **Çeviri tarihi:** 2025-09-08

```lua
string string.lower( string str )
```

## Açıklama

Bir string (metin) içindeki tüm büyük harfleri küçük harfe dönüştürür.

> **NOT:** Bu fonksiyon İngilizce dışındaki özel UTF-8 karakterleri üzerinde çalışmaz.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **str**: Dönüştürülecek string (metin).

## Döndürülen Değer

1. [string](https://gmod.tr/wiki/string): Bir string'in küçük harfe dönüştürülmüş değerini temsil eden bir string.

### Örnek

Bu fonksiyonun kullanımını gösterir.

```lua
print( string.lower( "ABCDEFG" ) )
print( string.lower( "AbCdefG" ) )
print( string.lower( "abcdefg" ) )
print( string.lower( "1234567890" ) )
```

**Çıktı:**

```lua
abcdefg
abcdefg
abcdefg
1234567890
```

### Örnek

string.lower'ın yaygın bir kullanımını gösterir - büyük/küçük harfe duyarsız kullanıcı girdisi.

```lua
-- Bu tablodaki tüm anahtarlar küçük harf olmalıdır:
local products = {}
products.apple = "Buy an apple!"
products.banana = "Buy a bunch of bananas!"
products.tomato = "There's also tomatoes."

-- Bu fonksiyon büyük/küçük harfe duyarsızdır, yani "APPLE", "apple" ve "APPle" hepsi aynıdır.
function GetProduct( userinput )

	return userinput, products[ string.lower( userinput ) ]

end

-- Gösterim:
print( GetProduct( "apple" ) )
print( GetProduct( "Apple" ) )
print( GetProduct( "APPLE" ) )
print()
print( GetProduct( "banana" ) )
print( GetProduct( "BaNaNa" ) )
```

**Çıktı:**

```lua
apple	Buy an apple!
Apple	Buy an apple!
APPLE	Buy an apple!

banana	Buy a bunch of bananas!
BaNaNa	Buy a bunch of bananas!
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/string.lower
