0

I am using cocos2d-x and I want to check that CCString is empty or not. Since I am using box2d where i have to get fixture user data as ccsting from and check it is null or empty.

Singhak
  • 8,508
  • 2
  • 31
  • 34

2 Answers2

0

use &string == null null is int and string is obj

giammin
  • 18,620
  • 8
  • 71
  • 89
0

According to the reference, CCString has a member function called length().

einverne
  • 6,454
  • 6
  • 45
  • 91