-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
// | ||
// CharacterSet.swift | ||
// SwiftASCII • https://github.com/orchetect/SwiftASCII | ||
// © 2022 Steffan Andrews • Licensed under MIT License | ||
// © 2021-2024 Steffan Andrews • Licensed under MIT License | ||
// | ||
|
||
import Foundation | ||
|
||
extension CharacterSet { | ||
/// Includes all ASCII characters, including printable and non-printable (0...127) | ||
internal static let ascii = CharacterSet( | ||
static let ascii = CharacterSet( | ||
charactersIn: UnicodeScalar(0) ... UnicodeScalar(127) | ||
) | ||
|
||
/// Includes all printable ASCII characters (32...126) | ||
internal static let asciiPrintable = CharacterSet( | ||
static let asciiPrintable = CharacterSet( | ||
charactersIn: UnicodeScalar(32) ... UnicodeScalar(126) | ||
) | ||
|
||
/// Includes all ASCII characters, including printable and non-printable (0...31) | ||
internal static let asciiNonPrintable = CharacterSet( | ||
static let asciiNonPrintable = CharacterSet( | ||
charactersIn: UnicodeScalar(0) ... UnicodeScalar(31) | ||
) | ||
|
||
/// Includes all extended ASCII characters (128...255) | ||
internal static let asciiExtended = CharacterSet( | ||
static let asciiExtended = CharacterSet( | ||
charactersIn: UnicodeScalar(128) ... UnicodeScalar(255) | ||
) | ||
|
||
/// Includes all ASCII characters and extended characters (0...255) | ||
internal static let asciiFull = CharacterSet( | ||
static let asciiFull = CharacterSet( | ||
charactersIn: UnicodeScalar(0) ... UnicodeScalar(255) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters