This function converts a string to PascalCase, which is a naming convention where
the first letter of each word is capitalized and there are no spaces or other separators
between the words.
If the input is not a string, this function returns a Result object containing an error.
Converts a string to PascalCase.
Remarks
This function converts a string to PascalCase, which is a naming convention where the first letter of each word is capitalized and there are no spaces or other separators between the words.
If the input is not a string, this function returns a
Result
object containing an error.Example
Converting a string with spaces to PascalCase:
Example
Converting a string with hyphens to PascalCase:
Example
Handling non-string input: