Click or drag to resize

StringHelper Class

Helper functions for dealing with strings.
Inheritance Hierarchy
SystemObject
  Bootstrap.A11y.HelpersStringHelper

Namespace:  Bootstrap.A11y.Helpers
Assembly:  Bootstrap.A11y (in Bootstrap.A11y.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
C#
public static class StringHelper

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