Is there any possible way to get a character Unicode value by CPP? I was trying it but I can't find any good article on it.
In Python, we can get it by using the ord() function. So is CPP have the same kind of function for getting a character Unicode value?
What would you want to use it for? Do you actually need unicode characters and their values, or are basic ascii characters and their values enough for what you are trying to do?
Actually, I need to separate the Bangla words from a bunch of Unicode characters, and the Bangla character Unicode range is 2432>=bangla word<=2559.
For every character you can check whether its ASCII value lies between 2432 and 2559...and then proceed to count such words.
But the ASCII value range is (0~127) and for extended ASCII it is (128~255).
Hope this blog answers your query:
https://stackoverflow.com/questions/148403/utf8-to-from-wide-char-conversion-in-stl
Just cast the character to int:
It should output 937.