Difference between revisions of "Talk:LlStringLength"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
Anyone have any idea if LL is working on a built-in function to determine the number of bytes in a string? Considering functions like llHTTPRequest have limitations based on bytes, not just characters, this would be handy. | Anyone have any idea if LL is working on a built-in function to determine the number of bytes in a string? Considering functions like llHTTPRequest have limitations based on bytes, not just characters, this would be handy. | ||
:Convert the string to base64 ([[llStringToBase64]]) and count the characters. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 00:25, 31 March 2009 (UTC) | |||
Anyone know a good method to get the number of characters excluding spaces and new lines? Even better, a method to exclude any particular characters? | Anyone know a good method to get the number of characters excluding spaces and new lines? Even better, a method to exclude any particular characters? | ||
: (string)llParseString2List(input, [" ", "\n"], []) -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 00:25, 31 March 2009 (UTC) |
Revision as of 16:25, 30 March 2009
Anyone have any idea if LL is working on a built-in function to determine the number of bytes in a string? Considering functions like llHTTPRequest have limitations based on bytes, not just characters, this would be handy.
- Convert the string to base64 (llStringToBase64) and count the characters. -- Strife (talk|contribs) 00:25, 31 March 2009 (UTC)
Anyone know a good method to get the number of characters excluding spaces and new lines? Even better, a method to exclude any particular characters?