C# Class XWord.Util.UtilityClass

Provides misc functionality for the add-in.
显示文件 Open project: xwiki-contrib/xwiki-office

Public Methods

Method Description
GenerateUniqueFileName ( String initialFileName, String folder ) : String

Generates an unique filename based on the existing files in a folder.

IsWildcardMatch ( String wildcard, String text, bool casesensitive ) : bool

Compares a string withs another string that contains whildcards.

Method Details

GenerateUniqueFileName() public static method

Generates an unique filename based on the existing files in a folder.
public static GenerateUniqueFileName ( String initialFileName, String folder ) : String
initialFileName String The initial file name.
folder String The folder where the file will be saved.
return String

IsWildcardMatch() public static method

Compares a string withs another string that contains whildcards.
public static IsWildcardMatch ( String wildcard, String text, bool casesensitive ) : bool
wildcard String The wildcard string.
text String The compared strings.
casesensitive bool Specifies if the comparation shouls be case sensitive or not.
return bool