Str.eq
From OpenEUO
Calling Pattern
Call
local r,c = sl.str.eq(s1,s2[,...])
Args
s1...sN are strings
Results
r is a boolean c is a number
Usage Example
local s = sl.str local r,c = s.eq('same','same','s@me','same') print(tostring(r)..' '..c)
--> false 3
Description
---This function might be superfluous given that lua probably interns strings---
Checks that all given string arguments are equal at the bit level. If so, returns true and a count of the arguments passed, if not returns false as well as the index of the offending argument.
Upon Error
Eq fails silently. If eq receives fewer than two arguments or the arguments aren't strings, eq returns nil.