Table of Contents

CliStringUtil.SplitWords Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Splits a string in to words.

public static string[] SplitWords(string value, bool keepSpaces = false)

Parameters

value string

A string instance.

keepSpaces bool

Whether to keep a single space between words if there were any whitespace or punctuation in the original.

Returns

string[]

An array of strings.