mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Provide to_s for NSUUID
This commit is contained in:
@@ -9,6 +9,7 @@ PUBLIC NSString* to_ns (std::string const& str);
|
||||
|
||||
PUBLIC std::string to_s (NSString* aString);
|
||||
PUBLIC std::string to_s (NSAttributedString* anAttributedString);
|
||||
PUBLIC std::string to_s (NSUUID* identifier);
|
||||
PUBLIC std::string to_s (NSData* aString);
|
||||
PUBLIC std::string to_s (NSError* anError);
|
||||
PUBLIC std::string to_s (NSEvent* anEvent, bool preserveNumPadFlag = false);
|
||||
|
||||
@@ -29,6 +29,11 @@ std::string to_s (NSAttributedString* anAttributedString)
|
||||
return to_s([anAttributedString string]);
|
||||
}
|
||||
|
||||
std::string to_s (NSUUID* identifier)
|
||||
{
|
||||
return to_s(identifier.UUIDString);
|
||||
}
|
||||
|
||||
std::string to_s (NSData* someData)
|
||||
{
|
||||
return someData ? std::string((char const*)[someData bytes], (char const*)[someData bytes] + [someData length]) : NULL_STR;
|
||||
|
||||
Reference in New Issue
Block a user