1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-13 21:42:07 +00:00
serenity/Ladybird/AppKit/Utilities/NSString+Ladybird.h
Timothy Flynn 507dea5fdd Ladybird: Add an AppKit NSString category to hold common utilities
This currently holds a helper to create a new string which collapses all
consecutive whitespace to a single ASCII space.
2023-09-18 11:11:23 -06:00

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