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: | MarisaG |
---|---|
Location: | South San Francisco, CA |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 01:51:51 |
Calls: | 123 |
Files: | 36 |
Messages: | 30,467 |