Public Member Functions | |
| CPLString (const std::string &oStr) | |
| CPLString (const char *pszStr) | |
| operator const char * (void) const | |
| char & | operator[] (std::string::size_type i) |
| const char & | operator[] (std::string::size_type i) const |
| char & | operator[] (int i) |
| const char & | operator[] (int i) const |
| void | Clear () |
| CPLString & | Printf (const char *pszFormat,...) CPL_PRINT_FUNC_FORMAT(2 |
| CPLString &CPLString & | vPrintf (const char *pszFormat, va_list args) |
| CPLString & | FormatC (double dfValue, const char *pszFormat=NULL) |
| CPLString & | Trim () |
| CPLString & CPLString::FormatC | ( | double | dfValue, | |
| const char * | pszFormat = NULL | |||
| ) |
Format double in C locale.
The passed value is formatted using the C locale (period as decimal seperator) and appended to the target CPLString.
| dfValue | the value to format. | |
| pszFormat | the sprintf() style format to use or omit for default. Note that this format string should only include one substitution argument and it must be for a double (f or g). |
| CPLString & CPLString::Trim | ( | ) |
Trim white space.
Trims white space off the let and right of the string. White space is any of a space, a tab, a newline ('
') or a carriage control ('').
Referenced by GDALLoadWorldFile().
1.6.2-20100208.