Searched defs:tok (Results 26 - 50 of 147) sorted by relevance

123456

/external/libedit/examples/
H A Dtc1.c132 Tokenizer *tok; local
150 tok = tok_init(NULL); /* Initialize the tokenizer */
206 ncontinuation = tok_line(tok, li, &ac, &av, &cc, &co);
301 tok_reset(tok);
305 tok_end(tok);
H A Dwtc1.c113 TokenizerW *tok; local
131 tok = tok_winit(NULL); /* Init the tokenizer */
182 ncontinuation = tok_wline(tok, li, &ac, &av, &cc, &co);
266 tok_wreset(tok);
270 tok_wend(tok);
/external/libsepol/src/
H A Dgenbools.c37 char *tok = strtok_r(buffer, "=", &ptr); local
38 if (tok) {
39 strncpy(name1, tok, BUFSIZ - 1);
43 tok = strtok_r(NULL, "\0", &ptr);
44 if (tok) {
45 while (isspace(*tok))
46 tok++;
48 if (isdigit(tok[0]))
49 *val = atoi(tok);
50 else if (!strncasecmp(tok, "tru
[all...]
/external/tcpdump/
H A Dprint-llc.c47 static const struct tok llc_values[] = {
66 static const struct tok llc_cmd_values[] = {
78 static const struct tok llc_flag_values[] = {
89 static const struct tok llc_ig_flag_values[] = {
96 static const struct tok llc_supervisory_values[] = {
104 static const struct tok cisco_values[] = {
114 static const struct tok bridged_values[] = {
129 static const struct tok null_values[] = {
135 const struct tok *tok; member in struct:oui_tok
392 const struct tok *tok = null_values; local
[all...]
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3lexer.c332 pANTLR3_COMMON_TOKEN tok; local
336 tok = nextTokenStr(toksource);
351 while (tok->type == ANTLR3_TOKEN_EOF)
364 tok = nextTokenStr(toksource);
380 return tok;
H A Dantlr3tokenstream.c539 pANTLR3_COMMON_TOKEN tok; local
566 tok = ts->get(ts, i);
567 if (tok != NULL)
569 string->appendS(string, tok->getText(tok));
725 pANTLR3_COMMON_TOKEN tok; local
748 tok = tokenStream->tstream->get(tokenStream->tstream, i);
751 || types->isMember(types, tok->getType(tok) == ANTLR3_TRUE)
754 filteredList->put(filteredList, n++, (void *)tok, NUL
803 pANTLR3_COMMON_TOKEN tok; local
952 pANTLR3_COMMON_TOKEN tok; local
1034 pANTLR3_COMMON_TOKEN tok; local
1057 pANTLR3_COMMON_TOKEN tok; local
[all...]
/external/chromium_org/net/http/
H A Dhttp_auth_sspi_win.cc230 HttpAuthChallengeTokenizer* tok) {
232 if (!LowerCaseEqualsASCII(tok->scheme(),
236 std::string encoded_auth_token = tok->base64_param();
229 ParseChallenge( HttpAuthChallengeTokenizer* tok) argument
/external/chromium_org/third_party/icu/source/common/
H A Duvectr32.cpp298 void UVector32::sortedInsert(int32_t tok, UErrorCode& ec) { argument
299 // Perform a binary search for the location to insert tok at. Tok
301 // tok && tok < b, where there is a 'virtual' elements[-1] always
302 // less than tok and a 'virtual' elements[count] always greater
303 // than tok.
307 //int8_t c = (*compare)(elements[probe], tok);
309 if (elements[probe] > tok) {
320 elements[min] = tok;
/external/clang/unittests/Basic/
H A DSourceManagerTest.cpp93 Token tok; local
94 PP.Lex(tok);
95 if (tok.is(tok::eof))
97 toks.push_back(tok);
102 ASSERT_EQ(tok::l_square, toks[0].getKind());
103 ASSERT_EQ(tok::identifier, toks[1].getKind());
104 ASSERT_EQ(tok::r_square, toks[2].getKind());
210 Token tok; local
211 PP.Lex(tok);
312 Token tok; local
[all...]
/external/clang/unittests/Lex/
H A DLexerTest.cpp64 ArrayRef<tok::TokenKind> ExpectedTokens) {
79 Token tok; local
80 PP.Lex(tok);
81 if (tok.is(tok::eof))
83 toks.push_back(tok);
116 std::vector<tok::TokenKind> ExpectedTokens;
117 ExpectedTokens.push_back(tok::identifier);
118 ExpectedTokens.push_back(tok::l_paren);
119 ExpectedTokens.push_back(tok
[all...]
/external/icu/icu4c/source/common/
H A Duvectr32.cpp298 void UVector32::sortedInsert(int32_t tok, UErrorCode& ec) { argument
299 // Perform a binary search for the location to insert tok at. Tok
301 // tok && tok < b, where there is a 'virtual' elements[-1] always
302 // less than tok and a 'virtual' elements[count] always greater
303 // than tok.
307 //int8_t c = (*compare)(elements[probe], tok);
309 if (elements[probe] > tok) {
320 elements[min] = tok;
/external/iproute2/misc/
H A Dlnstat.c254 char *tmp, *tok; local
277 for (tok = strtok(tmp, ",");
278 tok;
279 tok = strtok(NULL, ",")) {
287 fp.params[fp.num++].name = tok;
298 for (tok = strtok(tmp, ",");
299 tok;
300 tok = strtok(NULL, ",")) {
301 len = strtoul(tok, NULL, 0);
/external/jsmn/
H A Djsmn_test.c117 jsmntok_t tok[10]; local
122 r = jsmn_parse(&p, js, strlen(js), tok, 10);
123 check(r >= 0 && tok[0].type == JSMN_STRING
124 && tok[1].type == JSMN_PRIMITIVE);
125 check(TOKEN_STRING(js, tok[0], "boolVar"));
126 check(TOKEN_STRING(js, tok[1], "true"));
130 r = jsmn_parse(&p, js, strlen(js), tok, 10);
131 check(r >= 0 && tok[0].type == JSMN_STRING
132 && tok[1].type == JSMN_PRIMITIVE);
133 check(TOKEN_STRING(js, tok[
166 jsmntok_t tok[10]; local
199 jsmntok_t tok[10]; local
239 jsmntok_t tok[10]; local
260 jsmntok_t tok[10]; local
[all...]
/external/owasp/sanitizer/src/main/org/owasp/html/
H A DHtmlLexer.java190 HtmlToken tok = peekToken(nToMerge + 1);
191 if (tok == null) { break; }
192 if (tok.type != HtmlTokenType.TEXT) { break; }
193 if (isValuelessAttribute(input.substring(tok.start, tok.end))) {
716 private HtmlToken tok; field in class:AbstractTokenStream
719 if (tok == null) { tok = produce(); }
720 return tok != null;
724 if (this.tok
[all...]
/external/chromium_org/third_party/WebKit/Source/core/xml/
H A DXPathParser.cpp423 Token tok = nextToken(); local
425 switch (tok.type) {
427 yylval->axis = tok.axis;
430 yylval->numop = tok.numop;
434 yylval->eqop = tok.eqop;
443 yylval->str = new String(tok.str);
448 return tok.type;
/external/chromium_org/third_party/expat/files/lib/
H A Dxmltok_impl.c226 int tok; local
240 if (!PREFIX(checkPiTarget)(enc, target, ptr, &tok)) {
254 return tok;
264 if (!PREFIX(checkPiTarget)(enc, target, ptr, &tok)) {
273 return tok;
610 int tok = PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, &ptr); local
611 if (tok <= 0) {
612 if (tok == XML_TOK_INVALID)
614 return tok;
975 int tok; local
1281 int tok = PREFIX(scanPercent)(enc, ptr + MINBPC(enc), local
[all...]
H A Dxmlrole.c102 int tok,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
129 int tok,
134 switch (tok) {
161 return common(state, tok);
166 int tok,
171 switch (tok) {
192 return common(state, tok);
197 int tok,
202 switch (tok) {
128 prolog0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
165 prolog1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
196 prolog2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
217 doctype0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
235 doctype1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
265 doctype2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
282 doctype3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
299 doctype4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
319 doctype5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
336 internalSubset(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
393 externalSubset0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
406 externalSubset1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
438 entity0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
458 entity1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
475 entity2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
503 entity3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
520 entity4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
537 entity5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
560 entity6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
578 entity7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
606 entity8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
623 entity9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
640 entity10(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
657 notation0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
674 notation1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
698 notation2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
715 notation3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
733 notation4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
754 attlist0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
772 attlist1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
793 attlist2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
834 attlist3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
853 attlist4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
873 attlist5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
890 attlist6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
907 attlist7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
928 attlist8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
968 attlist9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
985 element0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1003 element1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1033 element2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1073 element3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1098 element4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1116 element5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1137 element6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1167 element7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1217 condSect0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1241 condSect1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1259 condSect2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1278 declClose(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1295 error(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1305 common(PROLOG_STATE *state, int tok) argument
[all...]
/external/chromium_org/third_party/libxml/src/
H A Dthreads.c190 xmlMutexPtr tok; local
192 if ((tok = malloc(sizeof(xmlMutex))) == NULL)
196 pthread_mutex_init(&tok->lock, NULL);
198 tok->mutex = CreateMutex(NULL, FALSE, NULL);
200 if ((tok->sem = create_sem(1, "xmlMutex")) < B_OK) {
201 free(tok);
204 tok->tid = -1;
206 return (tok);
211 * @tok: the simple mutex
217 xmlFreeMutex(xmlMutexPtr tok) argument
240 xmlMutexLock(xmlMutexPtr tok) argument
269 xmlMutexUnlock(xmlMutexPtr tok) argument
299 xmlRMutexPtr tok; local
355 xmlRMutexLock(xmlRMutexPtr tok) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/
H A Dnvfx_vertprog.c896 const union tgsi_full_token *tok = &p.FullToken; local
899 switch(tok->Token.Type) {
H A Dnvfx_fragprog.c1027 const union tgsi_full_token *tok = &p.FullToken; local
1030 switch(tok->Token.Type) {
/external/clang/include/clang/AST/
H A DCommentLexer.h33 namespace tok { namespace in namespace:clang::comments
54 } // end namespace tok
65 tok::TokenKind Kind;
91 tok::TokenKind getKind() const LLVM_READONLY { return Kind; }
92 void setKind(tok::TokenKind K) { Kind = K; }
94 bool is(tok::TokenKind K) const LLVM_READONLY { return Kind == K; }
95 bool isNot(tok::TokenKind K) const LLVM_READONLY { return Kind != K; }
101 assert(is(tok::text));
106 assert(is(tok::text));
112 assert(is(tok
[all...]
/external/expat/lib/
H A Dxmltok_impl.c226 int tok; local
240 if (!PREFIX(checkPiTarget)(enc, target, ptr, &tok)) {
254 return tok;
264 if (!PREFIX(checkPiTarget)(enc, target, ptr, &tok)) {
273 return tok;
610 int tok = PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, &ptr); local
611 if (tok <= 0) {
612 if (tok == XML_TOK_INVALID)
614 return tok;
975 int tok; local
1281 int tok = PREFIX(scanPercent)(enc, ptr + MINBPC(enc), local
[all...]
/external/libxml2/
H A Dthreads.c191 xmlMutexPtr tok; local
193 if ((tok = malloc(sizeof(xmlMutex))) == NULL)
197 pthread_mutex_init(&tok->lock, NULL);
199 tok->mutex = CreateMutex(NULL, FALSE, NULL);
201 if ((tok->sem = create_sem(1, "xmlMutex")) < B_OK) {
202 free(tok);
205 tok->tid = -1;
207 return (tok);
212 * @tok: the simple mutex
218 xmlFreeMutex(xmlMutexPtr tok) argument
241 xmlMutexLock(xmlMutexPtr tok) argument
269 xmlMutexUnlock(xmlMutexPtr tok) argument
299 xmlRMutexPtr tok; local
355 xmlRMutexLock(xmlRMutexPtr tok) argument
[all...]
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnvfx_vertprog.c896 const union tgsi_full_token *tok = &p.FullToken; local
899 switch(tok->Token.Type) {
/external/srec/srec/Grammar/src/
H A DSR_GrammarImpl.c356 LCHAR* tok; local
383 for (tok = strtok(filename, ","); tok; tok = strtok(NULL, ","))
385 if (LSTRSTR(tok, "addWords"))
387 addWords = atoi(LSTRCHR(tok, L('=')) + sizeof(LCHAR));
389 else if (tok != filename)
391 PLogError(L("UNKNOWN grammar load property %s"), tok);

Completed in 2688 milliseconds

123456