{"id":21619087,"url":"https://github.com/bannzai/swdifft","last_synced_at":"2026-03-07T15:31:43.931Z","repository":{"id":63905208,"uuid":"196677079","full_name":"bannzai/Swdifft","owner":"bannzai","description":"Swdifft is string diff library of longest common subsequence.","archived":false,"fork":false,"pushed_at":"2019-07-16T14:05:14.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T17:53:27.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bannzai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-13T04:14:53.000Z","updated_at":"2021-11-14T12:59:45.000Z","dependencies_parsed_at":"2022-11-28T19:19:22.482Z","dependency_job_id":null,"html_url":"https://github.com/bannzai/Swdifft","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSwdifft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSwdifft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSwdifft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FSwdifft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bannzai","download_url":"https://codeload.github.com/bannzai/Swdifft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226243895,"owners_count":17594456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T23:07:51.773Z","updated_at":"2026-03-07T15:31:43.826Z","avatar_url":"https://github.com/bannzai.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swdifft\n**Swdifft** is string diff library of longest common subsequence.\n\n## Usage\nUsing diff function, **Swdifft** marked diff between left and right.\n\n```swift\nlet result = diff(\"ABCDEFGHIJ\", \"ABCDEFG\")\nprint(result.lhs) // ABCDEFG`HIJ`\nprint(result.rhs) // ABCDEFG\n```\n\nIf it reversed.\n```swift\nlet result = diff(\"ABCDEFG\", \"ABCDEFGHIJ\")\nprint(result.lhs) // ABCDEFG\nprint(result.rhs) // ABCDEFG*HIJ*\n```\n\nAnd it can be print diff.\n\n```swift\nprintDiff(\"ABCDEFGHIJ\", \"ABCDEFG\") \n```\n\nResult.\n```\nABCDEFG`HIJ`\nABCDEFG\n```\n\n**Swdifft** marked symbol's, when string matches the difference.\nThe mark can customize from default setting to use these global variables. \n\n```swift\nbeginLHSMark = \"%\" // Default is `\nendLHSMark = \"%\" // Default is `\nbeginRHSMark = \"\u0026\" // Default is *\nendRHSMark = \"\u0026\" // Default is *\n```\n\n# LICENSE\n[Swdifft](https://github.com/bannzai/Swdifft/) is released under the MIT license. See [LICENSE](https://github.com/bannzai/Swdifft/blob/master/LICENSE.txt) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fswdifft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbannzai%2Fswdifft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fswdifft/lists"}