| TerraLib 4.1

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

Functions
Functions to manipulate strings
General purpose utilitary functions

## Functions

TL_DLL void | TeConvertToUpperCase (const string &, char *)
| Converts a string to upper case.
TL_DLL string | TeConvertToUpperCase (const string &name)
| Converts a string to upper case.
TL_DLL string | TeConvertToLowerCase (const string &name)
| Converts a string to lower case.
TL_DLL std::string | TeRemoveSpecialChars (const std::string &str)
| Removes special characteres from a string.
TL_DLL std::string | TeReplaceSpecialChars (const std::string &str)
| Replace special characteres from a string.
TL_DLL std::string | TeReplaceSpecialChars (const std::string &str, bool &changed)
| Replace special characteres from a string.
TL_DLL bool | TeRenameInvalidFieldName (TeAttributeList &attr)
| Rename special field names.
TL_DLL void | TeRemoveRightDecimalZeroes (const std::string &strIn, char separatorSymbol, std::string &strOut)
| Remove all occurrences right decimal zeros from the real number represented by strIn.
TL_DLL void | TeTrim (string &str)
| Removes left and right blank, tab and carriage return characters of a string.
TL_DLL int | TeSplitString (const string &input, const string &delimiter, vector< string > &results)
| Splits a string, given a separator, in a vector of parts.
TL_DLL bool | TeStringCompare (const string &str1, const string &str2, bool caseS=false)
| Compares two strings.
TL_DLL string | TeCheckName (const string &name, bool &changed, string &invalidChar)
| Validate a string to check if it can be used as a column name.

## Function Documentation

TL_DLL string TeCheckName | ( | const string & | name,
|  | bool & | changed,
|  | string & | invalidChar
| ) |  |

Validate a string to check if it can be used as a column name.

TL_DLL string TeConvertToLowerCase | ( | const string & | name | ) |

Converts a string to lower case.

TL_DLL string TeConvertToUpperCase | ( | const string & | name | ) |

Converts a string to upper case.

TL_DLL void TeConvertToUpperCase | ( | const string & | ,
|  | char * |
| ) |  |

Converts a string to upper case.

TL_DLL void TeRemoveRightDecimalZeroes | ( | const std::string & | strIn,
|  | char | separatorSymbol,
|  | std::string & | strOut
| ) |  |

Remove all occurrences right decimal zeros from the real number represented by strIn.

TL_DLL std::string TeRemoveSpecialChars | ( | const std::string & | str | ) |

Removes special characteres from a string.

TL_DLL bool TeRenameInvalidFieldName | ( | TeAttributeList & | attr | ) |

Rename special field names.

TL_DLL std::string TeReplaceSpecialChars | ( | const std::string & | str | ) |

Replace special characteres from a string.

TL_DLL std::string TeReplaceSpecialChars | ( | const std::string & | str,
|  | bool & | changed
| ) |  |

Replace special characteres from a string.

TL_DLL int TeSplitString | ( | const string & | input,
|  | const string & | delimiter,
|  | vector< string > & | results
| ) |  |

Splits a string, given a separator, in a vector of parts.

TL_DLL bool TeStringCompare | ( | const string & | str1,
|  | const string & | str2,
|  | bool | caseS = `false`
| ) |  |

Compares two strings.

TL_DLL void TeTrim | ( | string & | str | ) |

Removes left and right blank, tab and carriage return characters of a string.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines