Description
Converts a string to UpperCamelCase (also known as PascalCase) format by removing non-alphanumeric characters and capitalizing the first letter of each word including the first.Syntax
Parameters
Returns
Type: string The input string converted to UpperCamelCase format. Returnsnull if input is null.
Examples
Example 1: Basic Usage
Example 2: Converting Class Names
Example 3: Normalizing Entity Names
Notes
- Returns
nullfornullinput - Removes all non-alphanumeric characters
- First character is always uppercase (unlike camelCase)
- Also known as PascalCase
- Useful for class names, type names, and entity naming conventions
See Also
- text.camelCase - Convert to camelCase (first letter lowercase)
- text.snakeCase - Convert to snake_case format
- text.capitalize - Capitalize first character only
Frequently Asked Questions
How is upperCamelCase different from camelCase?
How is upperCamelCase different from camelCase?
In
upperCamelCase (PascalCase) the first letter is capitalized (e.g., HelloWorld), while camelCase keeps it lowercase (e.g., helloWorld).What separators does it recognize?
What separators does it recognize?
It recognizes spaces, hyphens, underscores, and transitions between lowercase and uppercase characters as word boundaries.