Show / Hide Table of Contents

Class StringHelper

Inheritance
object
StringHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public static class StringHelper

Methods

ConvertDoubledQuotesToBackslashQuote(string)

Converts a string containing '' doubled escaped quotes to ' backslash escaped quotes

Declaration
public static string ConvertDoubledQuotesToBackslashQuote(string restrictions)
Parameters
Type Name Description
string restrictions

"foo''bar"

Returns
Type Description
string

"foo'bar"

Deinternationalize(string)

Converts most letters outside ASCII-range to their ASCII counterparts. Make them email-friendly.

Ø -> O Å -> A Ü -> U

Etc.

Declaration
public static string Deinternationalize(string source)
Parameters
Type Name Description
string source
Returns
Type Description
string

IsNonEmptyStringMatch(string, string)

Declaration
public static bool IsNonEmptyStringMatch(string a, string b)
Parameters
Type Name Description
string a
string b
Returns
Type Description
bool

NewlineNormalized(string)

Declaration
public static string NewlineNormalized(this string source)
Parameters
Type Name Description
string source
Returns
Type Description
string

PrettyChop(string, int)

Chop off a string in a nice fashion: will chop a string if longer than maxLength, and pad it with "...". Please note, that PrettyChop(xx, 111) will return a string of maximum 114 characters.

Declaration
public static string PrettyChop(string s, int maxLength)
Parameters
Type Name Description
string s

string to be chopped

int maxLength
Returns
Type Description
string

chopped string

© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top