StringExt Class

Namespace: Stimulsoft.Base

Methods

Method Returns Description
EndsWithInvariant static bool  
EndsWithInvariantIgnoreCase static bool  
IndexOfInvariant static (+1 overloads) int  
IsBase64String static bool  
IsValidJson static bool  
StartsWithInvariant static bool  
StartsWithInvariantIgnoreCase static bool  
ToEmpty static string  
ToLowerNull static string  
TryParseDateTime static bool  

Method Details

EndsWithInvariant static

EndsWithInvariant(str: string, check: string): bool

Parameters

  • str (string)
  • check (string)

Returns bool


EndsWithInvariantIgnoreCase static

EndsWithInvariantIgnoreCase(str: string, check: string): bool

Parameters

  • str (string)
  • check (string)

Returns bool


IndexOfInvariant static

IndexOfInvariant(str: string, value: string): int

Parameters

  • str (string)
  • value (string)

Returns int


IndexOfInvariant(str: string, value: string, startIndex: int): int

Parameters

  • str (string)
  • value (string)
  • startIndex (int)

Returns int


IsBase64String static

IsBase64String(s: string): bool

Parameters

  • s (string)

Returns bool


IsValidJson static

IsValidJson(strInput: string): bool

Parameters

  • strInput (string)

Returns bool


StartsWithInvariant static

StartsWithInvariant(str: string, check: string): bool

Parameters

  • str (string)
  • check (string)

Returns bool


StartsWithInvariantIgnoreCase static

StartsWithInvariantIgnoreCase(str: string, check: string): bool

Parameters

  • str (string)
  • check (string)

Returns bool


ToEmpty static

ToEmpty(str: string): string

Parameters

  • str (string)

Returns string


ToLowerNull static

ToLowerNull(str: string): string

Parameters

  • str (string)

Returns string


TryParseDateTime static

TryParseDateTime(value: string, dateTime: DateTime): bool

Parameters

  • value (string)
  • dateTime (DateTime)

Returns bool