Home
last modified time | relevance | path

Searched refs:scanner (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/v8/src/
Ddateparser-inl.h20 DateStringTokenizer<Char> scanner(&in); in Parse()
74 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse()
81 token = scanner.Next()) { in Parse()
86 if (scanner.SkipSymbol(':')) { in Parse()
87 if (scanner.SkipSymbol(':')) { in Parse()
95 if (scanner.Peek().IsSymbol('.')) scanner.Next(); in Parse()
97 } else if (scanner.SkipSymbol('.') && time.IsExpecting(n)) { in Parse()
99 if (!scanner.Peek().IsNumber()) return false; in Parse()
100 int n = ReadMilliseconds(scanner.Next()); in Parse()
109 DateToken peek = scanner.Peek(); in Parse()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/parser/
DParserImpl.java39 import org.yaml.snakeyaml.scanner.Scanner;
40 import org.yaml.snakeyaml.scanner.ScannerImpl;
123 protected final Scanner scanner; field in ParserImpl
134 public ParserImpl(Scanner scanner) { in ParserImpl() argument
135 this.scanner = scanner; in ParserImpl()
183 StreamStartToken token = (StreamStartToken) scanner.getToken(); in produce()
194 … if (!scanner.checkToken(Token.ID.Directive, Token.ID.DocumentStart, Token.ID.StreamEnd)) { in produce()
196 Token token = scanner.peekToken(); in produce()
214 while (scanner.checkToken(Token.ID.DocumentEnd)) { in produce()
215 scanner.getToken(); in produce()
[all …]
/external/snakeyaml/src/test/java/org/pyyaml/
DCanonicalParser.java43 private CanonicalScanner scanner; field in CanonicalParser
48 scanner = new CanonicalScanner(data); in CanonicalParser()
53 scanner.getToken(Token.ID.StreamStart); in parseStream()
55 while (!scanner.checkToken(Token.ID.StreamEnd)) { in parseStream()
56 if (scanner.checkToken(Token.ID.Directive, Token.ID.DocumentStart)) { in parseStream()
59 throw new CanonicalException("document is expected, got " + scanner.tokens.get(0)); in parseStream()
62 scanner.getToken(Token.ID.StreamEnd); in parseStream()
68 if (scanner.checkToken(Token.ID.Directive)) { in parseDocument()
69 scanner.getToken(Token.ID.Directive); in parseDocument()
71 scanner.getToken(Token.ID.DocumentStart); in parseDocument()
[all …]
/external/wayland-protocols/chromium.org/
DREADME.chromium19 …wayland-scanner code < src/unstable/xdg-shell/xdg-shell-unstable-v5.xml > protocol/xdg-shell-v5-pr…
20 …wayland-scanner server-header < src/unstable/xdg-shell/xdg-shell-unstable-v5.xml > include/protoco…
21 …wayland-scanner client-header < src/unstable/xdg-shell/xdg-shell-unstable-v5.xml > include/protoco…
22 …wayland-scanner code < src/unstable/xdg-shell/xdg-shell-unstable-v6.xml > protocol/xdg-shell-v6-pr…
23 …wayland-scanner server-header < src/unstable/xdg-shell/xdg-shell-unstable-v6.xml > include/protoco…
24 …wayland-scanner client-header < src/unstable/xdg-shell/xdg-shell-unstable-v6.xml > include/protoco…
25 …wayland-scanner code < src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > protocol/linux-dma…
26 …wayland-scanner server-header < src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > include/p…
27 …wayland-scanner client-header < src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > include/p…
28 wayland-scanner code < src/stable/viewporter/viewporter.xml > protocol/viewporter-protocol.c
[all …]
/external/libxkbcommon/xkbcommon/src/
Dscanner-utils.h46 struct scanner { struct
60 #define scanner_log(scanner, level, fmt, ...) \ argument
61 xkb_log((scanner)->ctx, (level), 0, \
63 (scanner)->file_name, \
64 (scanner)->token_line, (scanner)->token_column, ##__VA_ARGS__)
66 #define scanner_err(scanner, fmt, ...) \ argument
67 scanner_log(scanner, XKB_LOG_LEVEL_ERROR, fmt, ##__VA_ARGS__)
69 #define scanner_warn(scanner, fmt, ...) \ argument
70 scanner_log(scanner, XKB_LOG_LEVEL_WARNING, fmt, ##__VA_ARGS__)
73 scanner_init(struct scanner *s, struct xkb_context *ctx, in scanner_init()
[all …]
/external/boringssl/src/crypto/fipsmodule/bn/
Dbn_test_to_fuzzer.go38 scanner *bufio.Scanner member
45 return &testScanner{scanner: bufio.NewScanner(r)}
49 if !s.scanner.Scan() {
89 if len(s.scanner.Text()) != 0 && s.scanner.Text()[0] != '#' {
95 s.test.Type, ok = s.addAttribute(s.scanner.Text())
102 if len(s.scanner.Text()) == 0 {
106 if s.scanner.Text()[0] == '#' {
110 if _, ok := s.addAttribute(s.scanner.Text()); !ok {
114 return s.scanner.Err() == nil
125 return s.scanner.Err()
[all …]
Dcheck_bn_tests.go34 scanner *bufio.Scanner member
41 return &testScanner{scanner: bufio.NewScanner(r)}
45 if !s.scanner.Scan() {
85 if len(s.scanner.Text()) != 0 && s.scanner.Text()[0] != '#' {
91 s.test.Type, ok = s.addAttribute(s.scanner.Text())
98 if len(s.scanner.Text()) == 0 {
102 if s.scanner.Text()[0] == '#' {
106 if _, ok := s.addAttribute(s.scanner.Text()); !ok {
110 return s.scanner.Err() == nil
121 return s.scanner.Err()
[all …]
/external/tensorflow/tensorflow/core/lib/strings/
Dproto_text_util.h121 inline void ProtoSpaceAndComments(Scanner* scanner) { in ProtoSpaceAndComments() argument
123 scanner->AnySpace(); in ProtoSpaceAndComments()
124 if (scanner->Peek() != '#') return; in ProtoSpaceAndComments()
126 while (scanner->Peek('\n') != '\n') scanner->One(Scanner::ALL); in ProtoSpaceAndComments()
133 bool ProtoParseNumericFromScanner(Scanner* scanner, T* value) { in ProtoParseNumericFromScanner() argument
135 scanner->RestartCapture(); in ProtoParseNumericFromScanner()
136 if (!scanner->Many(Scanner::LETTER_DIGIT_DOT_PLUS_MINUS) in ProtoParseNumericFromScanner()
152 ProtoSpaceAndComments(scanner); in ProtoParseNumericFromScanner()
158 bool ProtoParseBoolFromScanner(Scanner* scanner, bool* value);
162 bool ProtoParseStringLiteralFromScanner(Scanner* scanner, string* value);
Dproto_text_util.cc21 bool ProtoParseBoolFromScanner(Scanner* scanner, bool* value) { in ProtoParseBoolFromScanner() argument
23 if (!scanner->RestartCapture() in ProtoParseBoolFromScanner()
28 ProtoSpaceAndComments(scanner); in ProtoParseBoolFromScanner()
40 bool ProtoParseStringLiteralFromScanner(Scanner* scanner, string* value) { in ProtoParseStringLiteralFromScanner() argument
41 const char quote = scanner->Peek(); in ProtoParseStringLiteralFromScanner()
45 if (!scanner->One(Scanner::ALL) in ProtoParseStringLiteralFromScanner()
53 ProtoSpaceAndComments(scanner); in ProtoParseStringLiteralFromScanner()
/external/guice/core/src/com/google/inject/spi/
DModuleAnnotatedMethodScannerBinding.java32 private final ModuleAnnotatedMethodScanner scanner; field in ModuleAnnotatedMethodScannerBinding
34 public ModuleAnnotatedMethodScannerBinding(Object source, ModuleAnnotatedMethodScanner scanner) { in ModuleAnnotatedMethodScannerBinding() argument
36 this.scanner = checkNotNull(scanner, "scanner"); in ModuleAnnotatedMethodScannerBinding()
45 return scanner; in getScanner()
55 binder.withSource(getSource()).scanModulesForAnnotatedMethods(scanner); in applyTo()
60 return scanner in toString()
62 + scanner.annotationClasses() in toString()
/external/v8/src/parsing/
Dpreparser.cc41 PreParserIdentifier GetSymbolHelper(Scanner* scanner) { in GetSymbolHelper() argument
46 switch (scanner->current_token()) { in GetSymbolHelper()
56 switch (scanner->current_contextual_token()) { in GetSymbolHelper()
64 if (scanner->literal_contains_escapes()) { in GetSymbolHelper()
67 switch (scanner->current_contextual_token()) { in GetSymbolHelper()
81 PreParserIdentifier symbol = GetSymbolHelper(scanner()); in GetSymbol()
83 const AstRawString* result = scanner()->CurrentSymbol(ast_value_factory()); in GetSymbol()
105 int start_position = scanner()->peek_location().beg_pos; in PreParseProgram()
111 ReportUnexpectedToken(scanner()->current_token()); in PreParseProgram()
113 CheckStrictOctalLiteral(start_position, scanner()->location().end_pos, &ok); in PreParseProgram()
[all …]
Dparser-base.h100 SourceRangeScope(Scanner* scanner, SourceRange* range,
103 : scanner_(scanner), range_(range), post_kind_(post_kind) { in scanner_() argument
256 ParserBase(Zone* zone, Scanner* scanner, uintptr_t stack_limit, in ParserBase() argument
276 scanner_(scanner), in ParserBase()
304 return scanner()->allow_harmony_bigint(); in allow_harmony_bigint()
307 scanner()->set_allow_harmony_bigint(allow); in set_allow_harmony_bigint()
310 return scanner()->allow_harmony_numeric_separator(); in allow_harmony_numeric_separator()
313 scanner()->set_allow_harmony_numeric_separator(allow); in set_allow_harmony_numeric_separator()
317 return scanner()->allow_harmony_private_fields(); in allow_harmony_private_fields()
320 scanner()->set_allow_harmony_private_fields(allow); in set_allow_harmony_private_fields()
[all …]
/external/skia/src/ports/
DSkFontMgr_custom_directory.cpp18 void loadSystemFonts(const SkTypeface_FreeType::Scanner& scanner, in loadSystemFonts() argument
21 load_directory_fonts(scanner, fBaseDirectory, ".ttf", families); in loadSystemFonts()
22 load_directory_fonts(scanner, fBaseDirectory, ".ttc", families); in loadSystemFonts()
23 load_directory_fonts(scanner, fBaseDirectory, ".otf", families); in loadSystemFonts()
24 load_directory_fonts(scanner, fBaseDirectory, ".pfb", families); in loadSystemFonts()
45 static void load_directory_fonts(const SkTypeface_FreeType::Scanner& scanner, in load_directory_fonts() argument
61 if (!scanner.recognizedFont(stream.get(), &numFaces)) { in load_directory_fonts()
70 if (!scanner.scanFont(stream.get(), faceIndex, in load_directory_fonts()
95 load_directory_fonts(scanner, dirname, suffix, families); in load_directory_fonts()
/external/skqp/src/ports/
DSkFontMgr_custom_directory.cpp18 void loadSystemFonts(const SkTypeface_FreeType::Scanner& scanner, in loadSystemFonts() argument
21 load_directory_fonts(scanner, fBaseDirectory, ".ttf", families); in loadSystemFonts()
22 load_directory_fonts(scanner, fBaseDirectory, ".ttc", families); in loadSystemFonts()
23 load_directory_fonts(scanner, fBaseDirectory, ".otf", families); in loadSystemFonts()
24 load_directory_fonts(scanner, fBaseDirectory, ".pfb", families); in loadSystemFonts()
45 static void load_directory_fonts(const SkTypeface_FreeType::Scanner& scanner, in load_directory_fonts() argument
61 if (!scanner.recognizedFont(stream.get(), &numFaces)) { in load_directory_fonts()
70 if (!scanner.scanFont(stream.get(), faceIndex, in load_directory_fonts()
95 load_directory_fonts(scanner, dirname, suffix, families); in load_directory_fonts()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCpuMonitor.java96 Scanner scanner = new Scanner(rdr).useDelimiter("[-\n]"); in init() local
97 scanner.nextInt(); // Skip leading number 0. in init()
98 cpusPresent = 1 + scanner.nextInt(); in init()
99 scanner.close(); in init()
276 Scanner scanner = new Scanner(rdr); in readIdleAndRunTime() local
277 scanner.next(); in readIdleAndRunTime()
278 long user = scanner.nextLong(); in readIdleAndRunTime()
279 long nice = scanner.nextLong(); in readIdleAndRunTime()
280 long sys = scanner.nextLong(); in readIdleAndRunTime()
282 idleTime = scanner.nextLong(); in readIdleAndRunTime()
[all …]
/external/syzkaller/pkg/ast/
Dscanner.go88 type scanner struct { struct
104 func newScanner(data []byte, filename string, errorHandler ErrorHandler) *scanner {
108 s := &scanner{
128 func (s *scanner) Scan() (tok token, lit string, pos Pos) { argument
173 func (s *scanner) scanCExpr(pos Pos) string { argument
185 func (s *scanner) scanStr(pos Pos) string { argument
211 func (s *scanner) scanInt(pos Pos) string { argument
236 func (s *scanner) scanChar(pos Pos) string { argument
247 func (s *scanner) scanIdent(pos Pos) (tok token, lit string) { argument
262 func (s *scanner) Error(pos Pos, msg string, args ...interface{}) { argument
[all …]
/external/libxkbcommon/xkbcommon/src/xkbcomp/
Dparser-priv.h31 struct scanner;
36 _xkbcommon_lex(YYSTYPE *yylval, struct scanner *scanner);
39 parse(struct xkb_context *ctx, struct scanner *scanner, const char *map);
/external/guice/core/src/com/google/inject/internal/
DProviderMethodsModule.java53 private final ModuleAnnotatedMethodScanner scanner; field in ProviderMethodsModule
56 Object delegate, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner) { in ProviderMethodsModule() argument
60 this.scanner = scanner; in ProviderMethodsModule()
69 public static Module forModule(Object module, ModuleAnnotatedMethodScanner scanner) { in forModule() argument
70 return forObject(module, false, scanner); in forModule()
85 Object object, boolean skipFastClassGeneration, ModuleAnnotatedMethodScanner scanner) { in forObject() argument
91 return new ProviderMethodsModule(object, skipFastClassGeneration, scanner); in forObject()
186 for (Class<? extends Annotation> annotationClass : scanner.annotationClasses()) { in getAnnotation()
193 scanner, method); in getAnnotation()
263 key = scanner.prepareMethod(binder, annotation, key, point); in createProviderMethod()
[all …]
/external/libnl/lib/route/
Dpktloc.c77 extern int pktloc_parse(void *scanner);
91 yyscan_t scanner = NULL; in read_pktlocs() local
124 if ((err = pktloc_lex_init(&scanner)) < 0) { in read_pktlocs()
129 buf = pktloc__create_buffer(fd, YY_BUF_SIZE, scanner); in read_pktlocs()
130 pktloc__switch_to_buffer(buf, scanner); in read_pktlocs()
132 if ((err = pktloc_parse(scanner)) != 0) { in read_pktlocs()
133 pktloc__delete_buffer(buf, scanner); in read_pktlocs()
141 pktloc_lex_destroy(scanner); in read_pktlocs()
/external/python/cpython2/Mac/Modules/qd/
Dqdscan.py13 scanner = MyScanner(input, output, defsoutput)
14 scanner.scan()
15 scanner.close()
23 scanner = MyScanner(input, output, defsoutput)
24 scanner.scan()
25 scanner.close()
/external/proguard/src/proguard/ant/
DConfigurationElement.java72 DirectoryScanner scanner = fileSet.getDirectoryScanner(getProject()); in appendTo() local
73 baseDir = scanner.getBasedir(); in appendTo()
74 fileNames = scanner.getIncludedFiles(); in appendTo()
84 DirectoryScanner scanner = getDirectoryScanner(getProject()); in appendTo() local
85 baseDir = scanner.getBasedir(); in appendTo()
86 fileNames = scanner.getIncludedFiles(); in appendTo()
/external/tensorflow/tensorflow/core/framework/
Dshape_inference_testutil.cc240 strings::Scanner scanner(spec); in MakeShapeFromString() local
241 scanner.OneLiteral("["); in MakeShapeFromString()
242 while (scanner.Peek() != ']') { in MakeShapeFromString()
243 if (scanner.Peek() == '?') { in MakeShapeFromString()
244 scanner.OneLiteral("?"); in MakeShapeFromString()
247 scanner.RestartCapture().Many(strings::Scanner::DIGIT); in MakeShapeFromString()
251 if (!scanner.GetResult(nullptr, &match) || in MakeShapeFromString()
259 if (scanner.Peek() == ',') { in MakeShapeFromString()
260 scanner.OneLiteral(","); in MakeShapeFromString()
261 } else if (scanner.Peek() != ']') { in MakeShapeFromString()
[all …]
/external/syzkaller/pkg/symbolizer/
Dsymbolizer.go36 scanner *bufio.Scanner member
52 return symbolize(sub.input, sub.scanner, pcs)
88 scanner: bufio.NewScanner(stdout),
97 func symbolize(input *bufio.Writer, scanner *bufio.Scanner, pcs []uint64) ([]Frame, error) {
105 if !scanner.Scan() {
106 if err = scanner.Err(); err == nil {
113 frames1, err = parse(scanner)
120 scanner.Scan()
/external/deqp-deps/glslang/hlsl/
DhlslTokenStream.h45 explicit HlslTokenStream(HlslScanContext& scanner) in HlslTokenStream() argument
46 : scanner(scanner), preTokenStackSize(0), tokenBufferPos(0) { } in HlslTokenStream()
55 …glslang::TBuiltInVariable mapSemantic(const char* upperCase) { return scanner.mapSemantic(upperCas… in mapSemantic()
67 HlslScanContext& scanner; // lexical scanner, to get next token from source file variable
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/scanner/
DScannerImplTest.java16 package org.yaml.snakeyaml.scanner;
39 Scanner scanner = new ScannerImpl(reader); in testGetToken() local
50 while (!etalonTokens.isEmpty() && scanner.checkToken(etalonTokens.get(0).getTokenId())) { in testGetToken()
51 assertEquals(etalonTokens.removeFirst(), scanner.getToken()); in testGetToken()
53 assertFalse("Must contain no more tokens: " + scanner.getToken(), in testGetToken()
54 scanner.checkToken(new Token.ID[0])); in testGetToken()

12345678910>>...13