C# Class Hyena.StringUtil

Mostra file Open project: codebutler/meshwork

Public Methods

Method Description
CamelCaseToUnderCase ( string s ) : string
CamelCaseToUnderCase ( string s, char underscore ) : string
DoubleToPluralInt ( double num ) : int
DoubleToTenthsPrecision ( double num ) : string
DoubleToTenthsPrecision ( double num, bool always_decimal ) : string
DoubleToTenthsPrecision ( double num, bool always_decimal, IFormatProvider provider ) : string
EscapeFilename ( string input ) : string
EscapePath ( string input ) : string
MaybeFallback ( string input, string fallback ) : string
RelaxedCompare ( string a, string b ) : int
RelaxedIndexOf ( string haystack, string needle ) : int
RemoveHtml ( string input ) : string
RemoveNewlines ( string input ) : string
SearchKey ( string val ) : string
SortKey ( string orig ) : byte[]
SubstringCount ( string haystack, string needle ) : uint
UnderCaseToCamelCase ( string s ) : string

Private Methods

Method Description
BuildInvalidPathRegex ( ) : Regex
BuildSpecialCases ( ) : char>.Dictionary

Method Details

CamelCaseToUnderCase() public static method

public static CamelCaseToUnderCase ( string s ) : string
s string
return string

CamelCaseToUnderCase() public static method

public static CamelCaseToUnderCase ( string s, char underscore ) : string
s string
underscore char
return string

DoubleToPluralInt() public static method

public static DoubleToPluralInt ( double num ) : int
num double
return int

DoubleToTenthsPrecision() public static method

public static DoubleToTenthsPrecision ( double num ) : string
num double
return string

DoubleToTenthsPrecision() public static method

public static DoubleToTenthsPrecision ( double num, bool always_decimal ) : string
num double
always_decimal bool
return string

DoubleToTenthsPrecision() public static method

public static DoubleToTenthsPrecision ( double num, bool always_decimal, IFormatProvider provider ) : string
num double
always_decimal bool
provider IFormatProvider
return string

EscapeFilename() public static method

public static EscapeFilename ( string input ) : string
input string
return string

EscapePath() public static method

public static EscapePath ( string input ) : string
input string
return string

MaybeFallback() public static method

public static MaybeFallback ( string input, string fallback ) : string
input string
fallback string
return string

RelaxedCompare() public static method

public static RelaxedCompare ( string a, string b ) : int
a string
b string
return int

RelaxedIndexOf() public static method

public static RelaxedIndexOf ( string haystack, string needle ) : int
haystack string
needle string
return int

RemoveHtml() public static method

public static RemoveHtml ( string input ) : string
input string
return string

RemoveNewlines() public static method

public static RemoveNewlines ( string input ) : string
input string
return string

SearchKey() public static method

public static SearchKey ( string val ) : string
val string
return string

SortKey() public static method

public static SortKey ( string orig ) : byte[]
orig string
return byte[]

SubstringCount() public static method

public static SubstringCount ( string haystack, string needle ) : uint
haystack string
needle string
return uint

UnderCaseToCamelCase() public static method

public static UnderCaseToCamelCase ( string s ) : string
s string
return string