[fdo-dev] Why use wcslen on FdoStringP objects

Mateusz Loskot mateusz at loskot.net
Sun Aug 13 22:26:01 EDT 2006


Mateusz Loskot wrote:
> 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()

Just note considering performance of the function above, the wcelen() is
called 3 times against the same string - retVal.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net




More information about the Fdo-internals mailing list