CCString deprecated in Cocos2D-x -


it seems ccstring deprecated in cocos2d-x v3.5. should use instead? also, reason deprecation?

short answer: use std::string instead.

the entire codebase moving toward using standard library (stl, std:: namespace) makes sense new c++11 features.

you can continue use ccstring anywhere using ccarray , ccdictionary. these deprecated, of course, should move using std::string.

valuemap, , valuevector replacements ccarray , ccdictionary based on stl std::map , std::vector , contain value objects. value can hold std::string, int, float, bool, valuemap/valuevector allow nested containers.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -