octal(explicitPositiveSign:includePrefix:uppercase:minDigits:)
Creates a custom octal format that includes a minimum number of digits.
Declaration
static func octal(explicitPositiveSign: Bool = false, includePrefix: Bool = false, uppercase: Bool = false, minDigits: @autoclosure @escaping () -> Int) -> OSLogIntegerFormattingParameters
- explicitPositiveSign:
A Boolean value that indicates whether to display a plus (
+) sign in front of positive integers. - includePrefix:
A Boolean that indicates whether to include a leading
0ofor octal numbers. - uppercase:
A Boolean value that indicates whether to uppercase numerals that are greater than 9.
- minDigits:
The minimum number of digits to display for the octal value. If the number of digits in the octal number is less than this value, the logging system adds leading zeros.
Return Value
A custom octal format for integers.