std::u16string _str16; StringUtils::UTF8ToUTF16(str,_str16); int _nums = _str16.length(); int _lines = _nums/words + (_nums%words==0?0:1); if (_nums==0) { CCAssert(0,"error"); } if (_lines == 1) { return 0; } return _lines;
std::u16string _str16; StringUtils::UTF8ToUTF16(str,_str16); int _nums = _str16.length(); int _lines = _nums/words + (_nums%words==0?0:1); if (_nums==0) { CCAssert(0,"error"); } if (_lines == 1) { return 0; } return _lines;