Strings Class

Class for text string methods.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public class Strings
Inheritance
Object    Strings

Constructors

StringsInitializes a new instance of the Strings class

Methods

AddBrackets Allows add brackets at the beginning and end of the text unless they already exist.
AddCharacters Allows add characters to the beginning and end of the text unless they already exist.
AddParentheses Allows add parentheses at the beginning and end of the text unless they already exist.
ConcatSubstring Concatenate a substring to a string including a separator.
DecodeFromHtml Converts an html-encoded string to a text string.
DecomposeSubstrings Break a text into 2 substrings using a keyword.
EncodeToHtml Converts a text string to an html-encoded string.
Equals Determines whether two specified System.String objects have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.
EscapeToHtml Converts escape statements from a string into their html equivalents.
EscapeToRegex Converts a text string to regular expression including escape statements.
EscapeToXml Converts a text string to an XML string by replacing invalid characters with their XML equivalents.
ExchangeSubString Exchange one substring for another in a text.
FromHex Convert a hexadecimal to a string.
FromListOfLong Converts a list of Int64 numbers to a string separated by the indicated character.
FromListOfString Converts a list of String to a string separated by the indicated character.
GetKeyFromKeyText Get the key of a string made up of key and text (For example:"KEY;TEXT").
GetTextFromKeyText Get the key of a string made up of key and text (For example:"KEY;TEXT").
GetValuesFromKeyText Get the key of a string made up of key and text (For example:"KEY;TEXT").
MaxLength Get a string with the specified maximum length.
MaxLines Get a string with a maximum number of lines
RemoveDiacritics Eliminates diacritics from a string (accents, umlauts, tilde, apostrophes, ...).
Repeat Repeats the indicated character a number of times.
SetLinks Establishes links from a dictionary in a text (for example: You have pending delivery notes for [LINK1|facturar]).
Split Get a one-dimensional zero-based array containing the specified number of substrings.
SplitText(String, String, String, Boolean) Separate a text into strings using the indicated separator to identify them.
SplitText(String, String, String, String, Boolean) Separate a text into strings using the indicated separator to identify them.
SplitText(String, String, String, String, String, String, Boolean) Separate a text into strings using the indicated separator to identify them.
SplitTrim Get a one-dimensional zero-based array containing the specified number of substrings by removing spaces from the beginning and end of the substrings
Substring(String, Int32) Get a substring from the indicated position of a text.
Substring(String, Int32, Int32) Get a substring from the indicated position of a text and with the indicated length.
SubstringBetween Extract a substring between two symbols or substrings.
SubstringEndsWith Extracts a string by removing the indicated end substring.
SubstringStartsWith Extract a string by removing the indicated start substring.
SubstringWith Extracts a string by removing the indicated starting and ending substring.
ToHex Convert a string to hexadecimal.
ToListOfInt Converts a string to a list of numbers of type Int32.
ToListOfLong Converts a string to a list of numbers of type Int64.
ToListOfShort Converts a string to a list of numbers of type Int16.
ToListOfString Convert a string to a list of strings.
ToLowerChar Converts a text character to lowercase.
ToLowerFirstLetter Convert the first letter to lowercase.
ToUpperChar Converts a text character to uppercase.
ToUpperFirstLetter Convert the first letter to uppercase.
Unescape Remove escape statements from text.
UnescapeFromHtml Converts an html encoded string to a text string.
UnescapeFromXml Converts an XML string to a text string by replacing invalid characters in XML with their equivalents.
ValidateLetterOrDigit Clears characters other than letters and numbers.

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also