CliStringUtil Class

Provides CLI related String methods.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.6.7
C#
public static class CliStringUtil
Inheritance
Object    CliStringUtil

Methods

AddPrefix Adds a specific prefix to the string.
FormatValue Formats a value as a printable string.
GetPrefixLength Gets the prefix (-, --, /) length from the string.
RemovePrefix Removes prefixes (-, --, /) from the string.
SplitPrefix Splits prefixes (-, --, /) from the string.
SplitWords Splits a string in to words.
StripSuffixes Strips specific suffixes from the string.
ToCase Converts the string to a specific case.
ToLiteral Gets an escaped string literal. Value is enclosed with double quotes and Unicode and ASCII non-printable characters are escaped.

See Also