Property | Type | Description | |
---|---|---|---|
CharIsAllowed | bool | ||
EnsureContentName | string | ||
GetNewPath | string | ||
IsUriClean | bool | ||
NonStrippingChar | bool | ||
Strip | string | ||
TailClean | string | ||
UriCleanup | string |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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 | ||
return | string |
public static EnsureExtension ( string nameBase, string reqext ) : string | ||
nameBase | string | |
reqext | string | |
return | string |
public static GetFileExtension ( string fileName ) : string | ||
fileName | string | |
return | string |
public static GetFileNameWithoutExtension ( string fileName, string extension ) : string | ||
fileName | string | |
extension | string | |
return | string |
public static GetNameFromDisplayName ( string displayName ) : string | ||
displayName | string | The input displayname that will be converted to a valid url name. |
return | 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. |
return | string |
public static GetNewName ( string nameBase, |
||
nameBase | string | |
type | ||
parent | Node | |
return | string |
public static GetNoAccents ( string r ) : string | ||
r | string | |
return | string |
public static IncrementNameSuffix ( string name, string &nameBase ) : string | ||
name | string | |
nameBase | string | |
return | string |
public static IncrementNameSuffixToLastName ( string currentName, int parentNodeId ) : string | ||
currentName | string | |
parentNodeId | int | |
return | 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 |
return | int |
public static RemoveInvalidCharacters ( string s ) : string | ||
s | string | |
return | string |