Skip to content

Commit eb070e8

Browse files
committed
working on: #46
1 parent 36ab594 commit eb070e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Foundation/String+FoundationUtils.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ extension String {
166166
/// **Mechanica**
167167
///
168168
/// Makes sure that we always have a semantic version in the form MAJOR.MINOR.PATCH
169-
func ensureSemanticVersionCorrectness() -> String {
169+
public func ensureSemanticVersionCorrectness() -> String {
170170
if self.isEmpty { return "0.0.0" }
171171

172172
var copy = self
@@ -187,7 +187,7 @@ extension String {
187187
/// **Mechanica**
188188
///
189189
/// Returns a list containing the first character of each word contained in `self`.
190-
func firstCharacterOfEachWord() -> [String] {
190+
public func firstCharacterOfEachWord() -> [String] {
191191
return components(separatedBy: .whitespacesAndNewlines).filter { !$0.isEmpty }.map { String($0.prefix(1)) }
192192
}
193193

@@ -411,7 +411,7 @@ extension String {
411411
/// let stripped = string.stripCombiningMarks -> aouAOU
412412
///
413413
@available(iOS 9.0, macOS 10.11, tvOS 9.0, watchOS 2.0, *)
414-
func removingAccentsOrDiacritics() -> String {
414+
public func removingAccentsOrDiacritics() -> String {
415415
return applyingTransform(.stripCombiningMarks, reverse: false) ?? self
416416
}
417417

0 commit comments

Comments
 (0)