A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://apidocs.umbraco.com/v15/csharp/api/Umbraco.Cms.Core.Strings.IShortStringHelper.html below:

View Source Interface IShortStringHelper

Provides string functions for short strings such as aliases or URL segments.

Namespace: Umbraco.Cms.Core.Strings Assembly: Umbraco.Core.dll Syntax
public interface IShortStringHelper
Methods View Source CleanString(String, CleanStringType)

Cleans a string.

Declaration
string CleanString(string text, CleanStringType stringType)
Parameters Type Name Description System.String text

The text to clean.

CleanStringType stringType

A flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.

Returns Type Description System.String

The clean string.

View Source CleanString(String, CleanStringType, Char)

Cleans a string, using a specified separator.

Declaration
string CleanString(string text, CleanStringType stringType, char separator)
Parameters Type Name Description System.String text

The text to clean.

CleanStringType stringType

A flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.

System.Char separator

The separator.

Returns Type Description System.String

The clean string.

View Source CleanString(String, CleanStringType, Char, String)

Cleans a string in the context of a specified culture, using a specified separator.

Declaration
string CleanString(string text, CleanStringType stringType, char separator, string culture)
Parameters Type Name Description System.String text

The text to clean.

CleanStringType stringType

A flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.

System.Char separator

The separator.

System.String culture

The culture.

Returns Type Description System.String

The clean string.

View Source CleanString(String, CleanStringType, String)

Cleans a string in the context of a specified culture.

Declaration
string CleanString(string text, CleanStringType stringType, string culture)
Parameters Type Name Description System.String text

The text to clean.

CleanStringType stringType

A flag indicating the target casing and encoding of the string. By default, strings are cleaned up to camelCase and Ascii.

System.String culture

The culture.

Returns Type Description System.String

The clean string.

View Source CleanStringForSafeAlias(String)

Cleans a string to produce a string that can safely be used in an alias.

Declaration
string CleanStringForSafeAlias(string text)
Parameters Type Name Description System.String text

The text to filter.

Returns Type Description System.String

The 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.

Declaration
string CleanStringForSafeAlias(string text, string culture)
Parameters Type Name Description System.String text

The text to filter.

System.String culture

The culture.

Returns Type Description System.String

The 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).

Declaration
string CleanStringForSafeFileName(string text)
Parameters Type Name Description System.String text

The text to filter.

Returns Type Description System.String

The 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).

Declaration
string CleanStringForSafeFileName(string text, string culture)
Parameters Type Name Description System.String text

The text to filter.

System.String culture

The culture.

Returns Type Description System.String

The safe filename.

View Source CleanStringForUrlSegment(String)

Cleans a string to produce a string that can safely be used in an URL segment.

Declaration
string CleanStringForUrlSegment(string text)
Parameters Type Name Description System.String text

The text to filter.

Returns Type Description System.String

The 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.

Declaration
string CleanStringForUrlSegment(string text, string culture)
Parameters Type Name Description System.String text

The text to filter.

System.String culture

The culture.

Returns Type Description System.String

The safe URL segment.

View Source SplitPascalCasing(String, Char)

Splits a pascal-cased string by inserting a separator in between each term.

Declaration
string SplitPascalCasing(string text, char separator)
Parameters Type Name Description System.String text

The text to split.

System.Char separator

The separator.

Returns Type Description System.String

The 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