2025-03-05 00:17:04 +01:00
|
|
|
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 {
|
2025-03-08 12:26:11 +01:00
|
|
|
/// A format pattern used to generate relative paths that starts with the `/` string and finishes with the `.doccarchive` string.
|
2025-03-08 00:57:59 +01:00
|
|
|
static let archive = "/%@.doccarchive"
|
2025-03-08 12:26:11 +01:00
|
|
|
/// A format pattern used to generate relative paths that starts with the `/data` string.
|
2025-03-05 00:17:04 +01:00
|
|
|
static let data = "/data/%@"
|
2025-03-08 12:26:11 +01:00
|
|
|
/// A format pattern used to generate relative paths that starts with the `/docs` string.
|
2025-03-05 00:17:04 +01:00
|
|
|
static let docs = "/docs/%@"
|
2025-03-08 12:26:11 +01:00
|
|
|
/// A format pattern used to generate relative paths that starts and finishes with the `/` string.
|
|
|
|
static let folder = "/%@/"
|
|
|
|
/// A format pattern used to generate relative paths that starts with the `/` string.
|
2025-03-05 00:17:04 +01:00
|
|
|
static let root = "/%@"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|