StringHelper Methods |
The StringHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| AppendIf(String, Boolean, String) |
Appends toAdd to contents, if condition is true.
| |
| AppendIf(StringBuilder, Boolean, String) |
Appends toAdd to stringBuilder, if condition is true.
| |
| AppendWithSpaceIfNotEmpty(String, String) |
Appends toAdd (with a separating space) to contents, if toAdd is not empty.
| |
| AppendWithSpaceIfNotEmpty(StringBuilder, String) |
Appends toAdd (with a separating space) to stringBuilder, if toAdd is not empty.
| |
| EnsureClassPresent |
Ensures that classes contains toAdd.
| |
| IsNullEmptyOrWhitespace |
Returns a boolean representing whether s is null, empty, or contains only whitespace.
| |
| IsPositiveInteger |
Checks whether a string represents a positive integer.
| |
| IsWhitespace |
Returns a boolean representing whether s contains only whitespace.
| |
| ToLower(Boolean) |
Returns the lower-case, English equivalent of val.
| |
| ToLower(Enum) |
Returns the lower-case text equivalent of val.
|