프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 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 |