Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsAbOSXUtils.mm File Reference
#include "nsAbOSXUtils.h"
#include "nsString.h"
#include "nsAbOSXCard.h"
#include <AddressBook/AddressBook.h>

Go to the source code of this file.

Defines

#define DONT_MAP(moz_name, osx_property, osx_label, osx_key)
#define DEFINE_PROPERTY(moz_name, osx_property, osx_label, osx_key)   { osx_property, osx_label, osx_key, &nsAbOSXCard::m_##moz_name, #moz_name },

Functions

NSStringWrapString (const nsString &aString)
void AppendToString (const NSString *aString, nsString &aResult)
void AssignToString (const NSString *aString, nsString &aResult)
void AppendToCString (const NSString *aString, nsCString &aResult)

Define Documentation

#define DEFINE_PROPERTY (   moz_name,
  osx_property,
  osx_label,
  osx_key 
)    { osx_property, osx_label, osx_key, &nsAbOSXCard::m_##moz_name, #moz_name },

Definition at line 91 of file nsAbOSXUtils.mm.

#define DONT_MAP (   moz_name,
  osx_property,
  osx_label,
  osx_key 
)

Definition at line 89 of file nsAbOSXUtils.mm.


Function Documentation

void AppendToCString ( const NSString aString,
nsCString aResult 
)

Definition at line 78 of file nsAbOSXUtils.mm.

{
    if (aString) {
        const char *chars = [aString UTF8String];
        if (chars) {
            aResult.Append(chars);
        }
    }
}

Here is the caller graph for this function:

void AppendToString ( const NSString aString,
nsString aResult 
)

Definition at line 56 of file nsAbOSXUtils.mm.

{
    if (aString) {
        const char *chars = [aString UTF8String];
        if (chars) {
            AppendUTF8toUTF16(chars, aResult);
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void AssignToString ( const NSString aString,
nsString aResult 
)

Definition at line 67 of file nsAbOSXUtils.mm.

{
    if (aString) {
        const char *chars = [aString UTF8String];
        if (chars) {
            CopyUTF8toUTF16(chars, aResult);
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSString* WrapString ( const nsString aString)

Definition at line 47 of file nsAbOSXUtils.mm.

{
    PRUnichar* chars = NS_CONST_CAST(PRUnichar*, aString.get());

    return [NSString stringWithCharacters:chars
                                   length:aString.Length()];
}

Here is the call graph for this function:

Here is the caller graph for this function: