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: | tracker1 |
---|---|
Location: | Phoenix, AZ |
Users: | 54 |
Nodes: | 25 (0 / 25) |
Uptime: | 190:09:03 |
Calls: | 367 |
Files: | 1,364 |
Messages: | 36,299 |