Class CzechHelper
- Namespace
- SunamoLang.SunamoI18N
- Assembly
- SunamoLang.dll
Helper class for Czech language text processing and transformations.
public class CzechHelper
- Inheritance
-
CzechHelper
- Inherited Members
- Extension Methods
Methods
Dear(bool)
Returns the Czech greeting "Dear" in the appropriate gender form.
public static string Dear(bool isFemale)
Parameters
isFemaleboolTrue for female form, false for male form.
Returns
- string
The gendered greeting word.
Esteemed(bool)
Returns the Czech greeting "Esteemed" in the appropriate gender form.
public static string Esteemed(bool isFemale)
Parameters
isFemaleboolTrue for female form, false for male form.
Returns
- string
The gendered greeting word.
GetSexFromSurname(string)
Determines gender from a Czech surname.
public static bool GetSexFromSurname(string surname)
Parameters
surnamestringThe surname to analyze.
Returns
- bool
True if the surname indicates female gender, false otherwise.
Honorable(bool, string, string)
Creates a formal honorable greeting with name.
public static string Honorable(bool isFemale, string greetingWord, string name)
Parameters
isFemaleboolTrue for female form, false for male form.
greetingWordstringThe greeting word to use (e.g., "Dear", "Esteemed").
namestringThe person's name.
Returns
- string
A formatted honorable greeting.
Init(CzechEncodings, bool)
Initializes the encoding conversion tables.
public static void Init(CzechEncodings encoding, bool isHex)
Parameters
encodingCzechEncodingsThe Czech encoding to initialize.
isHexboolWhether the encoding is in hexadecimal format.
ReplaceInHtmlFrom(CzechEncodings, bool, string)
Replaces characters in HTML content from the specified encoding.
public static string ReplaceInHtmlFrom(CzechEncodings encoding, bool isHex, string input)
Parameters
encodingCzechEncodingsThe Czech encoding to use.
isHexboolWhether the encoding is in hexadecimal format.
inputstringThe input HTML string to process.
Returns
- string
The processed HTML string.
ReplaceInHtmlFrom_UTF_8_Hex(string)
Replaces characters in HTML content from UTF-8 hex encoding to Czech characters.
public static string ReplaceInHtmlFrom_UTF_8_Hex(string input)
Parameters
inputstringThe input HTML string to process.
Returns
- string
The processed HTML string with Czech characters.