StringFunctions.cpp's header file.
More...
#include <string>
#include "Constants.h"
Go to the source code of this file.
|
| string | _GetExecutableName (char *ExecutableFullPath) |
| string | _CenterString (string ToCenter="", bool PrintBorder=true, unsigned int SpacingLeft=StringCenterLeftSpacing, unsigned int Width=StringCenterWidth) |
| bool | _OnlyDigits (char *String, unsigned int OffsetStart, unsigned int OffsetEnd) |
| bool | _OnlyDigits (char *String) |
StringFunctions.cpp's header file.
- Author
- WaluigiBSOD
- Copyright
- GPL-3.0 License
◆ _CenterString()
| string _CenterString |
( |
string | ToCenter = "", |
|
|
bool | PrintBorder = true, |
|
|
unsigned int | SpacingLeft = StringCenterLeftSpacing, |
|
|
unsigned int | Width = StringCenterWidth ) |
Generates a centered string or separator.
- Parameters
-
| [in] | ToCenter | String to center, if empty generates a separator. |
| [in] | PrintBorder | Prints a surrounding border (true) or not (false). |
| [in] | SpacingLeft | Amount of left spacing. |
| [in] | Width | Width of the whole thing. |
- Returns
- The generated string.
- Author
- WaluigiBSOD
- Copyright
- GPL-3.0 License
◆ _GetExecutableName()
| string _GetExecutableName |
( |
char * | ExecutableFullPath | ) |
|
Computes the program's executable file name from the full path.
- Parameters
-
| [in] | FullPath | Program's full path. |
- Returns
- Program's executable name.
- Author
- WaluigiBSOD
- Copyright
- GPL-3.0 License
◆ _OnlyDigits() [1/2]
| bool _OnlyDigits |
( |
char * | String | ) |
|
Checks if a string given in input is only numeric or not.
- Parameters
-
| [in] | String | String to check. |
- Returns
- True if the string given in input is only numeric, false if not.
- Author
- WaluigiBSOD
- Copyright
- GPL-3.0 License
◆ _OnlyDigits() [2/2]
| bool _OnlyDigits |
( |
char * | String, |
|
|
unsigned int | OffsetStart, |
|
|
unsigned int | OffsetEnd ) |
Checks if a string given in input is only numeric or not.
- Parameters
-
| [in] | String | String to check. |
| [in] | OffsetStart | Starting index to consider. |
| [in] | OffsetEnd | Ending index to consider. |
- Returns
- True if the string given in input is only numeric, false if not.
- Author
- WaluigiBSOD
- Copyright
- GPL-3.0 License