Get-StringCasingStyle¶
SYNOPSIS¶
Detects the casing style of a string
SYNTAX¶
Get-StringCasingStyle [-Text] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION¶
This function detects the casing style of a string.
EXAMPLES¶
EXAMPLE 1¶
'testtesttest' | Get-StringCasingStyle
lowercase
EXAMPLE 2¶
'TESTTESTTEST' | Get-StringCasingStyle
UPPERCASE
EXAMPLE 3¶
'Testtesttest' | Get-StringCasingStyle
Sentencecase
EXAMPLE 4¶
'TestTestTest' | Get-StringCasingStyle
PascalCase
EXAMPLE 5¶
'testTestTest' | Get-StringCasingStyle
camelCase
EXAMPLE 6¶
'test-test-test' | Get-StringCasingStyle
kebab-case
EXAMPLE 7¶
'TEST-TEST-TEST' | Get-StringCasingStyle
UPPER-KEBAB-CASE
EXAMPLE 8¶
'test_test_test' | Get-StringCasingStyle
snake_case
EXAMPLE 9¶
'TEST_TEST_TEST' | Get-StringCasingStyle
UPPER_SNAKE_CASE
EXAMPLE 10¶
'Test_teSt-Test' | Get-StringCasingStyle
Unknown
PARAMETERS¶
-Text¶
The string to check the casing style of
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.