Represents a string handling class.
More...
|
static string | GetReplacedString (string str, string exChars) |
| Replaces the caracters to an empty character.
|
|
static string | ToStringAsNumber (string number, int decimals, bool wZero) |
| Shows the number by separated decimals.
|
|
static string | ToStringAsNumber (decimal number, int decimals, bool wZero, bool zeroIsEmpty=false) |
| Shows the number by separated decimals.
|
|
static string | ToStringAsNumber (string number) |
| Shows the number by separated decimals.
|
|
static string | ToStringAsNumber3 (string number, int decimals=2, bool zeroIsEmpty=false) |
| Shows the number by separated decimals, splitted by thousands.
|
|
static string | ToStringAsNumber3 (decimal number, int decimals=2, bool zeroIsEmpty=false) |
| Shows the number by separated decimals, splitted by thousands.
|
|
static string | ToStringAsNumberSplit3 (string val, string sep=" ") |
| Shows the number by separated decimals, splitted by thousands.
|
|
static string | ToStringAsInterval (DateTime dt1, DateTime dt2) |
| Shows the interval of dates as string.
|
|
|
static string | Reverse (string str) |
| Returns the reverse of string.
|
|
Represents a string handling class.
◆ GetReplacedString()
static string Tools.StringTool.GetReplacedString |
( |
string | str, |
|
|
string | exChars ) |
|
static |
Replaces the caracters to an empty character.
- Parameters
-
str | String to replace. |
exChars | Characters to eliniminate. |
- Returns
- The eliniminated sting.
◆ Reverse()
static string Tools.StringTool.Reverse |
( |
string | str | ) |
|
|
staticprivate |
Returns the reverse of string.
- Parameters
-
- Returns
- The reversed string.
◆ ToStringAsInterval()
static string Tools.StringTool.ToStringAsInterval |
( |
DateTime | dt1, |
|
|
DateTime | dt2 ) |
|
static |
Shows the interval of dates as string.
- Parameters
-
dt1 | Date from. |
dt2 | Date to. |
- Returns
- Interval of dates as string.
◆ ToStringAsNumber() [1/3]
static string Tools.StringTool.ToStringAsNumber |
( |
decimal | number, |
|
|
int | decimals, |
|
|
bool | wZero, |
|
|
bool | zeroIsEmpty = false ) |
|
static |
Shows the number by separated decimals.
- Parameters
-
number | The number as decimal. |
decimals | Decimals to show. |
wZero | Round to zero. |
zeroIsEmpty | The zero is an empty string. |
- Returns
- The number as string.
◆ ToStringAsNumber() [2/3]
static string Tools.StringTool.ToStringAsNumber |
( |
string | number | ) |
|
|
static |
Shows the number by separated decimals.
- Parameters
-
number | The number as string. |
- Returns
- The number as string.
◆ ToStringAsNumber() [3/3]
static string Tools.StringTool.ToStringAsNumber |
( |
string | number, |
|
|
int | decimals, |
|
|
bool | wZero ) |
|
static |
Shows the number by separated decimals.
- Parameters
-
number | The number as string. |
decimals | Decimals to show. |
wZero | Round to zero. |
- Returns
- The number as string.
◆ ToStringAsNumber3() [1/2]
static string Tools.StringTool.ToStringAsNumber3 |
( |
decimal | number, |
|
|
int | decimals = 2, |
|
|
bool | zeroIsEmpty = false ) |
|
static |
Shows the number by separated decimals, splitted by thousands.
- Parameters
-
number | The number as decimal. |
decimals | Decimals to show. |
zeroIsEmpty | The zero is an empty string. |
- Returns
- The number as string.
◆ ToStringAsNumber3() [2/2]
static string Tools.StringTool.ToStringAsNumber3 |
( |
string | number, |
|
|
int | decimals = 2, |
|
|
bool | zeroIsEmpty = false ) |
|
static |
Shows the number by separated decimals, splitted by thousands.
- Parameters
-
number | The number as string. |
decimals | Decimals to show. |
zeroIsEmpty | The zero is an empty string. |
- Returns
- The number as string.
◆ ToStringAsNumberSplit3()
static string Tools.StringTool.ToStringAsNumberSplit3 |
( |
string | val, |
|
|
string | sep = " " ) |
|
static |
Shows the number by separated decimals, splitted by thousands.
- Parameters
-
val | The number as string. |
sep | Separator character. |
- Returns
- The number as string.
The documentation for this class was generated from the following file:
- Z:/x4t/src/Tools/StringTool.cs