On Tue, Apr 02, 2002 at 03:25:41PM -0500, Michael B. Allen wrote: > mbssize aka strlen determines size_t bytes
#define mbssize strlen Easiest function I've ever written. (In other words, why even bring this up?) > mbswidth aka conv. to wchar_t and do wcswidth determines the > number of screen positions If you want a more generic form of this, you could--in C++, at least--template on a width(wchar_t) function. I don't know if this has any real use. > mbslen counts the number of characters where a "character" is > something I still need to define. And which definition is useful is very dependent on what you need it for. I'd suggest figuring out the different uses you'd expect, and defining functions based on that. (Defining a function and then finding uses for it is backwards.) I'm assuming you don't have a specific application in mind, since you didn't answer Markus's question. -- Glenn Maynard -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
