Files
MapLibreParticleLab/platform/darwin/src/NSString+MGLAdditions.h
Minh Nguyễn e91be23b7f [ios, macos] Fixed documentation parameter mismatches
Also enabled compiler warnings about incorrect Doxygen commands.
2017-03-13 12:35:09 -07:00

36 lines
964 B
Objective-C

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSString (MGLAdditions)
/** Returns the range spanning the entire receiver. */
- (NSRange)mgl_wholeRange;
/** Returns the receiver if non-empty or nil if empty. */
- (nullable NSString *)mgl_stringOrNilIfEmpty;
/**
Returns a title-cased representation of the receiver using the specified
locale.
@param locale The locale. For strings presented to users, pass in the current
locale (`+[NSLocale currentLocale]`). To use the system locale, pass in
`nil`.
*/
- (NSString *)mgl_titleCasedStringWithLocale:(NSLocale *)locale;
@end
@interface NSAttributedString (MGLAdditions)
/** Returns the range spanning the entire receiver. */
- (NSRange)mgl_wholeRange;
/** Returns a copy of the receiver with leading and trailing members of the given set removed. */
- (NSAttributedString *)mgl_attributedStringByTrimmingCharactersInSet:(NSCharacterSet *)set;
@end
NS_ASSUME_NONNULL_END