Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for matchprint (0.2 sec)

  1. src/regexp/testdata/testregex.c

    matchoffprint(int off)
    {
    	switch (off)
    	{
    	case -2:
    		printf("X");
    		break;
    	case -1:
    		printf("?");
    		break;
    	default:
    		printf("%d", off);
    		break;
    	}
    }
    
    static void
    matchprint(regmatch_t* match, int nmatch, int nsub, char* ans, unsigned long test)
    {
    	int	i;
    
    	for (; nmatch > nsub + 1; nmatch--)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  2. pkg/apis/core/taint.go

    //functions in the k8s.io/api repo.
    
    package core
    
    import "fmt"
    
    // MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect,
    // if the two taints have same key:effect, regard as they match.
    func (t *Taint) MatchTaint(taintToMatch Taint) bool {
    	return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 25 18:06:51 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/core/v1/taint.go

    limitations under the License.
    */
    
    package v1
    
    import "fmt"
    
    // MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect,
    // if the two taints have same key:effect, regard as they match.
    func (t *Taint) MatchTaint(taintToMatch *Taint) bool {
    	return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  4. pkg/util/taints/taints.go

    func DeleteTaint(taints []v1.Taint, taintToDelete *v1.Taint) ([]v1.Taint, bool) {
    	newTaints := []v1.Taint{}
    	deleted := false
    	for i := range taints {
    		if taintToDelete.MatchTaint(&taints[i]) {
    			deleted = true
    			continue
    		}
    		newTaints = append(newTaints, taints[i])
    	}
    	return newTaints, deleted
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/core/v1/taint_test.go

    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectPreferNoSchedule,
    			},
    			expectMatch: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		if tc.expectMatch != tc.taint.MatchTaint(&tc.taintToMatch) {
    			t.Errorf("[%s] expect taint %s match taint %s", tc.description, tc.taint.ToString(), tc.taintToMatch.ToString())
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  6. pkg/apis/core/taint_test.go

    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectPreferNoSchedule,
    			},
    			expectMatch: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		if tc.expectMatch != tc.taint.MatchTaint(tc.taintToMatch) {
    			t.Errorf("[%s] expect taint %s match taint %s", tc.description, tc.taint.ToString(), tc.taintToMatch.ToString())
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  7. plugin/pkg/admission/nodetaint/admission.go

    	return nil
    }
    
    func addNotReadyTaint(node *api.Node) {
    	notReadyTaint := api.Taint{
    		Key:    v1.TaintNodeNotReady,
    		Effect: api.TaintEffectNoSchedule,
    	}
    	for _, taint := range node.Spec.Taints {
    		if taint.MatchTaint(notReadyTaint) {
    			// the taint already exists.
    			return
    		}
    	}
    	node.Spec.Taints = append(node.Spec.Taints, notReadyTaint)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  8. src/main/webapp/js/admin/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
  9. src/main/webapp/js/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
Back to top