DownloadDetection algorithm
When \Jawira\CaseConverter\Convert class is instantiated, the input string
is analysed to detect the words in it.
This is also the algorithm used by Convert::fromAuto method.
-
If input string contains `_` (underscore character), then `_` is used to split string.
-
If input string contains `-` (dash character), then `-` is used to split string.
-
If input string contains `?` (space character), then `?` is used to split string.
-
If input string contains `.` (space character), then `.` is used to split string.
-
If input string contains uppercase characters only, then the input string is
considered to be a single word.
-
Finally, uppercase characters are used to split string.
|