C# Class ResxDiffLib.Operations

Exibir arquivo Open project: tomwadley/resx-diff

Public Methods

Method Description
AddMissingSpacePreserve ( ResxDocument d ) : void

Adds space="preserve" attributes to data elements which are missing it

Alphabetise ( ResxDocument d ) : void

Sorts keys in alphabetical order

CopyKeys ( IEnumerable keys, ResxDocument from, ResxDocument to ) : void

Copies keys from one document to another (complete Data objects)

CopyValues ( IEnumerable keys, ResxDocument from, ResxDocument to ) : void

Copies values from one document to another

Method Details

AddMissingSpacePreserve() public static method

Adds space="preserve" attributes to data elements which are missing it
public static AddMissingSpacePreserve ( ResxDocument d ) : void
d ResxDocument The document to add missing space="preserve" attributes to
return void

Alphabetise() public static method

Sorts keys in alphabetical order
public static Alphabetise ( ResxDocument d ) : void
d ResxDocument The document whose keys are to be sorted
return void

CopyKeys() public static method

Copies keys from one document to another (complete Data objects)
public static CopyKeys ( IEnumerable keys, ResxDocument from, ResxDocument to ) : void
keys IEnumerable The names of the keys to copy
from ResxDocument The document to copy from
to ResxDocument The document to copy to
return void

CopyValues() public static method

Copies values from one document to another
public static CopyValues ( IEnumerable keys, ResxDocument from, ResxDocument to ) : void
keys IEnumerable The names of the keys whose values should be copied
from ResxDocument The document to copy from
to ResxDocument The document to copy to
return void