Click or drag to resize

StringHelper Methods

The StringHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendIf(String, Boolean, String)
Appends toAdd to contents, if condition is true.
Public methodStatic memberAppendIf(StringBuilder, Boolean, String)
Appends toAdd to stringBuilder, if condition is true.
Public methodStatic memberAppendWithSpaceIfNotEmpty(String, String)
Appends toAdd (with a separating space) to contents, if toAdd is not empty.
Public methodStatic memberAppendWithSpaceIfNotEmpty(StringBuilder, String)
Appends toAdd (with a separating space) to stringBuilder, if toAdd is not empty.
Public methodStatic memberEnsureClassPresent
Ensures that classes contains toAdd.
Public methodStatic memberIsNullEmptyOrWhitespace
Returns a boolean representing whether s is null, empty, or contains only whitespace.
Public methodStatic memberIsPositiveInteger
Checks whether a string represents a positive integer.
Public methodStatic memberIsWhitespace
Returns a boolean representing whether s contains only whitespace.
Public methodStatic memberToLower(Boolean)
Returns the lower-case, English equivalent of val.
Public methodStatic memberToLower(Enum)
Returns the lower-case text equivalent of val.
Top
See Also