C:/Doxygen_Test/stringFuncs.dxl File Reference
This file contains some basic string functions.
More...
Detailed Description
This file contains some basic string functions.
Function Documentation
| bool compareStrings |
( |
string |
s1, |
|
|
string |
s2 | |
|
) |
| | |
- Returns:
- true if s1 and s2 are equal if casing is not taken into account false if otherwise
- Parameters:
-
| s1 | The first string to compare |
| s2 | The second string to compare This function will compare the lower case versions of the strings s1 and s2 |
| string trimWhitespace |
( |
string |
s |
) |
|
efficient removal of whitespaces at beginning and end
In this file there are many general functions for string manipulation! Use them if you can. They are optimised!
- Returns:
- the contents of s where leading whitespaces ( ,\n,\t,\r) are removed from the beginning and the end
- Parameters:
-
| s | the string that shall be trimmed This function is designed so that no unnecessary intermediate strings are created. That is why it runs on 'char' level. |