GitXplorerGitXplorer
Y

SF-StringEncodingNameImpl

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
26c566d15d3ff403cfbcd6dc998524288480fd69

Add description about "CP51932" being unavailable.

YYOCKOW committed 23 days ago
Verified
cd02770065f95cef1440f0562d0bd5c206674e84

Disable "ISO_646.irv:1983".

YYOCKOW committed 24 days ago
Verified
42857c7abe483f2065c820d209d4e46c49e4db35

[proposal] Add notes to the graph.

YYOCKOW committed 24 days ago
Verified
584eb6eb7b9eb6a7f15805613be53850321122e0

Merge pull request #11 from YOCKOW/development

YYOCKOW committed a month ago
Verified
b01b7fd81ca549df0a62832de8a4d4221845d6e2

Add LICENSE notice of WHATWG Encoding.

YYOCKOW committed a month ago
Verified
b3c4bc2d70084810879e18db62574746b7c0dda8

Remove unnecessary code.

YYOCKOW committed a month 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.