@@ -47,9 +47,9 @@ void StringSplitter::init() {
4747 // Find the starting _head and _tail.
4848 if (__builtin_expect (_head != NULL , 1 )) {
4949 if (_empty_field_action == SKIP_EMPTY_FIELD) {
50- for (; _sep == * _head && not_end ( _head) ; ++_head) {}
50+ for (; not_end ( _head) && * _head == _sep ; ++_head) {}
5151 }
52- for (_tail = _head; *_tail != _sep && not_end (_tail) ; ++_tail) {}
52+ for (_tail = _head; not_end (_tail) && *_tail != _sep; ++_tail) {}
5353 } else {
5454 _tail = NULL ;
5555 }
@@ -60,11 +60,11 @@ StringSplitter& StringSplitter::operator++() {
6060 if (not_end (_tail)) {
6161 ++_tail;
6262 if (_empty_field_action == SKIP_EMPTY_FIELD) {
63- for (; _sep == * _tail && not_end ( _tail) ; ++_tail) {}
63+ for (; not_end ( _tail) && * _tail == _sep ; ++_tail) {}
6464 }
6565 }
6666 _head = _tail;
67- for (; *_tail != _sep && not_end (_tail) ; ++_tail) {}
67+ for (; not_end (_tail) && *_tail != _sep; ++_tail) {}
6868 }
6969 return *this ;
7070}
@@ -189,9 +189,9 @@ StringMultiSplitter::StringMultiSplitter (
189189void StringMultiSplitter::init () {
190190 if (__builtin_expect (_head != NULL , 1 )) {
191191 if (_empty_field_action == SKIP_EMPTY_FIELD) {
192- for (; is_sep (* _head) && not_end ( _head); ++_head) {}
192+ for (; not_end ( _head) && is_sep (* _head); ++_head) {}
193193 }
194- for (_tail = _head; ! is_sep (* _tail) && not_end ( _tail); ++_tail) {}
194+ for (_tail = _head; not_end ( _tail) && ! is_sep (* _tail); ++_tail) {}
195195 } else {
196196 _tail = NULL ;
197197 }
@@ -202,11 +202,11 @@ StringMultiSplitter& StringMultiSplitter::operator++() {
202202 if (not_end (_tail)) {
203203 ++_tail;
204204 if (_empty_field_action == SKIP_EMPTY_FIELD) {
205- for (; is_sep (* _tail) && not_end ( _tail); ++_tail) {}
205+ for (; not_end ( _tail) && is_sep (* _tail); ++_tail) {}
206206 }
207207 }
208208 _head = _tail;
209- for (; ! is_sep (* _tail) && not_end ( _tail); ++_tail) {}
209+ for (; not_end ( _tail) && ! is_sep (* _tail); ++_tail) {}
210210 }
211211 return *this ;
212212}
0 commit comments