C# Класс Sfm2Xml.STATICS

This class exists as a common place for putting static methods for the Sfm2Xml namespace.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsBoolString ( string text, bool defaultValueIfUnknown ) : bool

Determine if the passed in string represents a 'true' of 'false' string and return it. If it's not determined, then return the default value.

NewMapFileBuilder ( Hashtable uiLangs, ILexImportFields ILexFields, ILexImportFields ICustomFields, List sfmInfo, List listInFieldMarkers, string saveAsFileName ) : void

This is the common method for building a map file. The map file is a key part of the import process: used for generating all the output files.

SplitString ( string xyz ) : string[]

This routine will split the passed in string and return an array of those substrings.

SplitString ( string xyz, Hashtable &list ) : void

Pull out the substrings from the passed in string. Used for breaking up a string of markers.

SplitString ( string xyz, char delim, ArrayList &list ) : void

Given a string, break it up based on the given delimiters and return those individual strings as elements in the arraylist param.

Приватные методы

Метод Описание
AddSectionComment ( string comment, System &XMLText ) : void

Private helper method that is used for adding comment sections to the xml map and output files.

Описание методов

IsBoolString() статический публичный Метод

Determine if the passed in string represents a 'true' of 'false' string and return it. If it's not determined, then return the default value.
static public IsBoolString ( string text, bool defaultValueIfUnknown ) : bool
text string string to examine for t or f
defaultValueIfUnknown bool true or false
Результат bool

NewMapFileBuilder() статический публичный Метод

This is the common method for building a map file. The map file is a key part of the import process: used for generating all the output files.
static public NewMapFileBuilder ( Hashtable uiLangs, ILexImportFields ILexFields, ILexImportFields ICustomFields, List sfmInfo, List listInFieldMarkers, string saveAsFileName ) : void
uiLangs System.Collections.Hashtable list of language information
ILexFields ILexImportFields
ICustomFields ILexImportFields
sfmInfo List
listInFieldMarkers List
saveAsFileName string
Результат void

SplitString() статический публичный Метод

This routine will split the passed in string and return an array of those substrings.
static public SplitString ( string xyz ) : string[]
xyz string string to split
Результат string[]

SplitString() статический публичный Метод

Pull out the substrings from the passed in string. Used for breaking up a string of markers.
static public SplitString ( string xyz, Hashtable &list ) : void
xyz string string to break up
list System.Collections.Hashtable hashtable to get the sub items
Результат void

SplitString() публичный статический Метод

Given a string, break it up based on the given delimiters and return those individual strings as elements in the arraylist param.
public static SplitString ( string xyz, char delim, ArrayList &list ) : void
xyz string string to break up
delim char list of delimeters to use
list System.Collections.ArrayList ref to arraylist results
Результат void