Skip to content

Get-CasingStyle

SYNOPSIS

Detects the casing style of a string

SYNTAX

__AllParameterSets

Get-CasingStyle [-Text] <string> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

This function detects the casing style of a string.

EXAMPLES

EXAMPLE 1

'testtesttest' | Get-CasingStyle

lowercase

EXAMPLE 2

'TESTTESTTEST' | Get-CasingStyle

UPPERCASE

EXAMPLE 3

'Testtesttest' | Get-CasingStyle

Sentencecase

EXAMPLE 4

'TestTestTest' | Get-CasingStyle

PascalCase

EXAMPLE 5

'testTestTest' | Get-CasingStyle

camelCase

EXAMPLE 6

'test-test-test' | Get-CasingStyle

kebab-case

EXAMPLE 7

'TEST-TEST-TEST' | Get-CasingStyle

UPPER-KEBAB-CASE

EXAMPLE 8

'test_test_test' | Get-CasingStyle

snake_case

EXAMPLE 9

'TEST_TEST_TEST' | Get-CasingStyle

UPPER_SNAKE_CASE

EXAMPLE 10

'Test_teSt-Test' | Get-CasingStyle

Unknown

PARAMETERS

-Text

The string to check the casing style of

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

{{ Fill in the Description }}

OUTPUTS

[string] - The detected casing style of the input string

{{ Fill in the Description }}

System.String

{{ Fill in the Description }}

NOTES