Class LocalizableStringExtensions
- Namespace
- GroupeIsa.Neos.Shared.Extensions
- Assembly
- GroupeIsa.Neos.Shared.dll
Represents the database extension functions for the LocalizableString class.
public static class LocalizableStringExtensions
- Inheritance
-
LocalizableStringExtensions
- Inherited Members
Methods
Contains(LocalizableString?, string)
Gets a value indicating whether a localizable string contains a text ignoring case.
public static bool Contains(this LocalizableString? localizableString, string searchedText)
Parameters
localizableStringLocalizableStringThe localizable string.
searchedTextstringThe searched text.
Returns
- bool
The result.
ContainsValue(LocalizableString?, string)
Gets a value indicating whether a localizable string contains a value equal to a text ignoring case.
public static bool ContainsValue(this LocalizableString? localizableString, string searchedText)
Parameters
localizableStringLocalizableStringThe localizable string.
searchedTextstringThe searched text.
Returns
- bool
The result.
GetCurrentValue(LocalizableString?)
Gets the translation string for the current language.
public static string GetCurrentValue(this LocalizableString? localizableString)
Parameters
localizableStringLocalizableStringThe localizable string.
Returns
- string
The translated string, or string.Empty if no translation found.
GetValue(LocalizableString?, string)
Gets the translation string for the specified language.
public static string GetValue(this LocalizableString? localizableString, string language)
Parameters
localizableStringLocalizableStringThe localizable string.
languagestringThe language to get translation from.
Returns
- string
The translated string, or string.Empty if no translation found.
HasNoLeadingAndTrailingWhiteSpace(LocalizableString?)
Indicates whether the localizable string has no leading and trailing whitespace.
public static bool HasNoLeadingAndTrailingWhiteSpace(this LocalizableString? source)
Parameters
sourceLocalizableStringA localizable string.
Returns
- bool
True if the localizable string has no leading and trailing whitespace; otherwise, false.
HasNoLeadingWhiteSpace(LocalizableString?)
Indicates whether the localizable string has no leading whitespace.
public static bool HasNoLeadingWhiteSpace(this LocalizableString? source)
Parameters
sourceLocalizableStringA localizable string.
Returns
- bool
True if the localizable string has no leading whitespace; otherwise, false.
HasNoTrailingWhiteSpace(LocalizableString?)
Indicates whether the localizable string has no trailing whitespace.
public static bool HasNoTrailingWhiteSpace(this LocalizableString? source)
Parameters
sourceLocalizableStringA localizable string.
Returns
- bool
True if the localizable string has no trailing whitespace; otherwise, false.
HasNoWhiteSpace(LocalizableString?)
Indicates whether the localizable string has no whitespace.
public static bool HasNoWhiteSpace(this LocalizableString? source)
Parameters
sourceLocalizableStringA localizable string.
Returns
- bool
True if the localizable string has no whitespace; otherwise, false.
StartsWith(LocalizableString?, string)
Gets a value indicating whether a localizable string starts with a text ignoring case.
public static bool StartsWith(this LocalizableString? localizableString, string searchedText)
Parameters
localizableStringLocalizableStringThe localizable string.
searchedTextstringThe searched text.
Returns
- bool
The result.