mirror of
https://github.com/RGBCube/serenity
synced 2025-06-13 21:42:07 +00:00

This currently holds a helper to create a new string which collapses all consecutive whitespace to a single ASCII space.
15 lines
244 B
Objective-C
15 lines
244 B
Objective-C
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#import <System/Cocoa.h>
|
|
|
|
@interface NSString (Ladybird)
|
|
|
|
- (NSString*)stringByCollapsingConsecutiveWhitespace;
|
|
|
|
@end
|