ICU-13206 Don't write multiple expressions onto a single line.
X-SVN-Rev: 40135
This commit is contained in:
parent
e2e48c9dce
commit
6b9bbb9d9d
@ -316,13 +316,33 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
void inc(void) { ++p; ch = 0xffff; }
|
||||
UBool checkInc(UChar c) { if (p < e && (ch == c || *p == c)) { inc(); return TRUE; } return FALSE; }
|
||||
UBool check(UChar c) { return p < e && (ch == c || *p == c); }
|
||||
void skipWhitespace(void) { while (p < e && PatternProps::isWhiteSpace(ch != 0xffff ? ch : *p)) inc();}
|
||||
UBool inList(UChar c, const UChar* list) const {
|
||||
if (*list == SPACE && PatternProps::isWhiteSpace(c)) return TRUE;
|
||||
while (*list && *list != c) ++list; return *list == c;
|
||||
inline void inc(void) {
|
||||
++p;
|
||||
ch = 0xffff;
|
||||
}
|
||||
inline UBool checkInc(UChar c) {
|
||||
if (p < e && (ch == c || *p == 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user