- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 275 for scanOne (0.2 sec)
-
src/go/internal/gccgoimporter/parser.go
p.scanner = new(scanner.Scanner) p.initScanner(filename, src) p.imports = imports p.aliases = make(map[int]string) p.typeList = make([]types.Type, 1 /* type numbers start at 1 */, 16) } func (p *parser) initScanner(filename string, src io.Reader) { p.scanner.Init(src) p.scanner.Error = func(_ *scanner.Scanner, msg string) { p.error(msg) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 02 23:14:07 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/gofmt/gofmt_test.go
} defer f.Close() // initialize scanner var s scanner.Scanner s.Init(f) s.Error = func(*scanner.Scanner, string) {} // ignore errors s.Mode = scanner.GoTokens &^ scanner.SkipComments // want comments // look for //gofmt comment for s.Line <= maxLines { switch s.Scan() { case scanner.Comment: const prefix = "//gofmt "
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K bytes - Viewed (0) -
src/go/scanner/example_test.go
// license that can be found in the LICENSE file. package scanner_test import ( "fmt" "go/scanner" "go/token" ) func ExampleScanner_Scan() { // src is the input that we want to tokenize. src := []byte("cos(x) + 1i*sin(x) // Euler") // Initialize the scanner. var s scanner.Scanner fset := token.NewFileSet() // positions are relative to fset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 19:47:49 UTC 2022 - 1K bytes - Viewed (0) -
maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
FileSource source = new FileSource(txtFile); try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() { File txtFile = new File("target/test-classes/source.txt");
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Feb 26 17:04:44 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonOutputConsumer.java
StringWriter output = new StringWriter(); try (Scanner scanner = new Scanner(processStdOutput)) { PrintWriter printer = new PrintWriter(output); while (scanner.hasNext()) { String line = scanner.nextLine(); LOGGER.debug("daemon out: {}", line); printer.println(line);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 2.7K bytes - Viewed (0) -
src/text/scanner/scanner_test.go
buf.WriteByte(orig) s := new(Scanner).Init(&buf) s.Mode = 0 s.Whitespace = ws tok := s.Scan() if tok != orig { t.Errorf("tok = %s, want %s", TokenString(tok), TokenString(orig)) } } func testError(t *testing.T, src, pos, msg string, tok rune) { s := new(Scanner).Init(strings.NewReader(src)) errorCalled := false s.Error = func(s *Scanner, m string) { if !errorCalled {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 17 03:41:50 UTC 2022 - 25.3K bytes - Viewed (0) -
platforms/native/testing-native/src/main/java/org/gradle/nativeplatform/test/xctest/internal/execution/XCTestScraper.java
synchronized (testDescriptors) { Scanner scanner = new Scanner(text).useDelimiter("'"); if (scanner.hasNext()) { String token = scanner.next().trim(); if (token.equals("Test Suite")) { // Test Suite 'PassingTestSuite' started at 2017-10-30 10:45:47.828 String testSuite = scanner.next();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 9.7K bytes - Viewed (0) -
src/mime/type_plan9.go
if err != nil { return } defer f.Close() scanner := bufio.NewScanner(f) for scanner.Scan() { fields := strings.Fields(scanner.Text()) if len(fields) <= 2 || fields[0][0] != '.' { continue } if fields[1] == "-" || fields[2] == "-" { continue } setExtensionType(fields[0], fields[1]+"/"+fields[2]) } if err := scanner.Err(); err != nil { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 15 19:56:08 UTC 2016 - 1K bytes - Viewed (0) -
maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java
UrlSource source = new UrlSource(txtFile); try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() throws Exception { URL txtFile = new File("target/test-classes/source.txt").toURI().toURL();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 2K bytes - Viewed (0) -
src/mime/type_unix.go
} setExtensionType(extension, fields[1]) } if err := scanner.Err(); err != nil { panic(err) } return nil } func loadMimeFile(filename string) { f, err := os.Open(filename) if err != nil { return } defer f.Close() scanner := bufio.NewScanner(f) for scanner.Scan() { fields := strings.Fields(scanner.Text()) if len(fields) <= 1 || fields[0][0] == '#' { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 3K bytes - Viewed (0)