Converting UTF-8 Characters to Upper/Lower case

Hello everybody !

Currently, I have a string that contains UTF-8 Characters ! Ex :

std::string input = “ádàănướờ”

. Do you have any way (cocos2d-x function, cocos2d::String,… ) to help me convert lowercase to UPPERCASE ?

Thanks you very much !

I don’t see any such API in cocos2d.

I see following possible solutions:

  • use boost
  • use native calls and convert string in Java for Android and ObjectiveC/Swift for iOS
1 Like