C# Class CSharpUML.Strings

Show file Open project: knot3/CSharpUML

Public Methods

Method Description
Clean ( this str ) : string
IfContains ( this str, string find, System.Action action ) : string
IfContains ( this str, string find, string replacement, System.Action action ) : string
Indentation ( this text ) : int
RegexReplace ( this str, string find, string replacement ) : string
ReplaceFirst ( this text, string search, string replace ) : string
Split ( this s, string separator ) : string[]
ToCSharpType ( this s ) : string
ToCode ( this str, string before, string after ) : string
ToTexCode ( this str ) : string
TrimAll ( this strings ) : IEnumerable
TrimAll ( this s ) : string
Unique ( this arr ) : string

Method Details

Clean() public static method

public static Clean ( this str ) : string
str this
return string

IfContains() public static method

public static IfContains ( this str, string find, System.Action action ) : string
str this
find string
action System.Action
return string

IfContains() public static method

public static IfContains ( this str, string find, string replacement, System.Action action ) : string
str this
find string
replacement string
action System.Action
return string

Indentation() public static method

public static Indentation ( this text ) : int
text this
return int

RegexReplace() public static method

public static RegexReplace ( this str, string find, string replacement ) : string
str this
find string
replacement string
return string

ReplaceFirst() public static method

public static ReplaceFirst ( this text, string search, string replace ) : string
text this
search string
replace string
return string

Split() public static method

public static Split ( this s, string separator ) : string[]
s this
separator string
return string[]

ToCSharpType() public static method

public static ToCSharpType ( this s ) : string
s this
return string

ToCode() public static method

public static ToCode ( this str, string before, string after ) : string
str this
before string
after string
return string

ToTexCode() public static method

public static ToTexCode ( this str ) : string
str this
return string

TrimAll() public static method

public static TrimAll ( this strings ) : IEnumerable
strings this
return IEnumerable

TrimAll() public static method

public static TrimAll ( this s ) : string
s this
return string

Unique() public static method

public static Unique ( this arr ) : string
arr this
return string