/* Tokenize string without modification. Returns 0 on failure. */
static int readLine (const char* begin, const char* end, Str* str) {
static const char* nextStart;
if (begin) {
nextStart = begin;
return 1;
}
if (nextStart == end) return 0;
str->begin = nextStart;
/* Find next delimiter. */
while (nextStart != end && *nextStart != '\n')
nextStart++;
str->end = nextStart;
trim(str);
if (nextStart != end) nextStart++;
return 1;
}
```
这句代码 有点搞笑 啊。。。= =大家 觉得呢 官方 源码 中找到的
github地址 :https://github.com/2youyouo2/Cocos2d-x-For-CocoStudio/blob/master/extensions/spine/Atlas.cpp
先看static const char* nextStart;