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: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 196:02:39 |
Calls: | 353 |
Files: | 2 |
Messages: | 37,825 |