February 2019
Intermediate to advanced
626 pages
15h 51m
English
ToUpper converts any lowercase characters in a string into uppercase. ToLower converts any uppercase characters in a string into lowercase:
'aBc'.ToUpper() # Returns ABC 'AbC'.ToLower() # Returns abc
Considering that the methods discussed here are case sensitive, converting a string into a known case may be an important first step. Consider the following example:
$string = 'AbN'
$string = $string.ToLower()
$string = $string.Replace('n', 'c')
The ToTitleCase is not a method of the String object. It is a method of the System.Globalization.TextInfo class. The ToTitleCase method performs limited culture-specific capitalization of words:
PS> (Get-Culture).TextInfo.ToTitleCase('some title') Some Title
As this ...
Read now
Unlock full access