Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Mystring (0.11 sec)

  1. src/time/format.go

    // ParseError describes a problem parsing a time string.
    type ParseError struct {
    	Layout     string
    	Value      string
    	LayoutElem string
    	ValueElem  string
    	Message    string
    }
    
    // newParseError creates a new ParseError.
    // The provided value and valueElem are cloned to avoid escaping their values.
    func newParseError(layout, value, layoutElem, valueElem, message string) *ParseError {
    	valueCopy := stringslite.Clone(value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  2. src/go/types/expr.go

    // that might overflow; otherwise it returns the empty string.
    func opName(e ast.Expr) string {
    	switch e := e.(type) {
    	case *ast.BinaryExpr:
    		if int(e.Op) < len(op2str2) {
    			return op2str2[e.Op]
    		}
    	case *ast.UnaryExpr:
    		if int(e.Op) < len(op2str1) {
    			return op2str1[e.Op]
    		}
    	}
    	return ""
    }
    
    var op2str1 = [...]string{
    	token.XOR: "bitwise complement",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/expr.go

    // that might overflow; otherwise it returns the empty string.
    func opName(x syntax.Expr) string {
    	if e, _ := x.(*syntax.Operation); e != nil {
    		op := int(e.Op)
    		if e.Y == nil {
    			if op < len(op2str1) {
    				return op2str1[op]
    			}
    		} else {
    			if op < len(op2str2) {
    				return op2str2[op]
    			}
    		}
    	}
    	return ""
    }
    
    var op2str1 = [...]string{
    	syntax.Xor: "bitwise complement",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ppc64/ssa.go

    		ssagen.AddAux(&fromAddr, v)
    
    		genAddr := false
    
    		switch fromAddr.Name {
    		case obj.NAME_EXTERN, obj.NAME_STATIC:
    			// Special case for a rule combines the bytes of gostring.
    			// The v alignment might seem OK, but we don't want to load it
    			// using an offset because relocation comes later.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  5. src/time/time_test.go

    }
    
    func TestDurationString(t *testing.T) {
    	for _, tt := range durationTests {
    		if str := tt.d.String(); str != tt.str {
    			t.Errorf("Duration(%d).String() = %s, want %s", int64(tt.d), str, tt.str)
    		}
    		if tt.d > 0 {
    			if str := (-tt.d).String(); str != "-"+tt.str {
    				t.Errorf("Duration(%d).String() = %s, want %s", int64(-tt.d), str, "-"+tt.str)
    			}
    		}
    	}
    }
    
    var dateTests = []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top