how should i approach this problem?
- can i extract tokens from the string?
but how do i use upper case as a deliminator ?
or there is a better approach please explain?
how should i approach this problem?
There is no perfect delimiter here.
You cannot use the strtok() function to split a string which is in camel case perfectly.
Consider this
string s = “Coding-Blocks-Code-Your-Way-To-Success”
Now if we want to split this string into words by “-” then we should use the commands
strtok( s, “-” )
And you may observe that in the final result obtained, the delimiter “-” used is not occurring. So we can infere that if we try to split a camel case string using strtok, the delimiter i.e. the capital letter will be missing.