// String returns the action name as a string.
512856
func (a Action) String() string {
	// Fast path for only one action.
	if name, ok := actionToName[a]; ok {
		return name
	}
	// Slow path for many actions.
	var values []string
	for action, name := range actionToName {
		if action&a == action {
			values = append(values, name)
		}
	}
	return strings.Join(values, ", ")
}
1332231
func (cp *Connack) String() string {
	return fmt.Sprintf("<Connack SessionPresent=%t ReturnCode=%d>",
		cp.SessionPresent, cp.ReturnCode)
}
334114
func (sp *Subscribe) String() string {
	var subscriptions []string

	for _, t := range sp.Subscriptions {
		subscriptions = append(subscriptions, t.String())
	}

	return fmt.Sprintf("<Subscribe ID=%d Subscriptions=[%s]>",
		sp.ID, strings.Join(subscriptions, ", "))
}
282846
func (v Variable) String() string {
	switch v.Kind {
	case String:
		return v.Str
	case Indexed:
		if len(v.List) > 0 {
			return v.List[0]
		}
	case Associative:
		// nothing to do
	}
	return ""
}
586044
func (b *buffer) String() string {
	return fmt.Sprintf("Buffer{id: %d, name: \"%s\", filename: \"%s\"}", b.Id(), b.Name(), b.FileName())
}
947313
func (i *Intention) String() string {
	return fmt.Sprintf("%s => %s (%s)",
		i.SourceString(),
		i.DestinationString(),
		i.Action)
}
572495
func (us *UnSme) String() string {
	return us.Ton.String() + "," + us.Npi.String() + "," + us.DestAddr.String() + "," + strconv.Itoa(int(binary.BigEndian.Uint32(us.ErrCode.Data)))
}
629139
func (e *Event) String() string {
	if e.Type == Error {
		return "{ws.Event Error " + e.Error.Error() + "}"
	}
	return "{ws.Event " + e.Type.String() + "}"
}
434968
func (u *User) String() string {
	if u.UserName != "" {
		return u.UserName
	}

	name := u.FirstName
	if u.LastName != "" {
		name += " " + u.LastName
	}

	return name
}
1320480
func (o AlterOperation) String() string {
	switch o {
	case AlterOperationSet:
		return "Set"
	default:
		return fmt.Sprintf("Unknown%d?", int(o))
	}
}
481516
func (c Case) String() string {
	return fmt.Sprintf("%s%d [%s, %s]: %s(%s) = %s %s",
		c.Prefix, c.Prec, c.Trap, c.Mode, c.Op,
		join(c.Inputs, ", ", -1), c.Output, c.Excep)
}
572823
func (usl *UnSmeList) String() string {
	var ret string
	for i := range usl.Data {
		ret = ret + usl.Data[i].String() + ";"
	}
	return ret
}
105592
func (f *Buffer) String() string {
	return string(f.Buff.Bytes()[f.Index:])
}
1113772
func (c *component) String() string {
	var str string

	for _, fn := range c.fns {
		str += fn.String()
	}
	return str
}
69330
func (af *aggFunction) String() string {
	result := af.name + "("
	for i, arg := range af.Args {
		result += arg.String()
		if i+1 != len(af.Args) {
			result += ", "
		}
	}
	result += ")"
	return result
}
1158668
func (b Button) String() string {
	name, ok := buttonNames[b]
	if !ok {
		return "Invalid"
	}
	return name
}
98716
func (e Event) String() string {
	return fmt.Sprintf("%q: %s", e.Name, e.Op.String())
}