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: | Retros |
---|---|
Location: | Toronto, Canada |
Users: | 23 |
Nodes: | 8 (0 / 8) |
Uptime: | 249:10:51 |
Calls: | 1,087 |
Files: | 6 |
Messages: | 29,770 |