mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-05 05:18:51 +00:00
Monotone-Parent: 80883dcf3bf8ccef4d22a65b5963c363db031c0c
Monotone-Revision: fde0ef781cb60652a47fc1c5edcece9225aafa07 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-09-20T19:30:33 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -21,13 +21,34 @@
|
||||
*/
|
||||
|
||||
#include <talloc.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#import <Foundation/NSData.h>
|
||||
|
||||
#import "NSString+MAPIStore.h"
|
||||
|
||||
#undef DEBUG
|
||||
#include <mapistore/mapistore.h>
|
||||
|
||||
@implementation NSString (MAPIStoreDataTypes)
|
||||
|
||||
+ (id) stringWithGUID: (const struct GUID *) guid
|
||||
{
|
||||
char *guidString;
|
||||
NSString *newString;
|
||||
|
||||
guidString = GUID_string (NULL, guid);
|
||||
newString = [self stringWithUTF8String: guidString];
|
||||
talloc_free (guidString);
|
||||
|
||||
return newString;
|
||||
}
|
||||
|
||||
- (void) extractGUID: (struct GUID *) guid
|
||||
{
|
||||
GUID_from_string ([self UTF8String], guid);
|
||||
}
|
||||
|
||||
- (char *) asUnicodeInMemCtx: (void *) memCtx
|
||||
{
|
||||
char *unicode;
|
||||
|
||||
Reference in New Issue
Block a user