ICU-13206 Don't write multiple expressions onto a single line.

X-SVN-Rev: 40135
This commit is contained in:
George Rhoten 2017-05-24 18:20:04 +00:00
parent e2e48c9dce
commit 6b9bbb9d9d

View File

@ -316,13 +316,33 @@ public:
private: private:
void inc(void) { ++p; ch = 0xffff; } inline void inc(void) {
UBool checkInc(UChar c) { if (p < e && (ch == c || *p == c)) { inc(); return TRUE; } return FALSE; } ++p;
UBool check(UChar c) { return p < e && (ch == c || *p == c); } ch = 0xffff;
void skipWhitespace(void) { while (p < e && PatternProps::isWhiteSpace(ch != 0xffff ? ch : *p)) inc();} }
UBool inList(UChar c, const UChar* list) const { inline UBool checkInc(UChar c) {
if (*list == SPACE && PatternProps::isWhiteSpace(c)) return TRUE; if (p < e && (ch == c || *p == c)) {
while (*list && *list != c) ++list; return *list == c; inc();
return TRUE;
}
return FALSE;
}
inline UBool check(UChar c) {
return p < e && (ch == c || *p == c);
}
inline void skipWhitespace(void) {
while (p < e && PatternProps::isWhiteSpace(ch != 0xffff ? ch : *p)) {
inc();
}
}
inline UBool inList(UChar c, const UChar* list) const {
if (*list == SPACE && PatternProps::isWhiteSpace(c)) {
return TRUE;
}
while (*list && *list != c) {
++list;
}
return *list == c;
} }
void parseError(const char* msg); void parseError(const char* msg);