GitXplorerGitXplorer
Y

SF-StringEncodingNameImpl

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
43ba0cf625135972bb84936afa1a843b0e3cba93

Merge pull request #12 from YOCKOW/development

YYOCKOW committed 21 days ago
Verified
bd06379ccb422cb9c306ed994bc47dca21fb4c04

Update README to bump the version of this package.

YYOCKOW committed 21 days ago
Verified
b0e99b501748100ef499ccd1a38d814415636b5e

[proposal] Tweak dot file.

YYOCKOW committed 21 days ago
Verified
af87c07e03e0ee661dec9a2ec190308067decabc

[proposal] Add descriptions about ISO-8859-*.

YYOCKOW committed 21 days ago
Verified
cc0c17e05d55f43857de229f0039a1cbcfc53846

[proposal] Modify phrasing in notes to the graph.

YYOCKOW committed 21 days ago
Verified
61741ba3e74fb837aa6fa3f6a36664d639ab2454

[proposal] Add notes about Shift_JIS.

YYOCKOW committed 21 days ago

README

The README file for this repository.

What is SF-StringEncodingNameImpl repository?

This repository contains some documentations and implementations for Pitch(Foundation): String Encoding Names.

This repository is also a Swift package1, accordingly you can try it out easily:

// Package.swift
let package = Package(
  ...
  dependencies: [
    .package(url: "https://github.com/YOCKOW/SF-StringEncodingNameImpl.git", from: "0.2.1"),
  ],
  ...
)
// YourProjectSource.swift
import StringEncodingNameImpl

// Based on IANA registry
print(String.Encoding.utf8.name(.iana)!) // Prints "UTF-8"
print(String.Encoding(iana: "ISO_646.irv:1991") == .ascii) // Prints "true"

// Based on WHATWG Living Standard
print(String.Encoding.macOSRoman.name(.whatwg)!) // Prints "macintosh"
print(String.Encoding(whatwg: "us-ascii") == .windowsCP1252) // Prints "true"
  1. This package depends on other packages which are required for the code generator. StringEncodingNameImpl itself has no dependencies.