Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,148 for COMPARE (0.08 sec)

  1. src/strings/compare.go

    package strings
    
    import "internal/bytealg"
    
    // Compare returns an integer comparing two strings lexicographically.
    // The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
    //
    // Use Compare when you need to perform a three-way comparison (with
    // slices.SortFunc, for example). It is usually clearer and always faster
    // to use the built-in string comparison operators ==, <, >, and so on.
    func Compare(a, b string) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 628 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/compare.go

    		}
    		return n
    	case types.TARRAY:
    		// We can compare several elements at once with 2/4/8 byte integer compares
    		inline = t.NumElem() <= 1 || (types.IsSimple[t.Elem().Kind()] && (t.NumElem() <= 4 || t.Elem().Size()*t.NumElem() <= maxcmpsize))
    	case types.TSTRUCT:
    		inline = compare.EqStructCost(t) <= 4
    	}
    
    	cmpl := n.X
    	for cmpl != nil && cmpl.Op() == ir.OCONVNOP {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  3. operator/pkg/compare/compare.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package compare
    
    import (
    	"fmt"
    	"io"
    	"path/filepath"
    	"reflect"
    	"regexp"
    	"sort"
    	"strings"
    
    	"github.com/google/go-cmp/cmp"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/operator/pkg/object"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/img/build-cache/compare-small.svg

    compare-small.svg...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/img/build-cache/compare-small-b.svg

    compare-small-b.svg...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. test/fixedbugs/issue13480.go

    	switch m {
    	case M(nil): // ERROR "compare.*to nil|operator \=\= not defined for .|cannot compare"
    	}
    
    	_ = f == F(nil) // ERROR "compare.*to nil|operator \=\= not defined for .|cannot compare"
    	_ = F(nil) == f // ERROR "compare.*to nil|operator \=\= not defined for .|cannot compare"
    	switch f {
    	case F(nil): // ERROR "compare.*to nil|operator \=\= not defined for .|cannot compare"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare(1.0, 1.0)
                    .compare(1.0f, 1.0f)
                    .compare("a", "a", Ordering.usingToString())
                    .result())
            .isEqualTo(0);
      }
    
      public void testShortCircuitLess() {
        assertThat(
                ComparisonChain.start()
                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/internal/fmtsort/sort.go

    //   - bool compares false before true
    //   - complex compares real, then imag
    //   - pointers compare by machine address
    //   - channel values compare by machine address
    //   - structs compare each field in turn
    //   - arrays compare each element in turn.
    //     Otherwise identical arrays compare by length.
    //   - interface values compare first by reflect.Type describing the concrete type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/cmp/cmp_test.go

    		}
    		if b != (test.compare < 0) {
    			t.Errorf("Less(%v, %v) == %t, want %t", test.x, test.y, b, test.compare < 0)
    		}
    	}
    }
    
    func TestCompare(t *testing.T) {
    	for _, test := range tests {
    		var c int
    		switch test.x.(type) {
    		case int:
    			c = cmp.Compare(test.x.(int), test.y.(int))
    		case string:
    			c = cmp.Compare(test.x.(string), test.y.(string))
    		case float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/DefaultVersionComparatorTest.groovy

        def 'case for special qualifiers is ignored'() {
            expect:
            compare("1.0-rc", "1.0.RC") == 0
            compare("1.0-rc-1", "1.0.RC.1") == 0
            compare("1.0-snapshot", "1.0.SNAPSHOT") == 0
            compare("1.0-final", "1.0.FINAL") == 0
            compare("1.0-ga", "1.0.GA") == 0
            compare("1.0-release", "1.0.RELEASE") == 0
            compare("1.0-sp", "1.0.SP") == 0
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top