Свойство | Тип | Описание | |
---|---|---|---|
CharIsAllowed | bool | ||
EnsureContentName | string | ||
GetNewPath | string | ||
IsUriClean | bool | ||
NonStrippingChar | bool | ||
Strip | string | ||
TailClean | string | ||
UriCleanup | string |
Метод | Описание | |
---|---|---|
EnforceRequiredExtension ( string nameBase, |
||
EnsureExtension ( string nameBase, string reqext ) : string | ||
GetFileExtension ( string fileName ) : string |
Gets the extension from a provided filename. Return string contains the '.' character.
|
|
GetFileNameWithoutExtension ( string fileName, string extension ) : string |
Gets the filename without the provided extension.
|
|
GetNameFromDisplayName ( string displayName ) : string |
Removes invalid characters from the provided displayname, without enforcing original extension.
|
|
GetNameFromDisplayName ( string originalName, string displayName ) : string |
Removes invalid characters from the provided displayname, leaving original extension intact.
|
|
GetNewName ( string nameBase, |
||
GetNoAccents ( string r ) : string |
Removes accents from input string.
|
|
IncrementNameSuffix ( string name, string &nameBase ) : string | ||
IncrementNameSuffixToLastName ( string currentName, int parentNodeId ) : string | ||
ParseSuffix ( string name, string &nameBase, bool &inValidNumber ) : int |
Parses name from format 'name(x)'
|
|
RemoveInvalidCharacters ( string s ) : string |
Removes invalid characters from the provided displayname.
|
Метод | Описание | |
---|---|---|
CharIsAllowed ( char c ) : bool | ||
EnsureContentName ( string nameBase, Node container ) : string | ||
GetNewPath ( Node container, string defaultName, int index, string &newName ) : string | ||
IsUriClean ( string s ) : bool | ||
NonStrippingChar ( char c ) : bool | ||
Strip ( string name ) : string | ||
TailClean ( string s ) : string | ||
UriCleanup ( string s ) : string |
public static EnforceRequiredExtension ( string nameBase, |
||
nameBase | string | |
type | ||
Результат | string |
public static EnsureExtension ( string nameBase, string reqext ) : string | ||
nameBase | string | |
reqext | string | |
Результат | string |
public static GetFileExtension ( string fileName ) : string | ||
fileName | string | |
Результат | string |
public static GetFileNameWithoutExtension ( string fileName, string extension ) : string | ||
fileName | string | |
extension | string | |
Результат | string |
public static GetNameFromDisplayName ( string displayName ) : string | ||
displayName | string | The input displayname that will be converted to a valid url name. |
Результат | string |
public static GetNameFromDisplayName ( string originalName, string displayName ) : string | ||
originalName | string | The original name of the Content, to keep its original extension. If unknown, provide extension only in the form of '.ext'. If original extension is not to be kept, provide null. |
displayName | string | The input displayname that will be converted to a valid url name. |
Результат | string |
public static GetNewName ( string nameBase, |
||
nameBase | string | |
type | ||
parent | Node | |
Результат | string |
public static GetNoAccents ( string r ) : string | ||
r | string | |
Результат | string |
public static IncrementNameSuffix ( string name, string &nameBase ) : string | ||
name | string | |
nameBase | string | |
Результат | string |
public static IncrementNameSuffixToLastName ( string currentName, int parentNodeId ) : string | ||
currentName | string | |
parentNodeId | int | |
Результат | string |
public static ParseSuffix ( string name, string &nameBase, bool &inValidNumber ) : int | ||
name | string | name to parse |
nameBase | string | parsed namebase |
inValidNumber | bool | true if correct format is detected but (x) is not a valid number |
Результат | int |
public static RemoveInvalidCharacters ( string s ) : string | ||
s | string | |
Результат | string |