Added method to fetch uuid in NSStringHelpers
This commit is contained in:
parent
e5cfd23882
commit
df6c4e5651
|
@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
+ (NSString *)stringWithCppString:(std::string)text;
|
+ (NSString *)stringWithCppString:(std::string)text;
|
||||||
|
|
||||||
|
+ (NSString *)uuidString;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -24,4 +24,8 @@
|
||||||
return [NSString stringWithCString:text.c_str() encoding:[NSString defaultCStringEncoding]];
|
return [NSString stringWithCString:text.c_str() encoding:[NSString defaultCStringEncoding]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (NSString *)uuidString{
|
||||||
|
return [[NSUUID UUID] UUIDString];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user