⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 codecompressor.cs

📁 用JavaScript做的文件压缩文件
💻 CS
字号:
namespace com.sarmal.scriptutil.text.compress 
{
	using System;

	/// <summary>
	///		<disclaimer>2003-2005 (C) - sarmal.com - http://www.sarmal.com </disclaimer>
	///		<meta-data>
	///			<version>1.0.3</version>
	///			<author>
	///				<name>Volkan 謟鏴lik</name>
	///				<e-mail>volkan@sarmal.com</e-mail>
	///			</author>
	///		</meta-data>
	///		<description>
	///			<p>The interface for a generic code compressor.</p>
	///		</description>
	/// </summary>
	public interface CodeCompressor 
	{
		/// <summary>
		/// Compresses the given String
		/// </summary>
		/// <param name="toBeCompressed">String to be compressed.</param>
		void Compress(ref String toBeCompressed);
		
		/// <summary>
		/// Compresses sourcePath and writes the compressed Stream
		/// into the destinationPath. A new file is created if file
		/// does not exist.
		/// </summary>
		/// <param name="sourcePath">The source file path to compress</param>
		/// <param name="destinationPath">The destination file path
		/// to write the compressed Stream.</param>
		void Compress(String sourcePath, String destinationPath);

		/// <summary>
		/// If <code>true</code> comments will be removed.
		/// </summary>
		bool RemoveComments {set;}
		
		/// <summary>
		/// If <code>true/code> lines will be trimmed.
		/// </summary>
		bool TrimLines {set;}
		
		/// <summary>
		/// If <code>true</code> CRLF characters will be removed.
		/// </summary>
		bool RemoveCRLF {set;}
		
		/// <summary>
		/// If <code>true</code> additional compression will be done.
		/// </summary>
		bool RemoveEverthingElse {set;}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -