Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for valueString (0.24 sec)

  1. src/crypto/x509/pkix/pkix.go

    				}
    
    				typeName = oidString
    			}
    
    			valueString := fmt.Sprint(tv.Value)
    			escaped := make([]rune, 0, len(valueString))
    
    			for k, c := range valueString {
    				escape := false
    
    				switch c {
    				case ',', '+', '"', '\\', '<', '>', ';':
    					escape = true
    
    				case ' ':
    					escape = k == 0 || k == len(valueString)-1
    
    				case '#':
    					escape = k == 0
    				}
    
    				if escape {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. operator/pkg/util/util.go

    	if err != nil {
    		return "", err
    	}
    	buf := new(bytes.Buffer)
    	err = t.Execute(buf, ts)
    	if err != nil {
    		return "", err
    	}
    	return buf.String(), nil
    }
    
    func ValueString(v *structpb.Value) string {
    	switch x := v.Kind.(type) {
    	case *structpb.Value_StringValue:
    		return x.StringValue
    	case *structpb.Value_NumberValue:
    		return fmt.Sprint(x.NumberValue)
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 02 13:01:43 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/text/template/exec_test.go

    			c <- "abcdefghijklmnop"[i : i+1]
    		}
    		close(c)
    	}()
    	return c
    }
    
    // vfunc takes a *V and a V
    func vfunc(V, *V) string {
    	return "vfunc"
    }
    
    // valueString takes a string, not a pointer.
    func valueString(v string) string {
    	return "value is ignored"
    }
    
    // returnInt returns an int
    func returnInt() int {
    	return 7
    }
    
    func add(args ...int) int {
    	sum := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  4. src/html/template/exec_test.go

    			c <- "abcdefghijklmnop"[i : i+1]
    		}
    		close(c)
    	}()
    	return c
    }
    
    // vfunc takes a *V and a V
    func vfunc(V, *V) string {
    	return "vfunc"
    }
    
    // valueString takes a string, not a pointer.
    func valueString(v string) string {
    	return "value is ignored"
    }
    
    // returnInt returns an int
    func returnInt() int {
    	return 7
    }
    
    func add(args ...int) int {
    	sum := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  5. operator/pkg/translate/translate.go

    		}
    
    		tag, found, _ := tpath.GetFromStructPath(iop, "Components."+string(cn)+".Tag")
    		tagv, ok := tag.(*structpb.Value)
    		if found && !(ok && util.ValueString(tagv) == "") {
    			if err := tpath.WriteNode(root, util.PathFromString(c.ToHelmValuesTreeRoot+"."+HelmValuesTagSubpath), util.ValueString(tagv)); err != nil {
    				return err
    			}
    		}
    	}
    
    	for cn, gns := range t.GlobalNamespaces {
    		ns, err := name.Namespace(cn, iop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/tests/go122-annotations-stress.test

    UserLog dt=7 task=12 key_string=24 value_string=67 stack=27
    UserRegionEnd dt=2 task=12 name_string=35 stack=28
    GoDestroy dt=1
    GoStart dt=2 g=7 g_seq=1
    UserRegionBegin dt=13 task=12 name_string=31 stack=26
    UserLog dt=5 task=12 key_string=24 value_string=68 stack=27
    UserLog dt=6 task=12 key_string=24 value_string=69 stack=30
    UserTaskBegin dt=5 task=13 parent_task=12 name_string=26 stack=31
    UserLog dt=7 task=13 key_string=27 value_string=70 stack=32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/immediate_execution_tensor_handle.cc

      } else {
        shape_string = "<error computing shape>";
      }
      std::string value_string;
      if (!SummarizeValue(value_string).ok()) {
        value_string = "<error computing value>";
      }
      if (value_string.length() > 100) {
        // The default NumPy-style output can be distractingly long in error
        // messages.
        value_string = absl::StrCat(value_string.substr(0, 100), " [...]");
      }
      Status s;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.cc

      status->status = status_or_value.status();
      if (!status_or_value.ok()) return;
    
      const std::string& value_string = status_or_value.value();
      void* data = tensorflow::port::Malloc(value_string.length());
      value_string.copy(static_cast<char*>(data), value_string.length(), 0);
      value_buf->data = data;
      value_buf->length = value_string.length();
      value_buf->data_deallocator = [](void* data, size_t length) {
        tensorflow::port::Free(data);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  9. src/internal/trace/event/go122/event.go

    		IsTimedEvent: true,
    		StackIDs:     []int{3},
    		StringIDs:    []int{2},
    	},
    	EvUserLog: event.Spec{
    		Name:         "UserLog",
    		Args:         []string{"dt", "task", "key_string", "value_string", "stack"},
    		IsTimedEvent: true,
    		StackIDs:     []int{4},
    		StringIDs:    []int{2, 3},
    	},
    	EvGoSwitch: event.Spec{
    		Name:         "GoSwitch",
    		Args:         []string{"dt", "g", "g_seq"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/tests/go122-annotations.test

    GoStart dt=8 g=9 g_seq=1
    UserRegionBegin dt=286 task=1 name_string=24 stack=15
    UserRegionBegin dt=244 task=1 name_string=25 stack=16
    UserRegionBegin dt=6 task=1 name_string=26 stack=17
    UserLog dt=6 task=1 key_string=27 value_string=28 stack=18
    UserRegionEnd dt=4 task=1 name_string=26 stack=19
    UserRegionEnd dt=315 task=1 name_string=25 stack=20
    UserTaskEnd dt=5 task=1 stack=21
    GoUnblock dt=11 g=1 g_seq=1 stack=22
    GoDestroy dt=6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top