-
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
1 parent
9c336e3
commit 9346479
Showing
27 changed files
with
804 additions
and
328 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "swxmlhash", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/drmohundro/SWXMLHash", | ||
"state" : { | ||
"revision" : "4d0f62f561458cbe1f732171e625f03195151b60", | ||
"version" : "7.0.1" | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "SwiftSoup", | ||
"repositoryURL": "https://github.com/scinfu/SwiftSoup.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "8b6cf29eead8841a1fa7822481cb3af4ddaadba6", | ||
"version": "2.6.1" | ||
} | ||
}, | ||
{ | ||
"package": "SWXMLHash", | ||
"repositoryURL": "https://github.com/drmohundro/SWXMLHash", | ||
"state": { | ||
"branch": null, | ||
"revision": "4d0f62f561458cbe1f732171e625f03195151b60", | ||
"version": "7.0.1" | ||
} | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
] | ||
}, | ||
"version": 1 | ||
} |
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
20 changes: 20 additions & 0 deletions
20
Sources/StudentVue/Extensions/String+PercentEncoding.swift
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// String+PercentEncoding.swift | ||
// | ||
// | ||
// Created by TheMoonThatRises on 3/9/23. | ||
// | ||
|
||
import Foundation | ||
|
||
extension String { | ||
/// Percent encode if possible | ||
/// | ||
/// - Parameters: | ||
/// - withAllowedCharacters: Set of characters to encode | ||
/// | ||
/// - Returns: String percent encoded with character set | ||
func percentEncoding(withAllowedCharacters: CharacterSet) -> String { | ||
self.addingPercentEncoding(withAllowedCharacters: withAllowedCharacters) ?? self | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// String+replacing.swift | ||
// | ||
// | ||
// Created by TheMoonThatRises on 8/9/23. | ||
// | ||
|
||
import Foundation | ||
|
||
extension String { | ||
/// Replace substring with another substring in the current string | ||
/// | ||
/// - Parameters: | ||
/// - from: Substring of characters to replace | ||
/// - with: Substring of replacing characters | ||
/// | ||
/// - Returns: String with substring replaced | ||
public func replacing(_ from: String, with: String) -> Self { | ||
self.replacingOccurrences(of: from, with: with) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.