From 9154009f6ef2282cc3b9f61d5bd742cbbd56fa68 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 5 Mar 2025 00:17:04 +0100 Subject: [PATCH] Documented the constants for the String+Formats extension in the library target. --- .../Internal/Extensions/String+Constants.swift | 9 --------- .../Internal/Extensions/String+Formats.swift | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 Library/Sources/Internal/Extensions/String+Constants.swift create mode 100644 Library/Sources/Internal/Extensions/String+Formats.swift diff --git a/Library/Sources/Internal/Extensions/String+Constants.swift b/Library/Sources/Internal/Extensions/String+Constants.swift deleted file mode 100644 index 7e38bef..0000000 --- a/Library/Sources/Internal/Extensions/String+Constants.swift +++ /dev/null @@ -1,9 +0,0 @@ -extension String { - enum Format { - enum Path { - static let data = "/data/%@" - static let docs = "/docs/%@" - static let root = "/%@" - } - } -} diff --git a/Library/Sources/Internal/Extensions/String+Formats.swift b/Library/Sources/Internal/Extensions/String+Formats.swift new file mode 100644 index 0000000..61faa98 --- /dev/null +++ b/Library/Sources/Internal/Extensions/String+Formats.swift @@ -0,0 +1,14 @@ +extension String { + /// A namespace that defines the format patterns used to generate strings. + enum Format { + /// A namespace that defines the format patterns used to generate relative path representations. + enum Path { + /// A representation of the format pattern used to generate relative paths that starts with the `/data` string. + static let data = "/data/%@" + /// A representation of the format pattern used to generate relative paths that starts with the `/docs` string. + static let docs = "/docs/%@" + /// A representation of the format pattern used to generate relative paths that starts with the `/` string. + static let root = "/%@" + } + } +}