Can we use string tokenizer function to split the string that contains camelcase?
String Tokenizer
Continuing the discussion from String Tokenizer Function on camelcase:
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.