Method |
Description |
|
CharNeedsEncoding ( char character ) : bool |
Returns true if the character has to be encoded and cannot be dumped into a persistence file as-is. |
|
CookedFilename ( string fileName, string extensionName, bool trusted = false ) : string |
This is both for error checking and blessing of user-created filenames, and to tack on a filename extension if there is none present.
Returns a version of the filename in which it has had the file extension added unless the filename already has any sort of file extension, in which case nothing is changed about it. If every place where the auto- extension-appending is attempted is done via this method, then it will never end up adding an extension when an explicit one exists already. |
|
DecodeBase64ToBinary ( string input ) : byte[] |
|
|
DecodeLine ( string input ) : string |
|
|
EncodeBase64 ( byte input ) : string |
|
|
EncodeLine ( string input ) : string |
|
|
IdentifyCategory ( byte firstBytes ) : FileCategory |
Given the first few bytes of content, decide what the FileCategory should be, based on what's in the Content. This should be called before deciding how to set the content. |
|
IsBinary ( FileCategory category ) : bool |
|
|