/external/apache-http/src/org/apache/http/impl/ |
D | DefaultHttpRequestFactory.java | 73 private static boolean isOneOf(final String[] methods, final String method) { in isOneOf() method in DefaultHttpRequestFactory 88 if (isOneOf(RFC2616_COMMON_METHODS, method)) { in newHttpRequest() 90 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) { in newHttpRequest() 92 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) { in newHttpRequest() 101 if (isOneOf(RFC2616_COMMON_METHODS, method)) { in newHttpRequest() 103 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) { in newHttpRequest() 105 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) { in newHttpRequest()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 62 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle() 71 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle() 110 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_if, in parseParens() 155 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens() 164 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens() 199 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens() 207 if (CurrentToken->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens() 232 (!Parent || Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare() 278 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare() 315 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace() [all …]
|
D | FormatToken.h | 271 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { in isOneOf() function 275 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3) const { in isOneOf() function 279 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3, 300 return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) && 316 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square) || in opensScope() 321 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square) || in closesScope() 327 return isOneOf(tok::arrow, tok::period, tok::arrowstar) && in isMemberAccess()
|
D | ContinuationIndenter.cpp | 103 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 144 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 148 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at) && in mustBreak() 222 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak() 305 Previous.Previous && Previous.Previous->isOneOf(tok::kw_if, tok::kw_for)) in addTokenOnCurrentLine() 309 else if (!Current.isOneOf(tok::comment, tok::caret) && in addTokenOnCurrentLine() 408 if ((Previous.isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine() 444 !PreviousNonComment->isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine() 461 if (!(Previous.isOneOf(tok::l_paren, tok::l_brace) || in addTokenOnNewLine() 488 if (Current.isOneOf(tok::r_brace, tok::r_square)) { in getNewLineColumn() [all …]
|
D | UnwrappedLineParser.cpp | 339 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 343 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes() 355 NextTok->isOneOf(tok::comma, tok::semi, tok::period, tok::colon, in calculateBraceTypes() 823 (Line->Tokens.back().Tok->isOneOf(tok::identifier, tok::kw_operator) || in tryToParseLambda() 882 if (!FormatTok->isOneOf(tok::comma, tok::identifier)) { in tryToParseLambdaIntroducer() 894 if (!FormatTok->isOneOf(tok::identifier, tok::kw_this)) in tryToParseLambdaIntroducer() 924 if (!FormatTok->isOneOf(tok::identifier, tok::comma, tok::r_paren, in tryToParseJSFunction() 1147 if (FormatTok->isOneOf(tok::semi, tok::r_brace)) in parseTryCatch() 1305 FormatTok->isOneOf(tok::colon, tok::coloncolon)) { in parseEnum()
|
D | Format.cpp | 632 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while)) { in tryFitMultipleLinesInOne() 678 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, in tryMergeSimpleControlStatement() 696 if (Line.First->isOneOf(tok::at, tok::minus, tok::plus)) in tryMergeSimpleBlock() 701 if (Line.First->isOneOf(tok::kw_else, tok::kw_case)) in tryMergeSimpleBlock() 703 if (Line.First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_do, tok::kw_try, in tryMergeSimpleBlock() 711 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for)) in tryMergeSimpleBlock() 715 if (Line.First->isOneOf(tok::kw_try, tok::kw_catch)) in tryMergeSimpleBlock() 729 if (Line.First->isOneOf(tok::kw_class, tok::kw_union, tok::kw_struct)) in tryMergeSimpleBlock() 1013 if (PreviousLine && PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && in formatFirstToken() 1380 (I[1]->isOneOf(tok::l_paren, tok::semi, tok::l_brace, tok::r_brace, in tryMergeJSRegexLiteral()
|
/external/apache-http/src/org/apache/http/message/ |
D | BasicHeaderValueParser.java | 304 private static boolean isOneOf(final char ch, final char[] chs) { in isOneOf() method in BasicHeaderValueParser 339 if (isOneOf(ch, delimiters)) { in parseNameValuePair() 370 if (!qouted && !escaped && isOneOf(ch, delimiters)) { in parseNameValuePair()
|
/external/hamcrest/library/src/org/hamcrest/collection/ |
D | IsIn.java | 42 public static <T> Matcher<T> isOneOf(T... elements) { in isOneOf() method in IsIn
|
/external/hamcrest/library/src/org/hamcrest/ |
D | Matchers.java | 221 public static <T> org.hamcrest.Matcher<T> isOneOf(T... elements) { in isOneOf() method in Matchers 222 return org.hamcrest.collection.IsIn.isOneOf(elements); in isOneOf()
|