C# Class MiguelRa.Util.Util

ファイルを表示 Open project: gengo/spGengo

Public Methods

Method Description
FileCopyFilesBetweenDirectories ( string directoryFrom, string directoryTo, bool recursive, bool overwrite ) : bool
FileLoadFileAsText ( string filename ) : string
FileSaveFileText ( string text, string filename ) : bool
StringFirstCharToUpper ( string text ) : string
StringIsNumber ( string value ) : bool
StringRemoveFirstAppearance ( string stringContainingAppearances, string substringToRemove ) : string
StringReplaceMultiple ( string text, string oldStrings, string newStrings ) : string
UnicodeToHTML ( string unicodeText ) : string

Converts a Unicode string to a HTML encoded string. HTML encoded string displays correctly in web browsers.

XmlGetRepeatedTagsFromXml ( XmlDocument xml ) : XmlNodeList>.Dictionary
XmlGetTagNamesFromXml ( XmlNode xml ) : List
XmlNodeIsCompound ( XmlNode node ) : bool
timestamp ( ) : string

Method Details

FileCopyFilesBetweenDirectories() public static method

public static FileCopyFilesBetweenDirectories ( string directoryFrom, string directoryTo, bool recursive, bool overwrite ) : bool
directoryFrom string
directoryTo string
recursive bool
overwrite bool
return bool

FileLoadFileAsText() public static method

public static FileLoadFileAsText ( string filename ) : string
filename string
return string

FileSaveFileText() public static method

public static FileSaveFileText ( string text, string filename ) : bool
text string
filename string
return bool

StringFirstCharToUpper() public static method

public static StringFirstCharToUpper ( string text ) : string
text string
return string

StringIsNumber() public static method

public static StringIsNumber ( string value ) : bool
value string
return bool

StringRemoveFirstAppearance() public static method

public static StringRemoveFirstAppearance ( string stringContainingAppearances, string substringToRemove ) : string
stringContainingAppearances string
substringToRemove string
return string

StringReplaceMultiple() public static method

public static StringReplaceMultiple ( string text, string oldStrings, string newStrings ) : string
text string
oldStrings string
newStrings string
return string

UnicodeToHTML() public static method

Converts a Unicode string to a HTML encoded string. HTML encoded string displays correctly in web browsers.
public static UnicodeToHTML ( string unicodeText ) : string
unicodeText string Unicode string (e.g: 'aplicaci\u00f3n')
return string

XmlGetRepeatedTagsFromXml() public static method

public static XmlGetRepeatedTagsFromXml ( XmlDocument xml ) : XmlNodeList>.Dictionary
xml System.Xml.XmlDocument
return XmlNodeList>.Dictionary

XmlGetTagNamesFromXml() public static method

public static XmlGetTagNamesFromXml ( XmlNode xml ) : List
xml System.Xml.XmlNode
return List

XmlNodeIsCompound() public static method

public static XmlNodeIsCompound ( XmlNode node ) : bool
node System.Xml.XmlNode
return bool

timestamp() public static method

public static timestamp ( ) : string
return string