C# Class Sfm2Xml.STATICS

This class exists as a common place for putting static methods for the Sfm2Xml namespace.
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
AddSectionComment ( string comment, System &XMLText ) : void

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

Method Details

IsBoolString() static public method

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
return bool

NewMapFileBuilder() static public method

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
return void

SplitString() static public method

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
return string[]

SplitString() static public method

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
return void

SplitString() public static method

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
return void