Documentation
¶
Overview ¶
Package util provides common utility functions used across the OCAP recorder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixEscapeQuotes ¶
FixEscapeQuotes replaces escaped double quotes ("") with single double quotes (").
func FormatWeaponText ¶
FormatWeaponText builds a display string from the weapon array components. Format: "Vehicle: Weapon [Magazine]" with empty parts omitted.
func ParseSQFStringArray ¶
ParseSQFStringArray parses a stringified SQF array of 3 quoted strings. Input format: ["str1","str2","str3"] Returns the three strings. If parsing fails, returns the input as the second element (weapon) with empty vehicle and magazine, preserving backward compatibility.
func TrimQuotes ¶
TrimQuotes removes leading and trailing double quotes from a string.
Types ¶
This section is empty.