toLowerCase

Summary

Converts each character of the string to lowercase.

Usage

public string toLowerCase()

Returns

A new string with all characters of the original string converted to lowercase letters.

Description

Converts each character of the string to its equivalent Unicode lowercase character and returns the result. For characters that have no Unicode lowercase equivalent, the character is not substituted.

Examples

Basic Usage
1
2
3
4
5
import System;
 
string uppercase = "ABC";
string lowercase = uppercase.toLowerCase();
Console.log(lowercase); // "abc"
Convert Greek "Gamma" to Lowercase
1
2
3
4
5
import System;
 
string uppercase = "�";
string lowercase = uppercase.toLowerCase();
Console.log(lowercase); // "�"

Share

HTML | BBCode | Direct Link