[gdal-dev] What is the best way to test if a CPLString is not empty?

Jorge Arévalo jorgearevalo at libregis.org
Thu May 16 10:17:48 PDT 2013


If I define a CPLString this way:

CPLString osString; 

And I want to check if osString is not empty, what would be the best way?

My bet:

if (osString.c_str() == NULL) 

But I find it a little rusty... Is there any other better way?

Many thanks in advance 

-- 
Jorge Arevalo
Freelance developer

http://www.krop.com/jorgearevalo
http://about.me/jorgeas80

Enviado con Sparrow (http://www.sparrowmailapp.com/?sig)




More information about the gdal-dev mailing list