Telerik.ILS.Common.StringExtenstionMethods
StringExtensions Class |
Provides various extension methods for System.String.
Inheritance Hierarchy
SystemObject Telerik.ILS.CommonStringExtensions
Namespace: Telerik.ILS.Common
Assembly: StringExtensions (in StringExtensions.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The StringExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
CapitalizeFirstLetter |
Capitalizes only the first letter of a System.String value.
| |
ConvertCyrillicToLatinLetters |
Converts the cyrillic letters of a word using their phonetic representations in latin form.
| |
ConvertLatinToCyrillicKeyboard |
Converts the latin letters of a string to their equivalent in a standard cyrillic layout keyboard.
| |
GetFileExtension |
Returns the file extension of a string representing a full file name.
| |
GetFirstCharacters |
Gets a number of characters in a string starting from the beginning. If the number of characters to get is bigger than the string length, returns the whole string. Throws a System.ArguemntOutOfRange exception if the number of characters is less than 0.
| |
GetStringBetween |
Extracts the first occurance of a string between two other strings. Returns empty string if either the start or the end strings cannot be found. Start and end string values are not included in the result.
| |
ToBoolean |
Parses string values "true", "ok", "yes", "1", "да" as true and all others as false.
| |
ToByteArray |
Converts the curret string to an array of integers, representing the byte values in decimal of its internal memory representation.
| |
ToContentType |
Returns information about the content type of a file extension.
| |
ToDateTime |
Converts the specified string representation of a date and time to its System.DateTime equivalent and returns a value that indicates whether the conversion succeeded.
| |
ToInteger |
Converts the string representation of a number to its 32-bit signed integer
equivalent. If the conversion failed the return value is 0.
| |
ToLong |
Converts the string representation of a number to its 64-bit signed integer
equivalent. If the conversion failed the return value is 0.
| |
ToMd5Hash |
Converts the input string to a byte array and computes the hash.
| |
ToShort |
Converts the string representation of a number to its 16-bit signed integer
equivalent. If the conversion failed the return value is 0.
| |
ToValidLatinFileName |
Replaces all empty spaces with "-" and converts all cyrillic letters to their phonetic equivalent in latin. Also removes any non-alphanumeric characters excluding "_" and ".".
| |
ToValidUsername |
Replaces any non latin letters to their phonetic latin equivalent and removes any non-alphanumeric characters excluding "_" and ".".
|
See Also