目录
目录README.md

Swift-RLE

Run-length encoding (RLE) library for Swift.

Usage

// Encode
SwiftRLE.encode("ABBBCCD") // "1A3B2C1D"
SwiftRLE.encode("ABBBCCD", strategy: .normal)       // "1A3B2C1D"
SwiftRLE.encode("ABBBCCD", strategy: .omitOneDigit) // "A3B2CD"

// Decode
SwiftRLE.decode("1A3B2C1D") // "ABBBCCD"
SwiftRLE.decode("A3B2CD")   // "ABBBCCD"

Install (Swift Package Manager)

.package(url: "https://github.com/YusukeHosonuma/SwiftRLE.git", from: "0.1.0")

Author

Yusuke Hosonuma / tobi462@gmail.com

License

SwiftRLE is available under the MIT license. See the LICENSE file for more info.

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号