diff options
author | David Walter Seikel | 2014-05-16 20:07:37 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-16 20:07:37 +1000 |
commit | 46050da42f9e554b9be78f5a7c987df85665bdc5 (patch) | |
tree | b5bc02429d2e9804895734bc2a14f65119380ef2 /lib | |
parent | OK, put the safe one back, for now. (diff) | |
download | SledjHamr-46050da42f9e554b9be78f5a7c987df85665bdc5.zip SledjHamr-46050da42f9e554b9be78f5a7c987df85665bdc5.tar.gz SledjHamr-46050da42f9e554b9be78f5a7c987df85665bdc5.tar.bz2 SledjHamr-46050da42f9e554b9be78f5a7c987df85665bdc5.tar.xz |
Implement llStringLength().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LSL.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua index 2d96603..6306045 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua | |||
@@ -864,6 +864,11 @@ end | |||
864 | 864 | ||
865 | -- LSL string functions | 865 | -- LSL string functions |
866 | 866 | ||
867 | function --[[integer]] LSL.llStringLength(--[[string]] s) | ||
868 | return string.len(s) | ||
869 | end | ||
870 | |||
871 | |||
867 | function --[[string]] LSL.llGetSubString(--[[string]] text, --[[integer]] start, --[[integer]] End) | 872 | function --[[string]] LSL.llGetSubString(--[[string]] text, --[[integer]] start, --[[integer]] End) |
868 | -- Deal with the impedance mismatch. | 873 | -- Deal with the impedance mismatch. |
869 | if 0 <= start then start = start + 1 end | 874 | if 0 <= start then start = start + 1 end |