Hi DM,
I'm curious what the mode parameter is for in console.strlen()?
jsobjs.html
says mode is an optional parameter, but it doesn't say what it's for. When looking at the mode values in sbbsdefs.js, it seems some don't make sense for getting string length (such as P_NOABORT, P_NOABORT, etc.)..
Also, P_NOATCODES might make sense, but I'd think console.strlen() already would not be counting at-codes as part of string length..?
etc.).. Also, P_NOATCODES might make sense, but I'd think
console.strlen() already would not be counting at-codes as part of
string length..?
It *does* count at-codes as part of the string. Passing P_NOATCODES would have no effect.
The only checked/used P_* (print) mode flag in console.strlen() is P_UTF8.
Sysop: | Thearcadeguy |
---|---|
Location: | Stuart, Florida |
Users: | 5 |
Nodes: | 12 (0 / 12) |
Uptime: | 72:03:37 |
Calls: | 105 |
Files: | 25 |
Messages: | 15,377 |