StringUtilities Methods

The StringUtilities type exposes the following members.

Methods


  Name Description
Public method Static member AcquireStringBuilder
Acquires a string builder of the indicated capacity.
Public method Static member IndexOf(StringBuilder, String, Int32)
Returns the index of the first occurrence of a substring in the StringBuilder, or -1 if not found.
Public method Static member IndexOf(StringBuilder, String, Int32, StringComparison)
Returns the index of the first occurrence of a substring in the StringBuilder, using the specified StringComparison, or -1 if not found.
Public method Static member IndexOf(StringBuilder, String, StringComparison)
Returns the index of the first occurrence of a substring in the StringBuilder, using the specified StringComparison, or -1 if not found.
Public method Static member IsNullOrEmpty(Nullable<(Of <<'(String>)>>))
Indicates whether a specified string is null, empty, or consists only of white-space characters.
Public method Static member IsNullOrEmpty(Nullable<(Of <<'(String>)>>), String)
Returns replacementValue if value is null or empty; otherwise returns value. Mimics SQL Server's ISNULL function for strings.
Public method Static member IsNullOrWhiteSpace(Nullable<(Of <<'(String>)>>))
Indicates whether a specified string is null, empty, or consists only of white-space characters.
Public method Static member IsNullOrWhiteSpace(Nullable<(Of <<'(String>)>>), String)
Returns replacementValue if value is null, empty, or consists only of white-space characters; otherwise returns value. Mimics SQL Server's ISNULL function for strings, but uses IsNullOrWhiteSpace semantics.
Public method Static member Join(IEnumerable<(Of <<'(String>)>>), String, StringJoinOption)
Joins the list of strings using the specified separator and options.
Public method Static member Join<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), String, StringJoinOption)
Joins the list of values using the specified separator and options.
Public method Static member LastIndexOf(StringBuilder, String, Nullable<(Of <<'(Int32>)>>))
Returns the index of the last occurrence of a substring in the StringBuilder, or -1 if not found.
Public method Static member LastIndexOf(StringBuilder, String, Nullable<(Of <<'(Int32>)>>), StringComparison)
Returns the index of the last occurrence of a substring in the StringBuilder, using the specified StringComparison, or -1 if not found.
Public method Static member LastIndexOf(StringBuilder, String, StringComparison)
Returns the index of the last occurrence of a substring in the StringBuilder, using the specified StringComparison, or -1 if not found.
Public method Static member Release
Releases the specified string builder back to the cache.