Provides string functions for short strings such as aliases or URL segments.
Namespace: Umbraco.Cms.Core.Strings Assembly: Umbraco.Core.dll Syntaxpublic interface IShortStringHelper
Methods View Source CleanString(String, CleanStringType)
Cleans a string.
Declarationstring CleanString(string text, CleanStringType stringType)
Parameters Type Name Description System.String text
The text to clean.
CleanStringType stringTypeA flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.
Returns Type Description System.StringThe clean string.
View Source CleanString(String, CleanStringType, Char)Cleans a string, using a specified separator.
Declarationstring CleanString(string text, CleanStringType stringType, char separator)
Parameters Type Name Description System.String text
The text to clean.
CleanStringType stringTypeA flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.
System.Char separatorThe separator.
Returns Type Description System.StringThe clean string.
View Source CleanString(String, CleanStringType, Char, String)Cleans a string in the context of a specified culture, using a specified separator.
Declarationstring CleanString(string text, CleanStringType stringType, char separator, string culture)
Parameters Type Name Description System.String text
The text to clean.
CleanStringType stringTypeA flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.
System.Char separatorThe separator.
System.String cultureThe culture.
Returns Type Description System.StringThe clean string.
View Source CleanString(String, CleanStringType, String)Cleans a string in the context of a specified culture.
Declarationstring CleanString(string text, CleanStringType stringType, string culture)
Parameters Type Name Description System.String text
The text to clean.
CleanStringType stringTypeA flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.
System.String cultureThe culture.
Returns Type Description System.StringThe clean string.
View Source CleanStringForSafeAlias(String)Cleans a string to produce a string that can safely be used in an alias.
Declarationstring CleanStringForSafeAlias(string text)
Parameters Type Name Description System.String text
The text to filter.
Returns Type Description System.StringThe safe alias.
View Source CleanStringForSafeAlias(String, String)Cleans a string, in the context of a specified culture, to produce a string that can safely be used in an alias.
Declarationstring CleanStringForSafeAlias(string text, string culture)
Parameters Type Name Description System.String text
The text to filter.
System.String cultureThe culture.
Returns Type Description System.StringThe safe alias.
View Source CleanStringForSafeFileName(String)Cleans a string, in the context of the invariant culture, to produce a string that can safely be used as a filename, both internally (on disk) and externally (as a URL).
Declarationstring CleanStringForSafeFileName(string text)
Parameters Type Name Description System.String text
The text to filter.
Returns Type Description System.StringThe safe filename.
View Source CleanStringForSafeFileName(String, String)Cleans a string, in the context of a specified culture, to produce a string that can safely be used as a filename, both internally (on disk) and externally (as a URL).
Declarationstring CleanStringForSafeFileName(string text, string culture)
Parameters Type Name Description System.String text
The text to filter.
System.String cultureThe culture.
Returns Type Description System.StringThe safe filename.
View Source CleanStringForUrlSegment(String)Cleans a string to produce a string that can safely be used in an URL segment.
Declarationstring CleanStringForUrlSegment(string text)
Parameters Type Name Description System.String text
The text to filter.
Returns Type Description System.StringThe safe URL segment.
View Source CleanStringForUrlSegment(String, String)Cleans a string, in the context of a specified culture, to produce a string that can safely be used in an URL segment.
Declarationstring CleanStringForUrlSegment(string text, string culture)
Parameters Type Name Description System.String text
The text to filter.
System.String cultureThe culture.
Returns Type Description System.StringThe safe URL segment.
View Source SplitPascalCasing(String, Char)Splits a pascal-cased string by inserting a separator in between each term.
Declarationstring SplitPascalCasing(string text, char separator)
Parameters Type Name Description System.String text
The text to split.
System.Char separatorThe separator.
Returns Type Description System.StringThe split string.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4