Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 873 for Parses (0.11 sec)

  1. src/time/zoneinfo.go

    	ruleMonthWeekDay
    )
    
    // rule is a rule read from a tzset string.
    type rule struct {
    	kind ruleKind
    	day  int
    	week int
    	mon  int
    	time int // transition time
    }
    
    // tzsetRule parses a rule from a tzset string.
    // It returns the rule, and the remainder of the string, and reports success.
    func tzsetRule(s string) (rule, string, bool) {
    	var r rule
    	if len(s) == 0 {
    		return rule{}, "", false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/GroupedOutputFixtureTest.groovy

    import org.gradle.integtests.fixtures.logging.comparison.LineSearchFailures.PotentialMatchesExistComparisonFailure
    import spock.lang.Specification
    
    class GroupedOutputFixtureTest extends Specification {
    
        def "parses task names"() {
            given:
            def consoleOutput = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  3. src/net/http/header.go

    	TimeFormat,
    	time.RFC850,
    	time.ANSIC,
    }
    
    // ParseTime parses a time header (such as the Date: header),
    // trying each of the three formats allowed by HTTP/1.1:
    // [TimeFormat], [time.RFC850], and [time.ANSIC].
    func ParseTime(text string) (t time.Time, err error) {
    	for _, layout := range timeFormats {
    		t, err = time.Parse(layout, text)
    		if err == nil {
    			return
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. pkg/config/security/security.go

    	if cs == "" || cs == "ALL" {
    		return true
    	}
    	if !unicode.IsNumber(rune(cs[0])) && !unicode.IsLetter(rune(cs[0])) {
    		// Not all of these are correct, but this is needed to support advanced cases like - and + operators
    		// without needing to parse the full expression
    		return true
    	}
    	return ValidCipherSuites.Contains(cs)
    }
    
    func IsValidECDHCurve(cs string) bool {
    	if cs == "" {
    		return true
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

    // Returns the host device used for outside compilation in generic pipeline.
    mlir::LogicalResult GetHostDeviceOutsideCompilationInGenericPipeline(
        mlir::TF::RuntimeDevices devices, std::string* host_device);
    
    // Parses XLA compilation and execution devices from a tf_device.cluster and
    // returns the host device for the head and tail computations. For TPU device,
    // if the computation is replicated, GetDeviceAliasForHostOfLogicalCore(0) is
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. internal/crypto/sse-kms.go

    		// Return only true if the SSE header is specified and does not contain the SSE-S3 value
    		return strings.ToUpper(h.Get(xhttp.AmzServerSideEncryption)) != xhttp.AmzEncryptionAES
    	}
    	return false
    }
    
    // ParseHTTP parses the SSE-KMS headers and returns the SSE-KMS key ID
    // and the KMS context on success.
    func (ssekms) ParseHTTP(h http.Header) (string, kms.Context, error) {
    	if h == nil {
    		return "", nil, ErrInvalidEncryptionMethod
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go

    		return InboundBinding{}
    	}
    
    	// parse port
    	port := uint32(0)
    	if len(parts) == 2 {
    		parsed, err := strconv.ParseUint(parts[1], 10, 32)
    		if err != nil {
    			log.Warnf("invalid port %s for %s.", parts[1], constants.AmbientWaypointInboundBinding)
    		}
    		port = uint32(parsed)
    	}
    
    	return InboundBinding{
    		Port:     port,
    		Protocol: protocol,
    	}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    	// AddExtraUsage appends additional text to the end of the extra usage message.
    	AddExtraUsage(eu string)
    
    	// Parse initializes the flags with their values for this run
    	// and returns the non-flag command line arguments.
    	// If an unknown flag is encountered or there are no arguments,
    	// Parse should call usage and return nil.
    	Parse(usage func()) []string
    }
    
    // A Fetcher reads and returns the profile named by src. src can be a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. src/cmd/pack/pack.go

    // op holds the operation we are doing (prtx).
    // verbose tells whether the 'v' option was specified.
    var (
    	op      rune
    	verbose bool
    )
    
    // setOp parses the operation string (first argument).
    func setOp(arg string) {
    	// Recognize 'go tool pack grc' because that was the
    	// formerly canonical way to build a new archive
    	// from a set of input files. Accepting it keeps old
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. src/internal/godebug/godebug.go

    			s.(*setting).value.Store(&empty)
    		}
    		return true
    	})
    }
    
    // parse parses the GODEBUG setting string s,
    // which has the form k=v,k2=v2,k3=v3.
    // Later settings override earlier ones.
    // Parse only updates settings k=v for which did[k] = false.
    // It also sets did[k] = true for settings that it updates.
    // Each value v can also have the form v#pattern,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top