// String returns the string representation for the time unit
16348
func (tu Unit) String() string {
	if s, found := unitStrings[tu]; found {
		return s
	}

	return "unknown"
}
915002
func (v FloatValue) String() string {
	return fmt.Sprintf("%v %v", time.Unix(0, v.unixnano), v.value)
}
974382
func (t *Token) String() string {
	if len(t.Value) > 10 {
		return fmt.Sprintf("%s (line: %d, column: %d): %.10q...",
			t.Type, t.Line, t.Column, t.Value)
	}
	return fmt.Sprintf("%s (line: %d, column: %d): %q",
		t.Type, t.Line, t.Column, t.Value)
}
225440
func (t *token) String() string {
	if len(t.value) > 10 {
		return fmt.Sprintf("%s (line: %d, column: %d): %.10q...",
			t.t, t.line, t.column, t.value)
	}
	return fmt.Sprintf("%s (line: %d, column: %d): %q",
		t.t, t.line, t.column, t.value)
}
565954
func (s Value) String() string {
	var bestName string
	bestMult := int64(1)
	if s.unit == nil {
		return ""
	}
	for name, mult := range s.unit.mapping {
		if s.Value%mult == 0 && mult >= bestMult {
			bestName = name
			bestMult = mult
		}
	}
	var sign string
	if s.ExplicitSign == Positive {
		sign = "+"
	}
	if bestName == "" {
		return fmt.Sprintf("%s%d (no unit)", sign, s.Value)
	}
	return fmt.Sprintf("%s%d%s", sign, s.Value/bestMult, bestName)
}
419962
func (s *watch) String() string {
	// if the watch isn't stopped yet...
	if s.stop.IsZero() {
		return "0m0.00s"
	}

	return s.duration().String()
}
1136600
func (e *Event) String() string {
	if e == nil {
		return ""
	}
	var k string
	var ok bool
	if k, ok = EventMap[e.MsgType]; !ok {
		k = fmt.Sprintf("%#X", e.MsgType)
	}
	out := fmt.Sprintf("Ch %d @ %d \t%s", e.MsgChan, e.TimeDelta, k)
	if e.Velocity > 0 {
		out += fmt.Sprintf(" Vel: %d", e.Velocity)
	}
	if e.MsgType == EventByteMap["NoteOn"] || e.MsgType == EventByteMap["NoteOff"] {
		out += fmt.Sprintf(" Note: %s", NoteToName(int(e.Note)))
	}
	if e.Cmd != 0 {
		out = fmt.Sprintf("Ch %d @ %d \t%s", e.MsgChan, e.TimeDelta, MetaCmdMap[e.Cmd])
		switch e.Cmd {
		case MetaByteMap["Sequence/Track name"]:
			out = fmt.Sprintf("%s -> %s", out, e.SeqTrackName)
		case MetaByteMap["Time Signature"]:
			out = fmt.Sprintf("%s -> %s", out, e.TimeSignature)
		case MetaByteMap["Copyright"]:
			out = fmt.Sprintf("%s -> %s", out, e.Copyright)
		case MetaByteMap["Tempo"]:
			out = fmt.Sprintf("%s -> %d", out, e.Bpm)
		}
	}

	return out
}
1345664
func (bez *T) String() string {
	return fmt.Sprintf("%s %s %s",
		bez.P0.String(), bez.P1.String(), bez.P2.String(),
	)
}
1109388
func (t Type) String() string {
	if int(t) < len(eventTypeStrings) {
		return eventTypeStrings[t]
	}
	return "custom"
}
1114040
func (v *StringMap) String() string {
	v.mu.Lock()
	defer v.mu.Unlock()
	return stringMapToString(v.values)
}
213944
func (v *Object) String() string {

	f, err := json.Marshal(v.data)
	if err != nil {
		return err.Error()
	}

	return string(f)

}
833751
func (d Date) String() string {
	return fmt.Sprintf(dateFormat, d.Year(), d.Month(), d.Day())
}
1342532
func (u AmountUnit) String() string {
	switch u {
	case AmountMegaFLO:
		return "MFLO"
	case AmountKiloFLO:
		return "kFLO"
	case AmountFLO:
		return "FLO"
	case AmountMilliFLO:
		return "mFLO"
	case AmountMicroFLO:
		return "μFLO"
	case AmountSatoshi:
		return "Satoshi"
	default:
		return "1e" + strconv.FormatInt(int64(u), 10) + " FLO"
	}
}
1021082
func (d NameableDuration) String() string {
	if len(d.Name) > 0 {
		return d.Name
	}
	return d.Duration.String()
}
442568
func (cs *CronSection) String() string {
	theTimes := []string{}
	for _, period := range cs.Time {
		if period.Start == 0 && period.Finish == 0 && period.Range {
			theTimes = append(theTimes, "*")
		} else {
			theTime := fmt.Sprintf("%d", period.Start)
			if period.Range {
				theTime += fmt.Sprintf("-%d", period.Finish)
			}
			theTimes = append(theTimes, theTime)
		}
	}

	if cs.Interval != "" {
		return fmt.Sprintf("%s/%s", strings.Join(theTimes, ","), cs.Interval)
	}

	return fmt.Sprintf("%s", strings.Join(theTimes, ","))
}
1136843
func (v *Duration) String() string {
	return strconv.FormatInt(int64(v.i.Get()), 10)
}
84083
func (d DataType) String() string {
	switch d {
	case Float:
		return "float"
	case Integer:
		return "integer"
	case Unsigned:
		return "unsigned"
	case String:
		return "string"
	case Boolean:
		return "boolean"
	case Time:
		return "time"
	case Duration:
		return "duration"
	case Tag:
		return "tag"
	case AnyField:
		return "field"
	}
	return "unknown"
}