12 lines
319 B
Swift
12 lines
319 B
Swift
// MARK: - Character+Constants
|
|||
|
|
|
||
|
|
extension Character {
|
||
|
|
|
||
|
|
/// The newline character -`\n`-.
|
||
|
|
///
|
||
|
|
/// Use this constant when checking for or comparing against newline characters
|
||
|
|
/// in text processing, making the code more expressive and self-documenting.
|
||
|
|
static let newline: Character = "\n"
|
||
|
|
|
||
|
|
}
|