Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 880 for COMPARE (0.1 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/metadata/ExternalResourceMetaDataCompareTest.groovy

                0 * metaData.getLastModified()
                0 * metaData.getContentLength()
            }
        }
        boolean compare(ExternalResourceMetaData local, ExternalResourceMetaData remote) {
            compare(local, new Factory() {
                def create() { remote }
            })
        }
    
        boolean compare(ExternalResourceMetaData local, Factory<ExternalResourceMetaData> remoteFactory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. operator/cmd/mesh/manifest-diff.go

    	"istio.io/istio/operator/pkg/compare"
    	"istio.io/istio/operator/pkg/util"
    )
    
    // YAMLSuffix is the suffix of a YAML file.
    const YAMLSuffix = ".yaml"
    
    type manifestDiffArgs struct {
    	// compareDir indicates comparison between directory.
    	compareDir bool
    	// verbose generates verbose output.
    	verbose bool
    	// selectResources constrains the list of resources to compare to only the ones in this list, ignoring all others.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top