C# Class SenseNet.Portal.UrlNameValidator

Datei anzeigen Open project: maxpavlov/FlexNet

Public Methods

Method Description
ValidUrlName ( string urlName ) : string
Validate ( string url ) : bool

Private Methods

Method Description
ConvertSpecChars ( string spec ) : string
InitializeCharacterTable ( ) : void

Stores Unicode characters and their "normalized" values to a hash table. Character codes are referenced by hex numbers because that's the most common way to refer to them.

ToUnichar ( string HexString ) : string

Takes a hexadecimal string and converts it to a Unicode character

UrlNameValidator ( ) : System

Method Details

ValidUrlName() public static method

public static ValidUrlName ( string urlName ) : string
urlName string
return string

Validate() public static method

public static Validate ( string url ) : bool
url string
return bool