Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 69 for parseable (0.17 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedInteger.java

      /**
       * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed as
       * an unsigned {@code int} value.
       *
       * @throws NumberFormatException if the string does not contain a parsable unsigned {@code int}
       *     value
       */
      public static UnsignedInteger valueOf(String string) {
        return valueOf(string, 10);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/UnsignedInteger.java

      /**
       * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed as
       * an unsigned {@code int} value.
       *
       * @throws NumberFormatException if the string does not contain a parsable unsigned {@code int}
       *     value
       */
      public static UnsignedInteger valueOf(String string) {
        return valueOf(string, 10);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. src/internal/txtar/archive.go

    	var buf bytes.Buffer
    	buf.Write(fixNL(a.Comment))
    	for _, f := range a.Files {
    		fmt.Fprintf(&buf, "-- %s --\n", f.Name)
    		buf.Write(fixNL(f.Data))
    	}
    	return buf.Bytes()
    }
    
    // ParseFile parses the named file as an archive.
    func ParseFile(file string) (*Archive, error) {
    	data, err := os.ReadFile(file)
    	if err != nil {
    		return nil, err
    	}
    	return Parse(data), nil
    }
    
    // Parse parses the serialized form of an Archive.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. src/go/ast/filter_test.go

    func (t1) f1() {}
    func (t1) f2() {}
    
    func (t2) f1() {}
    
    func (x *t2) f2() {}
    `
    
    func TestFilterDuplicates(t *testing.T) {
    	// parse input
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, "", input, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// create package
    	files := map[string]*ast.File{"": file}
    	pkg, err := ast.NewPackage(fset, files, nil, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. src/go/token/example_test.go

    const bad = token.NoPos
    
    //line fake.go:42:11
    func ok(pos p) bool {
    	return pos != bad
    }
    
    /*line :7:9*/func main() {
    	fmt.Println(ok(bad) == bad.IsValid())
    }
    `
    
    	f, err := parser.ParseFile(fset, "main.go", src, 0)
    	if err != nil {
    		fmt.Println(err)
    		return
    	}
    
    	// Print the location and kind of each declaration in f.
    	for _, decl := range f.Decls {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:09:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/go/printer/example_test.go

    	"go/ast"
    	"go/parser"
    	"go/printer"
    	"go/token"
    	"strings"
    )
    
    func parseFunc(filename, functionname string) (fun *ast.FuncDecl, fset *token.FileSet) {
    	fset = token.NewFileSet()
    	if file, err := parser.ParseFile(fset, filename, nil, 0); err == nil {
    		for _, d := range file.Decls {
    			if f, ok := d.(*ast.FuncDecl); ok && f.Name.Name == functionname {
    				fun = f
    				return
    			}
    		}
    	}
    	panic("function not found")
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:55:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testerrors/argposition_test.go

    		t.Fatalf("%s: %v\n%s", cmd, err, cmd.Stderr)
    	}
    	mainProcessed, err := os.ReadFile(filepath.Join(dir, "issue42580.cgo1.go"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	fset := token.NewFileSet()
    	f, err := parser.ParseFile(fset, "", mainProcessed, parser.AllErrors)
    	if err != nil {
    		fmt.Println(err)
    		return
    	}
    
    	expectation := IdentPositionInfo{
    		"checkedPointer": []ShortPosition{
    			ShortPosition{
    				Line:   32,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/go/types/self_test.go

    	filenames, err := pkgFilenames(path, true) // from stdlib_test.go
    	if err != nil {
    		return nil, err
    	}
    
    	var files []*ast.File
    	for _, filename := range filenames {
    		file, err := parser.ParseFile(fset, filename, nil, 0)
    		if err != nil {
    			return nil, err
    		}
    		files = append(files, file)
    	}
    
    	return files, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go

    	//     setting caused by os.Setenv("GODEBUG"), as happens in
    	//     many tests. Therefore any attempt to cache the result
    	//     is just incorrect.
    	fset := token.NewFileSet()
    	f, _ := parser.ParseFile(fset, "a.go", "package p; type A = int", 0)
    	pkg, _ := new(types.Config).Check("p", fset, []*ast.File{f}, nil)
    	_, enabled := pkg.Scope().Lookup("A").Type().(*types.Alias)
    	return enabled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. tensorflow/c/tf_buffer.cc

    }
    
    Status BufferToMessage(const TF_Buffer* in,
                           tensorflow::protobuf::MessageLite* out) {
      if (in == nullptr || !out->ParseFromArray(in->data, in->length)) {
        return errors::InvalidArgument("Unparseable ", out->GetTypeName(),
                                       " proto");
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top