Why use wcslen on FdoStringP objects

Mateusz Loskot mateusz at loskot.net
Sun Aug 13 22:21:55 EDT 2006

Dear Friends,

This time I'd like to ask about FdoStringP class.
As I understand from docs, FdoStringP:GetLength() returns
number of wide characters (null not included).
So, why in many places in the code, wcslen() is used to calculate length
of FdoStringP objects?

FdoStringP retVal;

For example, in following function:

Which way of string length calculation is recommended in FDO?

Best regards
Mateusz Loskot

More information about the Fdo-internals mailing list