// IDStr returns the ID as a string
2894
func (feature *Feature) IDStr() string {
	if feature.ID == nil {
		return ""
	}
	return fmt.Sprintf("%v", feature.ID)
}
525771
func (s ServiceID) String() string {
	return fmt.Sprintf("%s/%s", s.Namespace, s.Name)
}
219240
func IDFromString(s string) (ID, error) {
	if _, err := mh.Cast([]byte(s)); err != nil {
		return ID(""), err
	}
	return ID(s), nil
}
1226007
func (v ServiceID) String() string {
	x := (int32)(v)
	return fmt.Sprint(x)
}
533267
func HashIdToString(id byte) (name string, ok bool) {
	for _, m := range hashToHashIdMapping {
		if m.id == id {
			return m.name, true
		}
	}

	return "", false
}
280350
func (options *Options) HashStr(name string) string {
	return Str(options.hash[name])
}
463629
func idFromString(s string) (string, error) {
	_, err := uuid.FromString(s)
	if err != nil {
		return "", ErrMalformed
	}

	return s, nil
}
407813
func (list *List) GetString(idx int) (string, error) {
	value, err := list.Get(idx)
	if err != nil {
		return "", err
	}

	switch value.(type) {
	case *Primative:
		return value.(*Primative).AsString()
	}

	return "", errors.New("could not convert non-primative value to string")
}
1041030
func (e *Event) Str(key, val string) *Event {
	if e == nil {
		return e
	}
	e.buf = enc.AppendString(enc.AppendKey(e.buf, key), val)
	return e
}
1270821
func (s Session) ID() string {
	if sessionIDStr, ok := s[SessionIDKey]; ok {
		return sessionIDStr.(string)
	}

	buffer := uuid.NewV4()

	s[SessionIDKey] = hex.EncodeToString(buffer.Bytes())
	return s[SessionIDKey].(string)
}
820872
func (id ULID) String() string {
	ulid := make([]byte, EncodedSize)
	_ = id.MarshalTextTo(ulid)
	return string(ulid)
}
980156
func Substr(source Expr, from Expr, length Expr) Expr {
	return &substr{source, from, length}
}
610000
func (oid *OID) String() string {
	var l C.OM_uint32
	var p *C.char

	C.helper_gss_OID_desc_get_elements(oid.C_gss_OID, &l, &p)

	return fmt.Sprintf(`%x`, C.GoStringN(p, C.int(l)))
}
746970
func goNameOfStr(n string) (retVal string) {
	var ok bool
	defer func() {
		retVal = reqPtr(retVal)
	}()
	if retVal, ok = ctypes2GoTypes[n]; ok {
		return retVal
	}
	if retVal, ok = enumMappings[n]; ok {
		return retVal
	}
	if retVal, ok = builtins[n]; ok {
		return retVal
	}
	if retVal, ok = nonPrimitives[n]; ok {
		return retVal
	}

	return ""
}
1195962
func (c *Corpus) str(s string) string {
	if s == "" {
		return ""
	}
	if s, ok := c.strs[s]; ok {
		return s
	}
	if c.strs == nil {
		c.strs = make(map[string]string)
	}
	c.strs[s] = s
	return s
}
355345
func HashStr(hasher hash.Hash, path string) (string, error) {
	csum, err := Hash(hasher, path)
	if err != nil {
		return "", err
	}
	return fmt.Sprintf("%x", csum), nil
}
504312
func (r *Rule) Identifier() string {
	return C.GoString(C.rule_identifier(r.cptr))
}