summaryrefslogtreecommitdiff
path: root/platform/darwin/src/NSString+MGLAdditions.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/NSString+MGLAdditions.h')
-rw-r--r--platform/darwin/src/NSString+MGLAdditions.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/darwin/src/NSString+MGLAdditions.h b/platform/darwin/src/NSString+MGLAdditions.h
index 45fea25588..246dc084f4 100644
--- a/platform/darwin/src/NSString+MGLAdditions.h
+++ b/platform/darwin/src/NSString+MGLAdditions.h
@@ -10,6 +10,15 @@ NS_ASSUME_NONNULL_BEGIN
/** 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 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)