- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for parsenum (0.15 sec)
-
src/fmt/export_test.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fmt var IsSpace = isSpace
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 04 21:00:35 UTC 2016 - 219 bytes - Viewed (0) -
src/fmt/print.go
// too large to be used as a formatting width or precision. func tooLarge(x int) bool { const max int = 1e6 return x > max || x < -max } // parsenum converts ASCII to integer. num is 0 (and isnum is false) if no number present. func parsenum(s string, start, end int) (num int, isnum bool, newi int) { if start >= end { return 0, false, end }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
arg += s.firstArg - 1 // We want to zero-index the actual arguments. s.argNum = arg s.hasIndex = true s.indexPending = true return true } // parseNum scans a width or precision (or *). It returns false if there's a bad index expression. func (s *formatState) parseNum() bool { if s.nbytes < len(s.format) && s.format[s.nbytes] == '*' { if s.indexPending { // Absorb it. s.indexPending = false } s.nbytes++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/fmt/fmt_test.go
{"12a3", 0, 4, 12, true, 2}, {"1234", 0, 4, 1234, true, 4}, {"1a234", 1, 3, 0, false, 1}, } for _, tt := range testCases { num, isnum, newi := Parsenum(tt.s, tt.start, tt.end) if num != tt.num || isnum != tt.isnum || newi != tt.newi { t.Errorf("parsenum(%q, %d, %d) = %d, %v, %d, want %d, %v, %d", tt.s, tt.start, tt.end, num, isnum, newi, tt.num, tt.isnum, tt.newi) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/fmt/scan.go
} // Otherwise at EOF; "too many operands" error handled below break } i++ // % is one byte // do we have 20 (width)? var widPresent bool s.maxWid, widPresent, i = parsenum(format, i, end) if !widPresent { s.maxWid = hugeWid } c, w := utf8.DecodeRuneInString(format[i:]) i += w if c != 'c' { s.SkipSpace() } if c == '%' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 31.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradlePomModuleDescriptorParserTest.groovy
<project> <modelVersion>4.0.0</modelVersion> <groupId>group-one</groupId> <artifactId>artifact-one</artifactId> <version>my-version-20141012.121000-1</version> </project> """ when: parsePom() then: metadata.id == componentId('group-one', 'artifact-one', 'my-version-SNAPSHOT') } def "Retrieves variables from parent"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 75.4K bytes - Viewed (0) -
.typos.toml
"encrypter" = "encrypter" "kms" = "kms" "requestor" = "requestor" [default.extend-identifiers] "HashiCorp" = "HashiCorp" [type.go.extend-identifiers] "bui" = "bui" "dm2nd" = "dm2nd" "ot" = "ot" "ParseND" = "ParseND" "ParseNDStream" = "ParseNDStream" "pn" = "pn" "TestGetPartialObjectMisAligned" = "TestGetPartialObjectMisAligned" "thr" = "thr"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 18 15:15:02 UTC 2024 - 854 bytes - Viewed (0) -
src/internal/cpu/cpu_arm64_hwcap.go
if ARM64.HasCPUID { midr := getMIDR() part_num := uint16((midr >> 4) & 0xfff) implementer := byte((midr >> 24) & 0xff) // d0c - NeoverseN1 // d40 - NeoverseV1 // d49 - NeoverseN2 // d4f - NeoverseV2 if implementer == 'A' && (part_num == 0xd0c || part_num == 0xd40 || part_num == 0xd49 || part_num == 0xd4f) { ARM64.IsNeoverse = true } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradlePomModuleDescriptorParserBomTest.groovy
<artifactId>module-b</artifactId> <version>1.0</version> </dependency> </dependencies> </dependencyManagement> </project> """ when: parsePom() then: def dep = single(metadata.dependencies) dep.selector == moduleId('group-b', 'module-b', '1.0') dep.scope == MavenScope.Compile hasDefaultDependencyArtifact(dep)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 13.5K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
for _, testCase := range testCases { if testCase.expectedIndex > -1 { partNumString := strconv.Itoa(testCase.partNum) fi.AddObjectPart(testCase.partNum, "etag."+partNumString, int64(testCase.partNum+humanize.MiByte), ActualSize, UTCNow(), nil, nil) } if index := objectPartIndex(fi.Parts, testCase.partNum); index != testCase.expectedIndex { t.Fatalf("%+v: expected = %d, got: %d", testCase, testCase.expectedIndex, index) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 17 20:57:37 UTC 2024 - 10.4K bytes - Viewed (0)