| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

Functions
Functions to manipulate file names
General purpose utilitary functions

## Functions

TL_DLL string | TeGetExtension (const char *value)
| Get the extension part (right to the dot) of a string.
TL_DLL string | TeGetName (const char *value)
| Get the name part (left to the dot) of a string, path included.
TL_DLL string | TeGetBaseName (const char *value)
| Get the base name part of a string, strip path information.
TL_DLL string | TeGetPath (const char *value)
| Get the path part of a file name.
TL_DLL void | TeWriteToFile (const string &fileName, const string &text, const string &mode)
| Writes a string to a file.

## Function Documentation

TL_DLL string TeGetBaseName | ( | const char * | value | ) |

Get the base name part of a string, strip path information.

TL_DLL string TeGetExtension | ( | const char * | value | ) |

Get the extension part (right to the dot) of a string.

TL_DLL string TeGetName | ( | const char * | value | ) |

Get the name part (left to the dot) of a string, path included.

TL_DLL string TeGetPath | ( | const char * | value | ) |

Get the path part of a file name.

TL_DLL void TeWriteToFile | ( | const string & | fileName,
|  | const string & | text,
|  | const string & | mode
| ) |  |

Writes a string to a file.

Parameters:

  fileName | the file name to write to, including the directory.
  text | the string with the text to write to.
  mode | the mode used to write to the file (a | w | r).

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines