Share via


StringUtils.EllipsisHash Method

Definition

Overloads

EllipsisHash(String, Int32)

EllipsisHash - return truncated string with unique hash for the truncated part.

EllipsisHash(StringBuilder, Int32)

EllipsisHash - return truncated string with unique hash for the truncated part.

EllipsisHash(String, Int32)

EllipsisHash - return truncated string with unique hash for the truncated part.

public static string EllipsisHash (string text, int length);
static member EllipsisHash : string * int -> string
Public Shared Function EllipsisHash (text As String, length As Integer) As String

Parameters

text
String

text to truncate.

length
Int32

length to truncate at.

Returns

prefix up to length + ... + uniquehash(text).

Applies to

EllipsisHash(StringBuilder, Int32)

EllipsisHash - return truncated string with unique hash for the truncated part.

public static System.Text.StringBuilder EllipsisHash (System.Text.StringBuilder sb, int length);
static member EllipsisHash : System.Text.StringBuilder * int -> System.Text.StringBuilder
Public Shared Function EllipsisHash (sb As StringBuilder, length As Integer) As StringBuilder

Parameters

sb
StringBuilder

text to truncate.

length
Int32

length to truncate at.

Returns

original stringbuilder modified.

Applies to