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;
wcslen(retVal);

For example, in following function:
FdoRdbmsPostGisFilterProcessor::GetGeometryColumnNameForProperty()

Which way of string length calculation is recommended in FDO?

Best regards
-- 
Mateusz Loskot
http://mateusz.loskot.net




More information about the Fdo_dev mailing list